Skip to Content
avatar image
Former Member

Inputfield is disabled

Hello Experts,

when i run my wd app in 7.2 the inputfields and checkboxes are disabled... but it deploys without any warnings..

I tried everthing setting the cardinality to 1..1 and so on.

Do u have any idea what is wrong....

I hope u can help me

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

11 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 11, 2012 at 05:56 PM

    I have implemented those two things in the controller is that what u mean ?

    public void wdDoInit()
      {
        //@@begin wdDoInit()
     
        
        CityModel myModel = new CityModel();
        wdComponentAPI.getModelInstanceMap().putDefaultInstance
             ("com.sap.test.tc.wd.tut.ejb.wdapp.model.CityModel", myModel);
        // initialize request parameter
        
        //@@end
      }
    
      public void findMatchingCities( )  {
        //@@begin findMatchingCities()
        try {
          wdContext.currentRequest_CitiesLocal_findMatchingCitiesElement().modelObject().execute();
        } catch (Exception e) {
          wdThis.wdGetAPI().getMessageManager().reportException(e);
          logger.throwing(e);
        }   
        //@@end
      }
    

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 11, 2012 at 02:28 AM

    where is your node located? if it is not the direct child of root node, you also have to set the cardinality of parent node.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 11, 2012 at 07:39 AM

    Looks like you have binded the input field to the RFC fileds directly.

    If you need the input field enabled, create a local variable and assign that to the input field and then get that value and bind it to the RFC.

    Same applies to Check boxes. However if you are using checkbox group then you can dynamic checkbox text.

    Hope it helps.

    Regards

    Uday

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 11, 2012 at 12:46 PM

    I use EJBs to import my model here is a screeshot of my setting.

    http://imageshack.us/f/404/1101f.png/

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 11, 2012 at 02:09 PM

    I tried any combination for the cardinality but it didnt work...

    This is the Development Kit Tutorial for importing EJBs. I did all the steps as they say it in the tutorial.

    I had the same problem in a previous project so i thought i try the tutorial to see what i did wrong before. But i have the same problems... its driving me crazy....

    Add comment
    10|10000 characters needed characters exceeded

    • Dear,

      Create the attribute directly in the context root node and try to bind with input UI Element. If it works then it might be problem with your EJB model node.

      Best Regards

      Arun Jaiswal

  • avatar image
    Former Member
    Jan 11, 2012 at 03:57 PM

    Ok if i create my own attributes it works.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 11, 2012 at 04:08 PM

    So what can i do now ?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 11, 2012 at 04:52 PM

    Could it be that something is wrong in my controller.... maybe i forgot to implement a necessary method??

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 11, 2012 at 05:48 PM

    Ok, that means i bind the controller to the model but from the view to the controller i create my own node with attributes?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 11, 2012 at 09:40 PM

    I had to change it to

    wdContext.nodeRequest_CitiesLocal_findMatchingCities().bind(new Request_CitiesLocal_findMatchingCities(myModel));

    and

    import com.sap.test.citywd.wd.models.citymodel.Request_CitiesLocal_findMatchingCities;

    ??

    Add comment
    10|10000 characters needed characters exceeded