Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Documentation Required

Hi,

I'm trying to understand how dynamic tables should be created in WD. Where Can I get the <b>documentation/tutorial for "Developing with Tables in Web Dynpro"</b> ? The documentation available under the WebDynPro sample applications and tutorials is corrupt. Please help.

Former Member
Former Member replied

Hi

IWDTransparentContainer container = (IWDTransparentContainer)view.getElement("RootUIElementContainer");

container.destroyAllChildren();

IWDTable iTab = (IWDTable)view.createElement(IWDTable.class,null);

iTab.bindDataSource("Root");

Iterator itr1 = wdContext.getChildNode("Root",0).getNodeInfo().iterateAttributes();

while(itr1.hasNext())

{

IWDTableColumn iTabCol = (IWDTableColumn) view.createElement(IWDTableColumn.class, null);

IWDInputField input= (IWDInputField)view.createElement(IWDInputField.class,null);

IWDAttributeInfo iWDInfo = (IWDAttributeInfo) itr1.next();

input.bindValue("Root."+iWDInfo.getName());

iTabCol.setTableCellEditor(input);

IWDCaption iCap = (IWDCaption) view.createElement(IWDCaption.class, null);

iCap.setText(iWDInfo.getName());

iTabCol.setHeader(iCap);

iTab.addGroupedColumn(iTabCol);

}

container.addChild(iTab);

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#33

Regards

Ayyapparaj

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question