Retrieving arguments from an API
The maintenance management system may provide an API to retrieve data from the user’s session. The following example JavaScript expression retrieves the equipment number for the currently selected equipment.
<%=linkdoctree.getParent().getString("eqnum")%>
The returned value can then be integrated into the URL by writing code similar to the following example in the JavaScript page.
src=http://<ServerName>/ExplorerClient/Home.aspx?eqnum=<%=linkdoctree.getParent().getString("eqnum")%>
If the maintenance management system provides a similar API, this is the recommended way to obtain data from the user’s session.