|
CGI doesn't have a subfile concept. You are on the right track in that you need to check all fields for changes. If you need to check for differences, one way might be to output your data field to an inputbox as you are currently doing, and then under a similar name output the data field to a hidden field. They will both be returned when the form is posted, and you could then check them for differences. If a difference is found, post the changes for that record to your database. Another possibility would be to compute and store a checksum for each record in a hidden field tied to your record. When the form is posted, calculate a checksum for each posted record, and then compare the two checksums. If the checksums are different, post the record to your database. At 07:30 PM 10/20/02, you wrote:
Evening, I am looking to understand how to emulate a subfile data input process through RPG-CGI for a project I am playing with.. I can write out the multiple <TR> </TR> records that would look like a subfile, but is there anyway to do something like read subfile next changed to only get rows that were updated/changed. So far it looks like I have to assign a unique name to each input field I create in the Table and then check them all ? What do you all suggest... Thks, JMS... ==================== Jeffrey M. Silberberg CompuDesigns, Inc. Atlanta, Ga. 30350-5640 _______________________________________________ This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To post a message email: WEB400@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/web400 or email: WEB400-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.
Regards, Rich
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.