PJS tips
Note that in this PJS tips section, the PJS instance runs on a PC at port 8081, so the examples' URLs will be in the format of http://localhost:8081/xxx. If your PJS instance runs on an IBMi system at a different port number, the URLs will be in the format of http://hostName:portNumber/xxx. Please change the URLs to use the correct host/port where needed.
Contents
- Tip 1: How to create a workspace
- Tip 2: How to quickly call/test/debug a PJS module as a web service
- Tip 3: How to call a low-code module from an RPG program
- Tip 4: How to debug a low-code module by converting to "real" PJS code
- Tip 5: How to set entire body from input parms and get entire response into output parms (in low-code plugin Consume REST Service)
- Tip 6: How to handle variable-size array in body and response (in low-code plugin Consume REST Service)
- Tip 7: How to use commands PJSMYIP and PJSCALL to call a "regular" PJS module on your PC from IBMi system
- Tip 8: How to generate a load-all subfile PJS app from Jumpstart and call it from Genie
- Tip 9: How to call an RPG program to return multiple records for a PAPI route
, multiple selections available,