"Variablizing" a library.
Posted: Tue Sep 22, 2015 12:07 pm
In using the File Upload widget. I've coded the "target directory" in the following manner:
script: '/www/puidev/htdocs/profoundui/userdata/images/shipmnts/' + getFormattedPro("D_1_6", "I_1_10", "D_1_18");
This works fine. "puidev" is our development library and when we do one of our in-house releases (in which I have to copy over the entire "screens" file to the production library), I have to go to each of the screen renderings that has a directory in it and manually change "puidev" to "profoundui". Without actually changing the DDS to include the library name, is there a way to "variable-ize" the library so that I don't have to go back and manually change a library name?
I looked in the Genie forum, but I didn't see this item addressed. I saw the "Detecting Genie" item in the online documentation:
D PUI0002300 PR ExtPgm('PUI0002300')
D isGenie N
D GenieLib 10A Options(*NoPass)
D GenieSkin 50A Options(*NoPass)
D DocRoot 128A Options(*NoPass)
D UserAgent 128A Options(*NoPass)
I see that the library name is available, but it seems that I would have to add "GenieLib" to the DDS. What is the best way or how do most users handle this? Thanks for any help.
script: '/www/puidev/htdocs/profoundui/userdata/images/shipmnts/' + getFormattedPro("D_1_6", "I_1_10", "D_1_18");
This works fine. "puidev" is our development library and when we do one of our in-house releases (in which I have to copy over the entire "screens" file to the production library), I have to go to each of the screen renderings that has a directory in it and manually change "puidev" to "profoundui". Without actually changing the DDS to include the library name, is there a way to "variable-ize" the library so that I don't have to go back and manually change a library name?
I looked in the Genie forum, but I didn't see this item addressed. I saw the "Detecting Genie" item in the online documentation:
D PUI0002300 PR ExtPgm('PUI0002300')
D isGenie N
D GenieLib 10A Options(*NoPass)
D GenieSkin 50A Options(*NoPass)
D DocRoot 128A Options(*NoPass)
D UserAgent 128A Options(*NoPass)
I see that the library name is available, but it seems that I would have to add "GenieLib" to the DDS. What is the best way or how do most users handle this? Thanks for any help.