cancel
Showing results for 
Search instead for 
Did you mean: 

Table ,Form will be in readonly mode

Former Member
0 Kudos

Hi

I created an applicationin web dynpro. iam trying to connect to the database(SAP).

In That i created table and Form using "Apply Template".

But in the output while i was clicking "Show Business Data " it will be in the non-editable mode nd not takuing the data from the database.

Please help me .

I followed this document

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60e96a26-cc15-2a10-119b-d5ac646d...

regards

Sushma

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

i mapped the context properly

Former Member
0 Kudos
Former Member
0 Kudos

Hi,

I think u must have chosen Table column editor as TextView.

When u use "Apply Template", change editor column of the slelected fields to Input Field, then u will get it in editable mode.

Regards

Shruti

Former Member
0 Kudos

Exactly i had taken this in "Text View " before. Then after i changed to the "Input Field".

Still it will be like that only.

Here iam trying to access the data from the SAP database.

Once i will click the "Show Business Data " button it has to show table and Form in the nextView.

In that it has to take the backend data.once i will click on that particular row, it has to show information regarding that, in that "Form".

Former Member
0 Kudos

hi

create a instance for the Model Class which you have bind to the form or table .

in the init() method;

or other thing you can do is create a value node and copy the data from the model nodel to

the value node

Former Member
0 Kudos

Hi,

You have to initialise your table node.

like



IPrivate<yourview>View.I<your table node>Node  value =  wdContext.node<your table node>();
wdContext.node<your table node>().addElement(value);

Thanks

Abhilasha

Edited by: Abhilasha Dahare on Apr 27, 2009 11:43 AM

Former Member
0 Kudos

where i have to add the code.

In the Component Controller.or in View where I HAVE TO GIVE THIS CODE.

i send u one link right.

Is that correct one ....Please provide the screen shots of that if u tried it before.

Former Member
0 Kudos

Hi,

you have to write the code in wdDoinit() in view.



public void wdDoInit()
  {
    //@@begin wdDoInit()

  IPrivateAssi3View.ITableElement tab= wdContext.createTableElement();
wdContext.nodeTable().addElement(tab);
}

//@@end

Edited by: Abhilasha Dahare on Apr 27, 2009 12:14 PM