SAT9/.resources/046e3cbac024588f2665518a4ab13f21fd8d861fe742ebe9681e4d59ba7f2cb0
2025-05-01 00:04:09 -07:00

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)