cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Content for a Table Popin

Former Member
0 Kudos

HI,

I have the following problem:

We have a DC which creates dynamic tables out of Context Nodes (The data comes from a Node, Properties of tables and Columns come from other nodes..). This Component is used by other Components via Interface.

A Interface View of the Table Customization DC is used to display the table.

Now the Table Customization DC should get a Popin - Feature. (http://wiki.sdn.sap.com/wiki/display/WDJava/Howtoimplement+TablePopin)

The Content of the Popin should be dynamically be added to the Table. A row table popin should be used.

I want to add the Content of the Popin as a IWDViewContainerUIElement, so that I can use Views for the content. But the views shall not be in the Table Customization DC. My idea was to pass the Content via the Context.

So in the consuming DC i used this code:


IWDUIElement content = (IWDUIElement) view.getElement("PopinViewC");
wdContext.currentRowPopinContentElement().setContent(content);  

And in the Table Customization DC I used this code:


		  IWDTablePopin pop = view.createElement(IWDTablePopin.class);
		  pop.setContent(wdContext.currentRowPopinContentElement().getContent());
		  pop.setTitleText("Hello");       				  
		  dynamicTable.setPopin(pop);

I get the exception:

java.lang.IllegalStateException: Aggregation parent of view element with id="PopinViewC" is already set.

when running this program.

I just have very basic knowledge of Dynamic view layout construction.

So my question is:

Is it even possible the way I want to solve it? That the Content comes from the DC which uses the Table Customization DC, or has the whole Content for the Popin has to be build in the Table Cust.. DC?

Thanks.

Best Regards,

Peter

Edited by: Peter Irk on Dec 9, 2009 3:15 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Found a solution,

Best regards,

Peter

Former Member
0 Kudos

what solution you implemented???

Regards,

Abhishek