Skip to Content
0
Former Member
Feb 18, 2009 at 08:28 PM

help with output in a WebDynpro CO...

23 Views

hi all,

I have the following problem, I suppose that follows output of a CO

- *Structure1*

-- Attribute1

-- Attribute2

-- SubStructure1

--- Attribute3

...

Structure1 corresponds to a table with 3 rows. The SubStructure corresponds to a DropDownbyIndex this within the table.

I try this

IGPStructure output = executionContext.getOutputStructure();

IGPStructure Structure1 = output.addStructure("Structure1");
           
 Structure1.setAttributeValue("Attribute1", 
   wdContext.currentContextElement().getAttribute1());

 Structure1.setAttributeValue("Attribute2", 
   wdContext.currentContextElement().getAttribute2());

IGPStructure SubStructure1 = Structure1.addStructure("SubStructure1");

 SubStructure1 .setAttributeValue("Attribute3", 
   wdContext.currentContextElement().getAttribute3());
...

but only showed me the last row, What can I do?

thanks