Hi,
Im getting NullPointer Exception at the time of binding datasource to node. I am sending code
IWDTabStrip tabstrip = (IWDTabStrip)view1.createElement(IWDTabStrip.class,"TabStrip");
IWDTab tab = (IWDTab) view1 .createElement(IWDTab.class, "tab");
IWDCaption headerCaption = (IWDCaption)view1.createElement(IWDCaption.class, "HeaderCaption");
headerCaption.setText("Edit");
tab.setHeader(headerCaption);
tab.setVisible(true);
tabstrip.addTab(tab);
IWDTransparentContainer root = (IWDTransparentContainer)view.getRootElement();
//IWDNodeInfo nodeInfo = wdContext.getNodeInfo().getChild("tableNode");
IWDNodeInfo nodeInfo = wdContext.nodeTableNode().getNodeInfo();
IWDTable table = (IWDTable)view.getElement("TD");
table.bindDataSource(nodeInfo);
table.setVisible(WDVisibility.VISIBLE);
root.addChild(table);
tab.setContent(root);
root.addChild(tabstrip);
Im getting exception in line table.bindDataSource(nodeInfo)
Plz help me asap.
Thanks
Shirisha