Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi, Need to display two subfiles o

Status
Not open for further replies.

SunithaV

Technical User
Sep 4, 2003
2
IN
Hi,
Need to display two subfiles on the same screen. Both have option validation and processing. Only one option will be processed at any time from any of the subfiles. While validating the options, focus (cursor) should be on the subfile record that is in error. It can be from either of the two subfiles. How do we set the focus?

Can someone please help me with this?
Thanks,
Sunitha
 
Add the DSPATR(PC RI) keyword with a conditioning indicator in column 9&10 to the subfile field which needs to be validated. In your validation of each subfile line, do something like
Code:
C      RRNS1   Chain   SFLRECORD
C              Eval    *IN51 = *OFF
C              If      (whatever the error is)
C              Eval    *IN51 = *ON
C              EndIF
.
other errors?
.
C              Update  SFLRECORD
This will position the cursor on the first field in error and also reverse-image it just to let the user know where the error is. You can use a different indicator on each field and do the validation for all of them at the same time. All of the fields in error will be reversed-imaged but the cursor will be positioned at the first one.

PeteJ
(Contract Code-monkey)

It's amazing how many ways there are to skin a cat
(apologies to the veggies)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top