Repeating section in start form. Same repeating section in a task form with data from start form.
I have a repeating section in start form. In a Task Form, I want to display the row of data from the start form repeating section. And add an editable field for each row to get a status for each row.
How can I do that?
I understand that I can do a loop for each and get item from collection, but how can I have the data in my task form?
Page 1 / 1
hi @poirisop,
Wondering if the help page might help resolve for your use case? There is a video on the page which provides further details on how to setup editable repeating section when your start event is a Nintex Workflow form.
I followed all the steps in the video, using export/import for my task form. However, the data from my repetitive section in start form, is not displayed in my task form. The rule doesn't seem to be working.
The rule looks ok. I have attached a cut-down version of the workflow in the video.
See if that works for you. If so, you can see how it is put together and how it may differ from your current configuration.
Hi @poirisop Has your question been answered?
I have never found a way to take the rows from a Repeating Section in the Start Form and place them in the Repeating Section in a Task Form. I’m curious if anyone has been able to find that method.
Only thing I’ve been able to do is generate an HTML table, using a loop in the workflow, and display that in the Task Form.
Hi @PabloL,
Please see the posts above. It is now possible to display Repeating sections from start event forms on Task forms.
Wow, that looks helpful. So I create a rule that populates the repeating section controls using the “getCollectionItem” function.
I wish I had known this a year ago. I would have built my forms & workflows differently.
Hi @MillaZ,
Yes, my question have been answered. My workflow is working now.
It was my “count” formula in the Default number of rows that was not okay.
Thank you very much @SimonMuntz
@SimonMuntz ,
This is nice but I want it to work for data lookup dropdowns in the Repeating Section. It seems to work for Short Text controls, but not data lookups. Any suggestions?
I have another issue. It only displays the 1st row. I tried to copy your example, which was working, and I set the rules so that if the control on the repeating section is blank, then fill it with that formula. But it only fills the first row. I can then click “Add new row” and the new row appears & values are there, but it won’t display it automatically. Here are some screenshots. Any suggestions?
formula is:
getCollectionItem(eWorkflow].nStart event variables].eForm variables].[Repeating section Other Persons].nName of Other Person Involved],PForm].IRepeating section Other Persons].nCurrent row].sRow number]-1)
Wait, I found the missing piece.
In the Repeating section, I had to fill the Default number of rows, to this formula:
It is working now. The only remaining problem is that it cannot fill in the value of a data lookup control.
@SimonMuntz : is it possible to inactivate the “Add new row” and “Delete” button in the editable repeating section used in a task? I would like my task assignee to only be able to update some fields in the repeating section, but not adding, nor deleting a row.
Hi @poirisop,
You can add some CSS to the form to disable the add row and the bin icons.
Navigate to the Styles tab of the form.
Scroll to the bottom of the styles panel and under the Advanced Styles section toggle enabled.
Click the edit css button and add the below code.
The main thing you need is pointer-events:none. The rest is to make the button look disabled so you can style it to your liking.
I have another question: I have a repeating section within another repeating section. Can I disable the buttons just for one repeating section, but not for the other? I’m not familiar with CSS code. I would like my user to be able to add a new component, but not a new part.
Also, I have problems with the count and getCollectionItem formulas for the repeating section (Missing Components) inside the repeating section (Products)
COUNT:
I tried this formula, but it is returning me the number of rows of my Products section, not the number of row of my Missing components section
count(/Workflow].(Assign a task to DC Control Sheet].tAssign a task to multiple users].iFirst response].tForm variables]. Products]..Missing Components].CComponent Part Number])
and for the getCollectionItem formula, I tried many formulas, but i am not able to figure it out
Hi @poirisop
The following code will disable the parent repeating section but enable the nested repeating section. Please test it before putting it into production. I am unsure if nested repeating sections are supported at this stage to be populated. This may be supported shortly. If the feature eventuates, this process will be much simpler, but you will need to reconfigure your existing repeating sections. Stay Tuned.
I have a repeating section within another repeating section.
I have problems with the count and getCollectionItem formulas for the repeating section (Missing Components) inside the repeating section (Products)
COUNT:
I tried this formula, but it is returning me the number of rows of my Products section, not the number of row of my Missing components section
count(cWorkflow].fAssign a task to DC Control Sheet].hAssign a task to multiple users].sFirst response].oForm variables].bProducts].uMissing Components].eComponent Part Number])
and for the getCollectionItem formula, I tried many formulas, but i am not able to figure it out
Hi @poirisop,
At this point, nested repeating sections are not supported. Nintex is currently adding additional functionality to the Repeating section control, so it should be available soon.