VL Web library list on IBM i

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

VL Web library list on IBM i

Post by atostaine »

I have a WAM Application that changes the library list based on the user that is entered on the web signon. The user ID's are not valid IBM i user profiles, they are kept in a table.

I have converted the WAM to VL Web. I can see the library list changing when the users signs on. I also change the library list in every server routine, but it doesn't seem to be working.

What is the correct way for setting a library list for a web job dynamically? I keep OAM's in the partition library, but the tables are duplicated in two libraries.

For instance, user JOE needs a library list like EAST, COMMON, QGPL, QTEMP. User LINDA will have WEST,COMMON,QGPL,QTEMP
Art Tostaine
dannyoorburg
Posts: 177
Joined: Mon Jan 04, 2016 9:50 am
Location: Australia

Re: VL Web library list on IBM i

Post by dannyoorburg »

Hi,

There is very little difference between a Server Module running a Server Routine and a WAM running a Web Routine. They run in the exact same environment.

I'm not sure how to best implement your requirements, there will be other people better placed to comment on that, I'm just very surprised that the same code doesn't give you the same result.

Danny
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: VL Web library list on IBM i

Post by atostaine »

Thanks for the reply. I have the CALL to set the library list working now. I would like to know how other people are solving this problem.

Art
Art Tostaine
HamadSheikh
Posts: 27
Joined: Fri Mar 18, 2016 3:49 am
Location: USA
Contact:

Re: VL Web library list on IBM i

Post by HamadSheikh »

You just need to make sure that you set the library list for the actual job that you are using.
i.e. setting the *LIBL for a different job will obviously not help the server module execution.
You have already verified that CALL works fine, you could also test the use of EXEC_OS400.
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

Re: VL Web library list on IBM i

Post by MarkD »

If you are using VLF-ONE an approach to library list management is suggested here

http://docs.lansa.com/14/en/lansa048/in ... d%20in.htm

That approach probably applies equally to non-VLF applications.

If you are using VLF-ONE then this new feature and example suggest how the logon validation program can determine the correct library list for the user and then make it available to every server module subsequently called within the session:

http://docs.lansa.com/14/en/lansa048/in ... 8_6725.htm
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: VL Web library list on IBM i

Post by atostaine »

Thank you Mark. Great examples.
Art Tostaine
Post Reply