21 lines
604 B
Plaintext
21 lines
604 B
Plaintext
def navigate_to_additional_view(self):
|
|
"""
|
|
This function is used to navigate to a page from a navigation button.
|
|
This function can be used on any button that has a property called "self.custom.page_id"
|
|
which is the target page for the button.
|
|
Args:
|
|
self: Refrence to the object that is invoking this function.
|
|
|
|
Returns:
|
|
This is a description of what is returned.
|
|
|
|
Raises:
|
|
KeyError: Raises an exception.
|
|
"""
|
|
|
|
page_id = self.custom.page_id
|
|
plc = page_id.split("-")[0]
|
|
url_to_navigate = "/DetailedView/%s/%s" % (page_id, plc)
|
|
system.perspective.navigate(page = url_to_navigate)
|
|
|