PROFOUNDly LOGIC on IBM i - Part 1
To begin, thanks to IBM i PDP that enables developers and offers no-charge remote access to IBM hardware. Thanks to Profound Logic for providing trail Key and support documentation.
I'm using TN5250J.JAR open source java based API to connect to server and have the source in IFS. But i suppose we can use ILEditor for writing JS code (open source).
For general learning, I feel ATOM text editor is best.
The post is on my learning and experience of ProfoundUI & ProfoundJS. I have done some very basic stuff and being a beginner to NodeJS (Javascript) it lotzzz of learning . Profound Logic has videos and online material available for reference.
I'm using TN5250J.JAR open source java based API to connect to server and have the source in IFS. But i suppose we can use ILEditor for writing JS code (open source).
For general learning, I feel ATOM text editor is best.
The post is on my learning and experience of ProfoundUI & ProfoundJS. I have done some very basic stuff and being a beginner to NodeJS (Javascript) it lotzzz of learning . Profound Logic has videos and online material available for reference.
I’m thinking this will be 2 parts -
First, about ProfoundUI along with HANDLER keyword on RPGLE and second use the same ProfoundUI on ProfoundJS (Javascript).
First, about ProfoundUI along with HANDLER keyword on RPGLE and second use the same ProfoundUI on ProfoundJS (Javascript).
ProfoundUI & ProfoundJS
is open source which can be installed with npm (node package manager) but profound connector is
commercial add-on but I’m using a trail for
30 days. For more details, check out Profound Logic documentation.
I feel ProfoundUI is the game-changer here. It provides the ease of developing visually appealing screens with sophistication. By this I mean as RPGLE developers we need not worry about HTML,CSS for now. But its a must learn.
I feel ProfoundUI is the game-changer here. It provides the ease of developing visually appealing screens with sophistication. By this I mean as RPGLE developers we need not worry about HTML,CSS for now. But its a must learn.
ProfoundUI on IBM i (PDP) -
- Install profoundjs from QSH - npm install profoundjs
- ADDENVVAR WRKENVVAR(QIBM_MULTI_THREADED)
- Start QSH and type the below commands in the screen shot below. Now we have the NodeJS running as local host.
ProfoundUI designer allows us
to design screens by just dragging and dropping text box, CSS buttons etc to
load the screen. I was not able to explore all the features but the ease of
screen design is superb. Subfile design using SYNON/2e is so much fun and this feels the same way.
The below screen is a commercial
add-on, now since we will be using HANDLER we need to create a Rich Display
File and that is available though the screen below i.e. after designing the screen you can save it as QDDSSRC in
PUISAMPLES library unlike the open source version where the same file will be
saved in IFS as .js file.
ProfoundUI - On the page, click on start visual designer -
The below screen is framework
(nodedesigner) - We can drag and drop the
buttons, text fields and name them. Similar to DSPF, we must specify the record
format for the screen.
|
Click save as and you will see a ‘source member’ option to
save the designer screen as rich
display file
The below screen shows the source with Rich display file as you can see the ProfoundUI Handler routes it to ExtFile. While saving the display file it gets converts to HTML file and it is saved in PUISAMPLES library. That is the default library but it can be saved in any library.
Output upon executing the program from call statement -