× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



You have two options, leave the last displayed subfile record blank and
available for entry or in the footer, create what appears to be "another
subfile record".



Say you have a subfile that looks like this...

Column1    Column2    Column3
________   ________   ________
________   ________   ________
________   ________   ________
________   ________   ________
________   ________   ________
________   ________   ________


In the footer, create Input/output fields that line up with the bottom of
the subfile

________   ________   ________

F=Exit


Then in the RPG program you will...

Write Footer
Exfmt SubfileControl

// Check for function keys
If f3, exit
if enter
  Read Footer      // Read the footer to see if user is adding new rec.

  If footer fields <> *Blanks then execute subroutine
EndIf

Does that help any?


Michael Schutte



                                                                           
             "sheami"                                                      
             <sheami@indiatime                                             
             s.com>                                                     To 
             Sent by:                  <rpg400-l@xxxxxxxxxxxx>             
             rpg400-l-bounces@                                          cc 
             midrange.com                                                  
                                                                   Subject 
                                       Half of the subfile in display mode 
             06/21/2006 07:01          and half into the add mode          
             PM                                                            
                                                                           
                                                                           
             Please respond to                                             
              RPG programming                                              
              on the AS400 /                                               
                  iSeries                                                  
             <rpg400-l@midrang                                             
                  e.com>                                                   
                                                                           
                                                                           





hi ,

I have a requirement where  users are going to enter the data through
subfile and once the data is enter the same data should get displayed back
on screen in the display mode as well as at the bottom the user should be
able to enter more data through the subile.
I am not sure if it is possible with one subfile, i have tried to do it but
the system shows the existing records in the editable mode rather than
display mode,

is it possible to display the same subfile in display mode for existing
records and then in the add mode on the same screen.


Thanks,
Amit



--
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 thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.