Skip to Content
0
Oct 06, 2016 at 09:03 AM

Setting dynamic context with actions

28 Views

Hey experts,

I have created a new WDJ application running on a SAP EP 7.4. Since our customer has quite special requirements on this one, I needed to use dynamic context and view creation, approx like this:

IWDTable rfcTable = (IWDTable) view.createElement (IWDTable.class, new String ("rfcTableIdentifierFor" + destinationName)); rfcTable = formatTable(rfcTable); //dynamic context creation IWDNodeInfo nodeInfo = wdContext.getNodeInfo().addChild("RFCDynamicFor" + destinationName, null, false, CMICardinality.MANY, CMICardinality.MANY, false, null); //Dynamically add attributes to the context node nodeInfo.addAttribute("system", "com.sap.dictionary.string"); //System .........

nodeInfo.addAttribute("firstVisible", "com.sap.dictionary.integer"); //first visible nodeInfo.addAttribute("popinKey", "com.sap.dictionary.string"); //popin key nodeInfo.addAttribute("popinStatus", "com.sap.dictionary.boolean"); //popin status nodeInfo.addAttribute("iconSource", "com.sap.dictionary.string"); //popin icon image source

rfcTable.bindDataSource("RFCDynamicFor" + destinationName); rfcTable.bindFirstVisibleRow("RFCDynamicFor" + destinationName + ".firstVisible");

Im also creating some columns with binded content on my dynamic context, this all works well so far. In fact Im following Dynamic UI Generation - Web Dynpro Java - SCN Wiki on this task

So here comes the problem: my dynamic table has also a popin column: