Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: "pjs.defineDisplay()" was linked to pjs.defineTable(). Fixed it.

...

Code Block
languagejavascript
title/profoundjs/modules/pjshello/example2.js
function example2() {
  pjs.defineDisplay("display", "pjshello/example2.json");
  display.helloworld.execute();
}
 
exports.run = example2;

The code uses the pjs.defineDisplay() API to declare a JSON display file and create an object named "display". Every record format within the Rich Display becomes a property of the "display" object. The display.helloworld.execute() method shows the screen to the user and waits for the user to respond.

...