View previous topic :: View next topic
|
Author |
Message |
sree reddy
New User
Joined: 20 Jul 2007 Posts: 27 Location: bangalore
|
|
|
|
in screen-1 i have 3 rows, in these rows i have a column which has %
if the user is satisfied with this 3 rows it is fine
else
he goes to screen-2 add additional rows.
Once he is done
before we insert into the table the sum of the column having % from both the screens should not be > 100
Could any one suggest right solution
My solutions is
i have a copybook xxxx in which i use occurs 3 times
to pass the data entered in screen 1 for 3 rows.
Could any one suggest right solution
Thanks |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
Could any one suggest right solution |
Probably not, since there is no one way to do this. You could pass the three values in DFHCOMMAREA, add the three values and pass the total in DFHCOMMAREA, write a TSQ record with the values (or just their total), just for starters. All of them are equally "right" in that, provided your code is correct, will produce the same results. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Has a single scrolling screen been considered? The code for an add (or an update) would require editing, but could be done form the same screen.
The values could be viewed, updated, and new entries added if the screen was designed properly. . . |
|
Back to top |
|
|
|