Skip to Content
0
Former Member
Jul 02, 2009 at 05:48 AM

Multiple records should display

47 Views

HI,

I have 2 structures in RFC.There is one common column by name"ID " for comparing data between 2 strutures.In fist strucutre

ID column i have uniques ids but in second structureID column i have muitiple ids with same id .

(Ex: fist strucute ID:1 && second Struture ID:1,1)

When i am comparing these two structures i am getting only one record from second strucutres but i have 2 same ids in second strucutre.I need to populate 2 records in a table.

Structure s1, s2

Table node tablenode

for( loop s1){

IPrivateXXXXview.itablenode nodeElement = wdContext.createTablenodeElement();

wdContext.node.addElement(nodeElement);

nodeElement.setAtr1(s1.getattr1());

nodeElement.setAtr2(s1.getattr2());

...

..

nodeElement.setAtr6(s1.getattr6());

for(loop s2){

if(s1.id == s2.id){

nodeElement.setAtr3(s2.getattr1());

nodeElement.setAtr4(s2.getattr2());

...

..

nodeElement.setAtr6(s2.getattr6());

}

}

}

Regards,

Prasad