Page 1 of 1

Universal display file/program development

Posted: Tue Sep 01, 2015 4:00 pm
by jpmurtha
I am getting an error when making an ajax call, I get CPF9812 on the display file. It has to be related to the library list that I have when I call my pui rich display program. For really simple universal displays I take the launch preview option.

My question is how does a universal display program get started the first time? If I create a universal display file and a program that reads and writes to it, is there a way to manually launch and call it from a browser to make sure that everything is working ok before trying to call it via ajax javascript?

Re: Universal display file/program development

Posted: Tue Sep 01, 2015 4:47 pm
by David
When the UDF programs are called by Ajax using the Profound UI / Genie Designer properties, the user session id is passed along on the request and the UDF web connector has some internal processing that sets up the library list to match the user session.

When they are called independently of a Profound UI / Genie session, the library list will include only those specified in the system values QSYSLIBL and QUSRLIBL or the job description QHTTPSVR/QZHBHTTP.

A quick/easy way to get libraries onto the list for development testing is to just run the ADDLIBLE or CHGLIBL from the program and then USROPN files in the RPG.