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



If I'm following you, Booth, I think you would need a hidden field equivalent to Column II so that you would know when the editable values had been changed. You could then just do a loop (my preference is a FOR in these cases) through the entire subfile editing each record, setting indicators (one for the subfile record to Highlight/RI, and another one for "There was glitch somewhere" that would condition the SFLMSG). During the loop, re-calculate the subfile control record field.

But, if you don't think it can be done, I probably misunderstood.

Jerry C. Adams
IBM System i Programmer/Analyst
--
B&W Wholesale
office: 615-995-7024
email: jerry@xxxxxxxxxxxxxxx


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Booth Martin
Sent: Tuesday, September 29, 2009 11:57 AM
To: RPG programming on the IBM i / System i
Subject: validate & update of subfile

I believe what I want to do is not possible however I am wrong so often
I decided to ask here.

I have a subfile with two editable columns.
I wish to validate that each code in column I is valid.
I wish to total the numeric values in column II and display the total of
column II in a field on the Control Record

If the user keys an invalid code in column I _and_ changes values in
column II I would like to issue a SFLMSG, highlight the erroneous field,
_and_ change the column II total on the Control Record.

Reasonably possible?

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.