cancel
Showing results for 
Search instead for 
Did you mean: 

element addition to context node at runtime.

Former Member
0 Kudos

Hi all,

I have a class array object in which all data comes at runtime.

I created a node in context.

i have to add the element to node. i ahve used that node as a datasource to table UI.

EmpWrapper e[] = null;

e = tmp1.Get(wdContext.currentContextElement().getDIVISION());

// i am getting all data in e[]

if (e.length != 0)

{

for (int i=0;i<= e.length;i++){

//how to add the e data to node EMP in context

}

}

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

for (int i=0;i<= e.length;i++){

EmpWrapper wrapper=(EmpWrapper )e.get(i);

//Create element of node EMP

//get the value from wrapper.getXXX() and set the value to the element

//add the element to the node

}

Regards, Anilkumar

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Shefali,

Here is the link to create dynamic context nodes and its attributes.

https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/b3f6e990-0201-0010-c087-c865f2c738b3

Regards,

Abhimanyu L

Former Member
0 Kudos

Your code looks somewhat strange to me. Can you please describe more exactly

- in what datastructure you get the data

- how your context structure looks like

Armin