Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Create a dynamic table subform based on XML data

Avatar

Level 1

Hi,

I need to create a table subform (table as subform) based on the data in XML. For eg if XML is like below

<tr>

<col1> columb 1</col1>

<col2> columb 2</col2>

<col3> columb 3</col3>

<col4> columb 4</col4>

</tr>

<tr>

<col1> columb 1</col1>

<col2> columb 2</col2>

<col3> columb 3</col3>

<col4> columb 4</col4>

</tr>

it should create 2 rows with 4 columns.

Any pointers please?


Regards,

Ravikanth

3 Replies

Avatar

Level 1

Is there any way to create a field (like textfield, dropdown etc) and append to the subform dynamically at run time?

Avatar

Level 5

Im nt sure whether you can create table with XML tags...

But you can create the table in the XDP and you can repeat the rows based on the XML data..

Avatar

Level 1

that will not solve the problem as I can have 8 to 14 fields in xml and they doest fit in one single table row. so is there a way to add fields to sub form at run time?  looking at createNode, but not successful.