cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Rows

Former Member
0 Kudos

Hi ,

I have a requirement where I have multiple rows in Value node.

I need to send all the rows from the Value node to the Model node.

Say if I have 3 records I need to send all the records to the Model Node.

<b>Rightnow I am able to send only the last record to the Model Node as many times as the number of records in the Value node.</b>

Can someone tell me how we can do that?

Please help.

Points assured.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello

I hope this helps you

//binding the input

Zabc_Input input = new Zabc_Input();

for(int i = 0; i < wdContext.nodeCtx_vn_ABC().size();i++)

{

//Zpbook is the table parameter

Zpbook node = new Zpbook();

node.setD_Id(wdContext.currentCtx_vn_ABCElement().getObjid());

input.addIt_Create(node);

}

wdContext.nodeZabc_Input().bind(input);

Former Member
0 Kudos

I am doing eaxctly the same Vindhya.

But I need the last record is going into the R/3 system.

   	for (int i=0;i<wdContext.<ValueNode>.size();i++)
   	{
		IPrivate<ViewName>.<ModalEle>Element elem = wdContext.create<ModalEle>Element(Tb_Fin);
		Tb_Fin.setAttr(wdContext.node<ValueNode>).<ValueNode>ElementAt(i).getAttr());	
	wdContext.node<ModalNode>().bind(input);
	}

Sneha Singh

Former Member
0 Kudos

Hi Sneha,

You need to add your elem to your input element

for (int i=0;i<wdContext.><ValueNode>.size();i++)

{

IPrivate<ViewName>.<ModalEle>Element elem = wdContext.create<ModalEle>Element(Tb_Fin);

Tb_Fin.setAttr(wdContext.node<ValueNode>).<ValueNode>ElementAt(i).getAttr());

<b>input.add<Element>(elem); </b>

wdContext.node<ModalNode>().bind(input);

}

Regards,

Murtuza

Answers (0)