Repeating Tables - Nintex Task Forms

  • 31 March 2015
  • 5 replies
  • 0 views

Badge +1

A common requirement in our forms development is to add rows to a repeating section on the task form as required.

 

Example:

Building up a history of actors and the actions they have taken as the process moves from stage to stage (see screenshot).

 

I am trying to figure out if it is possible to add rows via Nintex Workflow using XML (or any other way) to a Nintex Form.

 

Using the screenshot below, the Nintex Workflow would collect the required information after the form has been submitted and then write this information to the Nintex Form.

 

repeatingtable_historytable.png


5 replies

Userlevel 7
Badge +17

I know the context variable of All Approver Comments will have some of this information, but not Decision.

Badge +1

Andrew,

Thanks for the response. The issue is actually not accessing the information on submission of the form, but being able to write it back to the form so that the next player can view it. In this case it would have to be within a repeating section and there seems to be no way to dynamically add a row to an existing repeating table and add the new info.

Userlevel 7
Badge +17

Correct, you would not be able to fill out differing information from a list into a repeating section. But if you can get the data into a variable or list item field, then you could display it.

Badge +1

Seems like that may be the best solution based on the current design of Nintex Forms/Workflow.

Badge +4

Hi Esan,

Repeating form sections are stored as XML.

Within your form you can connect the repeating section to a named SharePoint column.  Having the XML within a SharePoint column then provides easy access within workflows, datasheet views, webservices, etc.

Example repeating section XML:

<?xml version="1.0" encoding="utf-8"?>

<RepeaterData>

    <Version />

    <Items>

        <Item>

            <nf-form-input_x0020_nf-section type="System.String">1</nf-form-input_x0020_nf-section>

            <DateofExpense type="System.DateTime">03/18/2015 00:00:00</DateofExpense>

            <Description type="System.String">Blah</Description>

            <LocationCode type="System.String">AA4</LocationCode>

            <AccountCode type="System.String">S221</AccountCode>

        </Item>

    </Items>

</RepeaterData>

As you can see this repeating section XML isn't overly complicated.

Hope this helps.

Reply