cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding input field

sandeep_kumar60
Participant
0 Kudos

HI

Iam facing a problem in using the input field ui element,

actually i using the backend webservice and designed as per requirement , i have 4 i/p fielsds to be dispalyed , but when i run the application only 2 fields are enabdled and other two r in disabled state.

the properties enabled is set to true for all the input fields

and also changed the contex of the i/p node to 1.1.

but i cant find any change in the screen , can any one pls help me in rectifying the problem .

thankng you

san

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If the selection cardinality is set to 1:1 and still the Input field is disabled,

Try chking the following:

1. Import of all Packages/Classes for the model is done.

2. Created an element and bound it to context

3. If data is not present then also the input field will be disabled. Your context node should have atleast one node Element.

4. If your web service name is WS then put following code in your wdDoInit


WS model = new WS();
Request_GetWeatherByZipCode zip = new Request_GetWeatherByZipCode(model);
zip.setGetWeatherByZipCode(new GetWeatherByZipCode(model));
    
wdContext.nodeRequest_GetWeatherByZipCode().
addElement(wdContext.createRequest_GetWeatherByZipCodeElement(zip));

In executeRequest_GetWeatherByZipCode() of Component Controller write following code:


try {
wdContext.currentRequest_GetWeatherByZipCodeElement().modelObject().execute();
} 
catch (Exception e) {
wdComponentAPI().getMessageManager().reportException(e.getMessage(),true);
}

Do Organize imports also..

Regards,

Vijay.

Answers (1)

Answers (1)

sandeep_kumar60
Participant
0 Kudos

doing some reserch on that