RTView® 
User Guide


Display Viewer Applet

JavaScript
If you are using JavaScript within your HTML file, the Display Viewer Applet supports the following methods:
 
Method Description
doDrilldown (String panelName, String displayName, String subs) Performs a drill down into the panel specified by panelName. If there is not already a panel open with the specified panelName, a new window will be created with a panel by that name. This window will be reused for each drill down using that panelName. If panelName is *, a new window will be created for the display each time the drill down is performed. If the panelName is blank, the drill down will open in the main panel. See Multiple Display Panels for information on specifying names for your panels.

The displayName is the name of the display (.rtv) file to be loaded in the drill down panel. If this is set to ., the display in the panel will not be replaced. A displayName of . is not valid if you are drilling down to a new window. If the displayName is a URL and it contains spaces, the spaces must be replaced with %20.

The substitutions argument controls the substitutions on your drill down panel. Substitutions are optional and must use the following syntax:

$subname:subvalue $subname2:subvalue2

To remove existing substitutions on the drill down panel, prepend g$clear to your substitution argument:

g$clear $subname:subvalue $subname2:subvalue2

If a substitution value contains a single quote, it must be escaped using a / :

$filter:Plant=/'Dallas/'

If a substitution value contains a space, it must be enclosed in single quotes. Do not escape these single quotes:

$subname:subvalue $subname2:'sub value 2'

A substitution string cannot contain the following:
:
|
.
tab
space
,
;
=
<
>
'
"
& / \ { } [ ] ( )

setRTViewName (String displayName) Sets the current display (.rtv) file name in the main panel.
addSubstitution (String subString, String subValue) Adds a substitution to the main panel. Calling this method will cause substitutions in all windows to be reevaluated. If the substitution string is already defined, the corresponding value will be replaced with this value.
removeSubstitution (String subString) Removes a substitution from the main panel. Calling this method will cause substitutions in all windows to be reevaluated.

 
 
 
 
 
   


 
SL, SL-GMS, GMS, RTView, SL Corporation, and the SL logo are trademarks or registered trademarks of Sherrill-Lubinski Corporation in the United States and other countries. Copyright © 1998-2012 Sherrill-Lubinski Corporation. All Rights Reserved.

 

JMS, JMX and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. They are mentioned in this document for identification purposes only. 

 

Third Party Notice Requirements