NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: rjolda on July 17, 2024, 02:53:30 AM

Title: EIP Dropdown selection -- Validation Fails
Post by: rjolda on July 17, 2024, 02:53:30 AM
Hi All,
NT 14.21  C11.0136
I have an NT browse.  I have a string field "SLOT_STATUS".  There is a set of pre-defined values e.g, "EMPTY,OPEN, RESERVED, BROKEN"
In the Browse, I have made the field SLOT_STATUS and EIP field and it is picking the value from a Dropdown which contains the short list of required values.
When I select a value from the dropdown, I always get a VALIDATION error for this field saying that The value is not in the list.
Are there more steps other than checking the EIP box to make it work?
Thanks,
Ron
Title: Re: EIP Dropdown selection -- Validation Fails
Post by: Alberto on July 17, 2024, 05:01:43 AM
Hi,
see pic
Title: Re: EIP Dropdown selection -- Validation Fails
Post by: rjolda on July 17, 2024, 06:11:46 AM
Hi Alberto,
Yes, I see that.  What goes in that box?  The choices are already set in the Drop from the Dictionary and imported by NT to fill the drop, So the choices and the one I pick is correct.  However, there is something missing.
Is there some code that goes there to assign the selected drop item and assign it to the field?
Thanks,
Ron
Title: Re: EIP Dropdown selection -- Validation Fails
Post by: Bruce on July 17, 2024, 08:10:44 PM
tweak one o the shipping examples to show the effect Ron, and post that here.

Cheers
Bruce
Title: Re: EIP Dropdown selection -- Validation Fails
Post by: rjolda on July 18, 2024, 05:50:56 AM
Hi,
here is Web1 modified.  Zip attached.  Same behavior.
Ron
Title: Re: EIP Dropdown selection -- Validation Fails
Post by: Alberto on July 18, 2024, 06:18:09 AM
Hi, problem is you dont set any values for each option, see pic, fill the values and it will work ok, tested.
Title: Re: EIP Dropdown selection -- Validation Fails
Post by: rjolda on July 18, 2024, 07:00:16 AM
HI Alberto,
Interesting.  I have never used the SET VALUES in Dictionary.  Wow.
I guess I need to learn to use it for Net Talk.
MANY THANKS for that Info.
Ron
Title: Re: EIP Dropdown selection -- Validation Fails
Post by: rjolda on July 29, 2024, 06:25:42 AM
Solved,
I kept running into this problem with Validating fields. 
I had some Values of 'Ready Drop|Empty Drop|Reserved, etc.
I kept running into the problem.  It looks like there is a jsOK to validate values and it did NOT TOLERATE SPACES in my values.
Once I changed my values to have no spaces, it worked fine!  E.g 'Ready_Drop|Empty_Drop|Reserved, etc.
Ron