Viewing files in native SAP screens.
The view command in WS is used to enable users to view files within native SAP screens. Supported file formats that can be viewed in this manner are the following:
Beginning with Server release 3.4.447.0, the view command is supported on GuiXT WS Server. However, there are some limitations. The format of view on Server is different, as shown in the following example.
view([1,0], [50,50], "sample.html");
On Server, the view cmomand supports ONLY the following filename formats.
No options for the view command are currently supported when usign view on GuiXT Server.
The syntaxes are as follows:
| Syntax | Description |
|---|---|
view([startRow, startCol], [endRow, endCol],"fileName",{"option":value…});
|
Displays an image file inside SAP screens, specifying the starting and ending points for the viewing window. |
view("fileName.html", "option":value});
|
Displays an image file inside a non-SAP application window. |
The view command takes the following options.
The window floats and can be moved into a position above the main SAP window. The syntax is:
{"floating":true}
Usually used in conjunction with the floating option, this specifies that the window is maximized to fill the screen.The syntax is as follows:
{"maximize":true}
Creates a variables that contains the internal window handle of the created view window. The syntax is as follows:
"returnwindow":"&V[winName]"}
See the following example:
view([10,10], [20,20], "&V[fileName]", {"floating":true, "returnwindow":"&V[winName]"});
Closes the window created by the command. The syntax is as follows:
{"closewindow":true}
Term definition.
{"template":"template_fileName"}