Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Specifies that an HTML template with EJS scripting is to be used for the user interface of a Rich Display File record format. In this case, the Rich Display json is only used to describe the record format's fields and not the look and feel of a screen. The look and feel is defined by the HTML template.

Parameters

  1. HTML Template File - the file path is relative to the modules directory. If the path is not qualified, the pathlist is used to search for the HTML template file.
  2. EJS options (optional) - a JavaScript object specifying EJS options as documented on www.ejs.co.

Example

// Declare Rich Display
pjs.defineDisplay("mydisplay.json");
// Specify HTML template for a specific Rich Display record format screen
mydisplay.myscreen.use("myscreen.html");
 
// Show the screen
mydisplay.myscreen.execute();

 

 

  • No labels