open
Query Parameters
page: "task", "switching" or "safety" (required)
id: ID of item to focus on (either id or event_id required)
event_id: for switching, will get the first switching sheet associated with the event_id (either id or event_id required)
msg: Message to display to the OMA user (defaults to OMA configured message based on the page type)'
forceOpen: true or false
This call will open OMA to the page to the provided and open the id for that page (for example, if tasks, ID will be the task id, if switching, will be the switching sheet id, if safety, will be the safety doc id) and display the provided message in a toast. For switching, if just the event_id is provided and not a switching id, OMA will look for the event and see if the event has a switching sheet associated with it, and if so, will open that sheet in the switching page. If the OMA user is editing something (such as an event, damage report, and so on). If forceOpen parameter is not set to true, OMA will inform the user that a request to focus somewhere else has been received and give them a chance to ignore the focus request or to leave their edits without saving data and honor the focus request.
Example:
nmsoma://open?page=switching&id=1001 or https://localhost:9595/oma/open?page=switching&id=1001