on 09-12-2011 12:03 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
doing some reserch on that
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
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.