Page 1 of 1

Custom start.html

Posted: Tue Oct 19, 2010 9:17 am
by Bryan641
I had created a customized start.html under a unique name and changed the alias statement to point to my custom version, but with version 2.1.6, when I start a program it just references /profoundui/start?pgm= instead of /profoundui/start.html?pgm= Is it still safe to use start.html to run programs or is that being replaced? Alternatively, how do I configure /profoundui/start to have my custom headings?

--Bryan

Re: Custom start.html

Posted: Tue Oct 19, 2010 11:37 am
by Rob
With version 2.1.6 we changed the way start.html operates so you can create custom widgets. We have dropped the ".html" off the start URL.
start.html and your custom version newname.html will still continue to operate as before but we recommend you make the following change to the http config file at /www/profoundui/conf/httpd.conf if you have made a custom version of start.html as you have done.

in httpd.conf there is a line:

Code: Select all

ScriptAlias /profoundui/start /QSYS.LIB/PROFOUNDUI.LIB/PUI0005001.PGM
If your modified copy of start.html is called newname.html, then add a new line directly under the line above. It will look like this:

Code: Select all

ScriptAlias /profoundui/start /QSYS.LIB/PROFOUNDUI.LIB/PUI0005001.PGM
ScriptAlias /profoundui/newname /QSYS.LIB/PROFOUNDUI.LIB/PUI0005001.PGM
Save the file and restart the Profound UI instance with these commands:

Code: Select all

ENDTCPSVR SERVER(*HTTP) HTTPSVR(PROFOUNDUI)
STRTCPSVR SERVER(*HTTP) HTTPSVR(PROFOUNDUI) 

The URL for your custom start html file will then be:
/profoundui/newname?pgm= etc etc

If you make this change, your custom start html file will be compatible with future features of Profound UI.