on 10-05-2011 8:20 AM
Hi
We are trying to validate a field in VC UI.
Validation required is the entered value should be part of an output list of a webservice executed.
In detail: a webservice is executed at page load which returns a plant list.
Now when a user fills in the field for plant input, it should not allow any value which is not returned by the webservice.
I am trying to use the validate field option at the bottom of the layout for the field properties.
But no clue on how to use this service, not triggering it every time a value is entered.
Lavanya
The value in the text boxonce validated it gets added ot a table.
If I pad the value of the text box that is how it will be displayed and the added to the table, but the users do not want to see extra zeroes.
Is there a way to temperorily store the value with zeroes, validate and then add it to the table as it is.
One way could be to put a hidden text box to store the temp value, any other smart way?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As I mentioned, webservice pads the code to 18 digits with 0s.
But the user will enter only enter the code which could be 9 digits or 10.
If we know specifically it is 9 we might take the last 9 digits of the returned value to fill the drop down list.
But that is not static.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I missed to mention the actual challenge. The webservice returns 18 digits value whereas the user will enter only 9 digits teh rest have to padded with '0's and it should not be visible to the user either, i.e., we cant convert the value in the text box or list box to 18 digit for further use. We have to temperorily convert them to 18 digits only to verify if the code exists in the list.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lavanya,
To select the fields from the list flexibly to the end user we can suggest dropdown box would suite,In this case,no poor in application performance.
Hope this may help.
Rabert.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lavanya,
in the validation part you can enter some rules. In this dialog you need to define the condition and a value. For the value you can also define an expression. I think in your case you will need it to check whether the value entered is part of the list.
Nevertheless this validation will be done every time a value will be entered for the specific fields. So this is exactly that you've been afraid of. Another idea would be to do a kind of 'manual' validiation (so this means you need to model this by yourself) before saving the new data to the backend. Maybe have a popup that tells which values are wrong and what to choose instead.
Or don't use a text field but a drop down list filled by the values of your webservice or something like this. So your users won't be able to fill in anything different than you'd like to.
Regards
Anja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.