under the browse list (AS400/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
noamp
Posts: 15
Joined: Thu Nov 02, 2017 9:29 pm

under the browse list (AS400/IBM I)

Post by noamp »

hey,
i have a problem on lansa as400/ibm i.
maybe anyone can help me with that.

when i have browse list on the display screen i can't position test or field under the list on the bottom of the screen.

please if anyone know.
thanks!
caseywhite
Posts: 192
Joined: Thu May 26, 2016 1:17 am

Re: under the browse list (AS400/IBM I)

Post by caseywhite »

I haven't looked at green screen code in a long time but I did figure out how you might be able to do what you want depending on whether you need fields to be input capable. Check out the help on the DISPLAY/REQUEST command and look at the OPTIONS parm. You can use *NOREAD on the first DISPLAY which will cause the system to go to the next DISPLAY/REQUEST. But that means that those fields cannot be input capable. I tried putting an input field above the browselist in the second but it resulted in the browselist data not being displayed. Your input capable fields would be on your the second DISPLAY/REQUEST.

Here is some sample code to play around with. I commented out the Request that didn't work correctly.

Code: Select all

Def_List Name(#TEST) Fields(#STD_TEXT)

Change Field(#STD_TEXT) To(X)
Add_Entry To_List(#TEST)
Change Field(#STD_TEXT) To(X)
Add_Entry To_List(#TEST)
Change Field(#STD_TEXT) To(X)
Add_Entry To_List(#TEST)
Change Field(#STD_TEXT) To(X)
Add_Entry To_List(#TEST)

Display Fields((#STD_ALPHA *L4 *P3) (#STD_TEXTS *L6 *P3)) Browselist(#TEST 5) Options(*NOREAD)
Request Fields((#STD_FLAG *L19 *P3 *INPUT)) Options(*OVERLAY)
* Request Fields((#STD_FLAG *L19 *P3 *INPUT) (#STD_ALPHA *L3 *P2)) Options(*OVERLAY)

noamp
Posts: 15
Joined: Thu Nov 02, 2017 9:29 pm

Re: under the browse list (AS400/IBM I)

Post by noamp »

caseywhite wrote: Thu Apr 02, 2020 9:01 am I haven't looked at green screen code in a long time but I did figure out how you might be able to do what you want depending on whether you need fields to be input capable. Check out the help on the DISPLAY/REQUEST command and look at the OPTIONS parm. You can use *NOREAD on the first DISPLAY which will cause the system to go to the next DISPLAY/REQUEST. But that means that those fields cannot be input capable. I tried putting an input field above the browselist in the second but it resulted in the browselist data not being displayed. Your input capable fields would be on your the second DISPLAY/REQUEST.

Here is some sample code to play around with. I commented out the Request that didn't work correctly.

Code: Select all

Def_List Name(#TEST) Fields(#STD_TEXT)

Change Field(#STD_TEXT) To(X)
Add_Entry To_List(#TEST)
Change Field(#STD_TEXT) To(X)
Add_Entry To_List(#TEST)
Change Field(#STD_TEXT) To(X)
Add_Entry To_List(#TEST)
Change Field(#STD_TEXT) To(X)
Add_Entry To_List(#TEST)

Display Fields((#STD_ALPHA *L4 *P3) (#STD_TEXTS *L6 *P3)) Browselist(#TEST 5) Options(*NOREAD)
Request Fields((#STD_FLAG *L19 *P3 *INPUT)) Options(*OVERLAY)
* Request Fields((#STD_FLAG *L19 *P3 *INPUT) (#STD_ALPHA *L3 *P2)) Options(*OVERLAY)

Thank you caseywhite!!
It's work perfect.
Post Reply