on 12-09-2009 2:09 PM
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
Found a solution,
Best regards,
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.