Forums
Is it possible to change the library list within an ICECAP session?
Simply put; Option one on the menu would call Program A to maintain stock on one database and I would like Option two to change the library list and call Program A to maintain stock on a different library list. At the end of the process the library list would be returned to the original list.
Normally I would do this task in a CLP and call the stock maintenance program. Is this possible in ICEBREAK?
Using IceCap "initFunc"
Hi
You can use the IceCap "initFunc" to set the library list.
Ex.
IceCap.aspx?func=call mypgm&initfunc=call setmylibl
Change Library List
Hi;
The short version: Yes you can. However I need to explain the environmnet at bit.
The IceBreak job is not the same job as the interactive 5250 IceCap job, and changing the library list of the IceBreak job would not be of much help. Your solution would be more obvious if you do it from the 5250 job.
The IceBreak job communicates with one or more of your 5250 jobs which works like a task manager or session manger to allow you to switch between the 5250 session connected to the IceBreak (web) session.
Now: in the communication process you have the possibility to send a message to the break messages handler which can call any program ( aka. change you library list) - and certainly you can do that in your break-out program.
IMHO – it will be a blurry solution, however if you want to pursue this trail, I will be happy to show you how.
Change Library List
Hi Niels, Thanks for replying.
I need to change the library list at the start of the program and change it back at the end of the program.
"In the communication process you can send a message to the break messages handler which can call any program"
Could you supply an example of this please.
Neil.
Change library list
Hi Niel
Will it not work for you, if you do like this ?:
Maintain stock A:
/icecap.aspx?func=call wrkStock&initfunc=call setLiblA
Maintain stock B:
/icecap.aspx?func=call wrkStock&initfunc=call setLiblB