JumpStart provides the ability to automatically generate user interface and business logic code for Profound.js modules. It uses the database files you select as a starting point.
In this example, we'll walk through generating a Node.js application with a Rich Display File user interface.
Launch JumpStart and run through the Application Type and File Selection. For Profound.js, select Node.js in the Language box and use a Rich Display File for the Display Type. After you have gone through all the setup, select Retrieve Fields.
As you would for any JumpStart template, select the fields you'd like the display to show when using it.
In the Code Generation section, the Library and Proxy Name is the location for the object that will be created so that your generated application can be called from a Genie session. The Rich Display File (View) and the Main Node.js File are both locations where the Rich Display and Node.js code are going to be stored.
- The Proxy Name and Main Node.js File names should both be the same (not case-sensitive).
- The Rich Display File (View) and the Main Node.js File paths should both be the same, just with different file names.
- As you enter in a Library and Proxy name, it will update the Rich Display File (View) and the Main Node.js File accordingly.
Click Generate Application and you should be notified that your application has been generated.
Step 2.5: The Object and Source
To locate the object, use '
WRKOBJ <LIBRARY>/<PROXYNAME>' - where
<LIBRARY> is the Library name you used and
<PROXYNAME> is the Proxy Name you used when generating your application.
To locate our Node.js source and Rich Display File, just follow the path that you used when generating your application.
Now you have successfully generated your application, you should now be able to call it from a Genie session.
Before you can call your application, you will need to set your library list up so some of the Profound.js dependencies are picked up: In your Genie session:
CHGLIBL LIBL(DEMOLIB PROFOUNDJS PROFOUNDUI)
After you set up your library list, you can simply call your program (proxy) a Genie session: