Skip to Content

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

error while creating input field dynamically

Hi,

I am trying to create and input field using the following code

for (int j=0;j<qForm.getNoOfChoices();j++)

{

IWDInputField text1 =

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

text1.setValue("input");

wdContext.getNodeInfo().addAttribute("input"ij,"ddic:com.sap.dictionary.string");

//text.bindEnabled("input"ij);

rootContainer.addChild(text1);

}

and i am getting the following error

<b>com.sap.tc.webdynpro.progmodel.context.ContextException: Path null does not point to an attribute, but to com.sap.tc.webdynpro.progmodel.generation.DelegatingView@b94ed5</b>

can somebody help me in solving this issue

Former Member
Former Member replied

Replace "text.setValue(...)" by "text.bindValue(<path to context attribute>);

Armin

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question