|
I have a screen that I'm working on where the main subfile display data is
the same structure and columns but the search criteria that is at the top
of the screen in the control record can be different. On my first screen
I have some selections, for example warehouse, and workcenter. You can
only specify one of them to search by at a time. So when they choose to
search by warehouse I need the second screen to show a heading of WHSE __
<- filled in with their selection from screen 1. If they choose
workcenter then it should be WRKC ____ <- filled in with their selection
from screen1.
So what I tried to do was the following...
A*****************************
A*Warehouse
A*****************************
A 4 13'Planning WHS'
A N81 DSPATR(ND)
A PWHS 2 B 4 26COLOR(WHT)
A 70 DSPATR(RI)
A 71 DSPATR(PC)
A N81 DSPATR(ND)
A 4 29'+'
A N81 DSPATR(ND)
A*****************************
A*Workcenter
A*****************************
A 4 14'Wrkc'
A N83 DSPATR(ND)
A WRKC 6Y 0B 4 18COLOR(WHT)
A EDTCDE(3)
A 66 DSPATR(RI)
A 67 DSPATR(PC)
A N83 DSPATR(ND)
A 4 25'+'
A N83 DSPATR(ND)
So basically I'm trying to NonDisplay one field and display the other.
But this doesn't work. I can't figure out why, so I assume there is
something that I don't know about how Non Display and field overlapping
works. There are 5 different search criteria total and this was
originally 5 different procedures with 5 different screens. Because these
screens are soooo similar I want to make them all one and just play with
the 1 field in the control record.
Thanks
Bryce Martin
Programmer/Analyst I
570-546-4777
--- This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us and destroy this message immediately. --- --
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.