NetTalk Central

Author Topic: EIP Dropdown selection -- Validation Fails  (Read 3791 times)

rjolda

  • Sr. Member
  • ****
  • Posts: 315
    • View Profile
    • Email
EIP Dropdown selection -- Validation Fails
« 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

Alberto

  • Hero Member
  • *****
  • Posts: 1870
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: EIP Dropdown selection -- Validation Fails
« Reply #1 on: July 17, 2024, 05:01:43 AM »
Hi,
see pic
-----------
Regards
Alberto

rjolda

  • Sr. Member
  • ****
  • Posts: 315
    • View Profile
    • Email
Re: EIP Dropdown selection -- Validation Fails
« Reply #2 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11242
    • View Profile
Re: EIP Dropdown selection -- Validation Fails
« Reply #3 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

rjolda

  • Sr. Member
  • ****
  • Posts: 315
    • View Profile
    • Email
Re: EIP Dropdown selection -- Validation Fails
« Reply #4 on: July 18, 2024, 05:50:56 AM »
Hi,
here is Web1 modified.  Zip attached.  Same behavior.
Ron

Alberto

  • Hero Member
  • *****
  • Posts: 1870
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: EIP Dropdown selection -- Validation Fails
« Reply #5 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.
-----------
Regards
Alberto

rjolda

  • Sr. Member
  • ****
  • Posts: 315
    • View Profile
    • Email
Re: EIP Dropdown selection -- Validation Fails
« Reply #6 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

rjolda

  • Sr. Member
  • ****
  • Posts: 315
    • View Profile
    • Email
Re: EIP Dropdown selection -- Validation Fails
« Reply #7 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