|
Ah but that approach won't work if you have 4 different subfile records that you want to show at any given time. Say for instance you want to show a subfile for the different options available to an employee and have the user select the one they wish to display in detail. Depending on what that employee has signed up for, they could have 8 different types of pension, leave, benefits etc. I like that approach of using the single alpha field for the subfile record. It never even dawned on me to use hidden fields for the "real" data, and the color attributes, nice touch. Just a second here, OPEN BRAIN WRITE BRAINR CLOSE BRAIN Ok, I've stored that little idea in my head. LOL. Ron Power Programmer Information Services City Of St. John's, NL P.O. Box 908 St. John's, NL A1C 5M2 Tel: 709-576-8132 Email: rpower@xxxxxxxxxx Website: http://www.stjohns.ca/ ___________________________________________________________________________ Success is going from failure to failure without a loss of enthusiasm. - Sir Winston Churchill "Booth Martin" <booth@xxxxxxxxxxxx> Sent by: rpg400-l-bounces@xxxxxxxxxxxx 18/05/2005 04:33 PM Please respond to RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx> To "RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx> cc Subject Re: Subfiles - overlapping fields As you arrive at that level of sophistication it might be cleaner and simpler to just fill two subfiles everytime, and then let the user choose which view to see with an F-key. Its not much more work, and it sure is easier to understand or modify 3 months later --------------------------------- Booth Martin http://www.martinvt.com --------------------------------- -------Original Message------- From: RPG programming on the AS400 / iSeries Date: 05/18/05 13:51:03 To: RPG programming on the AS400 / iSeries Subject: Re: Subfiles - overlapping fields That is a great technique if you're only displaying data. But what if you want input capable data in your subfile? Thanks, Mark Mark D. Walter Senior Programmer/Analyst CCX, Inc. mwalter@xxxxxxxxxx http://www.ccxinc.com Tony Carolla <carolla@xxxxxxxx m> To Sent by: RPG programming on the AS400 / rpg400-l-bounces@ iSeries <rpg400-l@xxxxxxxxxxxx> midrange.com cc Subject 05/18/2005 02:38 Re: Subfiles - overlapping fields PM Please respond to RPG programming on the AS400 / iSeries <rpg400-l@midrang e.com> Hello Kurt What I have done in the past, doesn't necessarily involve less work, but seems to accomodate the need. I usually build a single alpha field as the subfile record, and then use hidden fields for the real data. Then I create data structures based on the multiple record types I want to show, and EVAL the appropriate . With the ability to color sections of an alpha field (which I just learned from this message group -- thanks again!), this allows you to show or not show whatever you want, with colors and attributes, per subfile record. <snip> On 5/17/05, Kurt Anderson <kjanderson@xxxxxxxxxxxxx> wrote: > > As wonderful as subfiles are, I get tired of not being able to condition > a field in a subfile. I can't even DSPATR(ND) a field and have another > field appear because of it (the ND field will display as blank, the > field 'beneath' will never display on the screen as far as I can tell). > Why is this? Is there any hopes that this limitation will be lifted in > the future? </snip> -- "Enter any 11-digit prime number to continue..." "In Hebrew SQL, how do you use right() and left()?..." - Random Thought -- This is the RPG programming on the AS400 / iSeries (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. -- This is the RPG programming on the AS400 / iSeries (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. . -- This is the RPG programming on the AS400 / iSeries (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.