Skip to Content

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

Null pointer in dynamic context assigment to Dynamic UI

Hi all,

i am creating a context dynamically for celldesign and date :

nodeInfo.addAttribute("Color"+contextNum,"com.sap.ide.webdynpro.uielementdefinitions.TableCellDesign");

nodeInfo.addAttribute("Date"+contextNum,"com.sap.dictionary.date");

but when i access the access the same in WdDoModify as AttributeInfo it throws Null Pointer . but i access this context before actually assigning to UI. i dont get null there

IWDAttributeInfo colorAttrInfo = wdThis.wdGetAPI().getContext().getRootNode().getChildNode("Node"siteNum, IWDNode.LEAD_SELECTION).getNodeInfo().getAttribute("Color"contextNum);

Same is with date...

can anyone please tell why this can happen.

Thanks and Regards,

Aditya

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