cancel
Showing results for 
Search instead for 
Did you mean: 

multiple inserts in a table

Former Member
0 Kudos

Hi

I have one table which is bound to the RFC.

I want to keep one of the columns from the table as an input field , and according to the entry in that i/p field corresponding

values should get displayed in the other columns on the click of submit button.

Is it possible?

Thanks

Prajakta..

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Make this attribute calculated and do the relevant code in set/get methods.

Regards

Ayyapparaj

former_member197348
Active Contributor
0 Kudos

Hi Prajakta,

It is possible. You have to loop in the table to get values. Create a value node and bind this to table.

Use this code: Say your node name is <Tablenode>

In wdDoInit()

//Create empty elements

int size= <no. of rows you want>

IPrivate<viewname>.I<Tablenode>Element = ele;

for (int i=0;i< size;i++)

{

ele = wdContext.node<Tablenode>().create<Tablenode>Element();

wdContext.node<Tablenode>().add(ele);

}

in onActionSubmit()

you can get the attribute value of input field using this

wdContext.node<Tablenode>().get<Tablenode>ElementAt(i).get<attributename>()

regards,

Siva