Expand my Community achievements bar.

Create a dynamic table subform based on XML data

Avatar

Former Community Member

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

Former Community Member

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

Former Community Member

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.