Skip to Content

Regarding input field

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2011 at 01:22 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 13, 2011 at 04:46 AM

    doing some reserch on that

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.