Skip to Content
Former Member
Oct 02, 2008 at 04:25 PM

Generating Dynamic form from static context.


Hi All

I have static context node structure

Section (Node)

QuestionText (Attribute)

AnsText (Attribute)

I have populated the values in this node from an RFC in my code .

Now i need to create a form dynamically with QuestionText as labels and AnsText as input fields.

I have written the following code

for(int i = 0; i< wdContext.nodeSection().getSize; i++)


IWDInputField inp_Ans = (IWDInputField)view.createElement(IWDInputField.class,"ID"+i);

IWDAttributeInfo ansAtrib = wdContext.nodeSection().getNodeInfo().getAttribute("AnsText");



This way i have bound a single attribute to all inputfields.

So the value in the first element of AnsText appears in all inputfields.

In case of tables it works fine but i need to create the form.

Kindly help me in solving the issue.