cancel
Showing results for 
Search instead for 
Did you mean: 

ESS .. Make Telephone number mandatory FPM applicaiton

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.