view

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:

Note:

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.
Note: To use the view command, you must install the file 'pinnacle.dll' in the same directory as the executable of the application in which view is to be used.

Options

The view command takes the following options.

floating

The window floats and can be moved into a position above the main SAP window. The syntax is:

{"floating":true}
maximize

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}
returnwindow

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]"}); 
closewindow

Closes the window created by the command. The syntax is as follows:

{"closewindow":true}
template

Term definition.

{"template":"template_fileName"}