widgetBackend
This setting was introduced in Profound.js 5.4.0. In prior releases, the behavior is the one described for the value "pui".
Description
The widgetBackend setting controls the behavior of database-driven widget and file upload/download requests when the Profound.js application is running inside a Profound UI / Genie session.
This setting has no effect when the application is not running inside a Profound UI / Genie session. In that case, the behavior is always as described for "pjs".
Valid Values
"pui" - Requests are processed by the Profound UI / Genie backend. Queries run against the local IBM i database where Profound UI / Genie is running; this value does not allow queries against the databases defined in databaseConnections. The Profound UI version of the file upload and file download exit programs are called, and files are transferred to and from the IBM i system where Profound UI / Genie is running.
"pjs" - Requests are processed by the Profound.js backend. Queries run against the databases defined in databaseConnections. The Profound.js version of the file upload and file download exit programs are called, and files are transferred to and from the system where Profound.js is running.
This option requires configuring the Profound UI / Genie HTTP server instance to proxy the requests to the Profound.js server, using these directives:
Profound UI / Genie HTTP server configuration
# If the PJS server is running on a different system than PUI / Genie,
# replace "localhost" with the host name or IP address of the system.
LoadModule proxy_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule proxy_http_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule proxy_connect_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
ProxyPassMatch "^/(profoundjs/(auth/)?PUI00091(01|02|03|04|07|09|10|19)\.PGM)$" "http://localhost:8081/$1"
ProxyPassReverse /profoundjs http://localhost:8081/profoundjsExample
widgetBackend: "pjs"For information on how to modify this setting, see Configuration File.