on 02-07-2007 7:46 PM
Hi guys,
my requirement is to make the telephone number mandatory in the ESS applications. I want to perform this validation in the web dynpro code onsteaed of the back end ans this needs to be made mandatory just for emergency adress rather than the entire addresses.
Any thoughts how to do this.
regards
Sam
Message was edited by:
sameer chilama
Hi,
Validations are not made in the backend. Usually, the data is sent from the backend.. whether it is required or read only etc..
This usually comes in FieldControl node.. In the application.. it probably reads the corresponding FieldControl element values correspoding to the UI element ID and sets it appropriately..
There usually are utilities.. called applyFieldControl etc.. try using them ... they need the UI ID and the required or read only property with the boolean state..
Hope it helps.
Regards
Bharathwaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
First create a Label instead of text view for the input field
of emergency telephone number.
For this label set the "label for" attribute to the id of the input field.
for the input field set the "state" attribute to 'required'.
This will give the visual effect of a mandatory field.
For Validation you can use the following:
String t = wdContext.currentTestElement().getTel();
if (t != null)
//execute the model here
else
wdComponentAPI.getMessageManager().reportWarning("Please enter Telephone Number");
Hope it helps.
Regards,
Alka.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.