Skip to main content

I have an XML Data Field in my process.  I have a K2DataGrid in my form.  I populated the grid successfully using the results of a database query.  However, I can't seem to bind it to my K2 XML Data Field appropriately.  I set the data field equal to the XML field.  I am not sure about the XPath.  I've tried various options.  My XML field is called Project and it contains lots of columns.  The data grid contains the same columns.  I want all of them (not just one particular column) to be bound to the XML.


Can anyone give me suggestions?  I'd appreciate it.

I think this is best explained with an example.


If I have an Xml Data Field called "People" that contains the following schema:


<Root>
   <People>
      <Person>
         <FirstName>John</FirstName>
         <LastName>Doe</LastName>
      </Person>
      <Person>
         <FirstName>Jane</FirstName>
         <LastName>Smith</LastName>
      </Person>
   </People>
</Root>


And I want to display all people in the K2 datagrid, I think the Datagrid needs ot be configured as follows:


         Data Field:  People
         DataXPath: drill down to the Person element of the XML structure


Reply