Page tree
Skip to end of metadata
Go to start of metadata

The display.open() method opens a display file that was previously defined with the userOpen configuration property set to true in the pjs.defineDisplay() call. 

Exception Handling

If the display file was previously opened and a display.open() call is made again, a file error will occur (1215 - OPEN issued to a file already opened).

Example

pjs.defineDisplay("display", "mydisplay.json", { userOpen: true });

display.open();

// Code to operate on the display file can go here

display.close();

RPG Equivalent 

OPEN