View previous topic :: View next topic
|
Author |
Message |
abhit007
New User
Joined: 18 Oct 2006 Posts: 10 Location: Bangalore
|
|
|
|
Adding on to the problem which Hemanth mentioned, I have more than 100 variables to validate for the same situation. The panel is throwing an error that you can not validate more than 100 variables for a LISTV. Any solution? |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
If you have 100+ entry fields on a panel then you are putting too much on a panel making it unreadable. Split it into 4 or 5 panels - even then there are a lot more entry fields than are advisable. Panels should be clear and simple. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
Yes, do it in two stages - and don't add anything to a thread that dates back more than eight months, start a new one! |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Or get the background code do perform the validation and then throw up error messages on the same screen allowing the user to make corrections and resubmit |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
If you insist on this folly, use panel REXX |
|
Back to top |
|
|
abhit007
New User
Joined: 18 Oct 2006 Posts: 10 Location: Bangalore
|
|
|
|
(Reposting it, just noticed that my last post was splitted.. )
Hi Guys,
No, I am not putting all the 100 values on the panel.
I am using LISTV and I am taking values from outside of the panel as
VALFLD = 'A B C ................' /* 100+ values */
In the panel, I have given the below way.
VER (&CTY,NB,LISTV,&VALFLD,MSG=XYZ)
Since this is not working as there are more than 100 values, I want something like
VALFLD1 = 'A B C ................' /* 50 values */
VALFLD2 = 'A B C ................' /* 50 values */
Now how can I validate the values of &CTY on the same panel? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Maybe if you explained in detail we would not have to keep asking questions.
Where do the values to be compared come from.
What are they compared against, and where do these values come from.
Why can you not do this in the REXX (or whatever) code that displays the panel.
Code: |
DO FOREVER
ERROS = 0
"ISPEXEC DISPLAY PANEL(whatever)
Validation process - if error found set ERROS = 1
IF ERROS = 0 THEN EXIT
END |
|
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
Have you tried this variation:
Code: |
IF (ver (&cty NB,LISTV,&valfld2))
else
VER (&cty NB,LISTV,&valdfld1) |
|
|
Back to top |
|
|
abhit007
New User
Joined: 18 Oct 2006 Posts: 10 Location: Bangalore
|
|
|
|
Yay!!! It worked.....
Code:
IF (ver (&cty NB,LISTV,&valfld2))
else
VER (&cty NB,LISTV,&valdfld1)
Thanks a ton Guys!!! You rocks!! |
|
Back to top |
|
|
|