Skip to main content
Nintex Community Menu Bar
Solved

K2 SmartForm - Editable List View - Add multiple record/ rows

  • October 23, 2018
  • 4 replies
  • 125 views
  • Translate

Forum|alt.badge.img+4

Hi All,

I am new in K2.

I have developed one K2 Smartform which will allow to add multiple records/ rows in to a table. for this i did followings:

1. Created one advance smartobject for the table, where data will be stored.

2. Designed an editable list view with a button (save). On click the button data will be saved to the table

 

It will be nice if you let me know what rule i should define against the button, along with others seeting (if any is required) to save records.

 

Thanks with Regards,

JD

Best answer by khanh1

Hi JD1,


 


You can also find more information on For each loop from the link below.


https://help.k2.com/onlinehelp/k2five/userguide/5.1/default.htm#How-Tos/ForEachLoopingConditions/HowToUseForEachLoopingConditions.htm


 

View original
Did this topic help you find an answer to your question?

4 replies

Forum|alt.badge.img+11
  • 658 replies
  • October 23, 2018

Under rule conditions there is a for-each operator along with list view status.  So you could have logic that looks like this:

when the save button is clicked

for each item that was added to the list view

  execute the view Create method (configure)

 

if you allow editing the list after it was saved you would add some more conditions:

for each item that was changed in the list view

   execute the list Save method (configure)

 

for each item that was deleted from the list view

  execute the list Delete method (configure)

 

Make sure in your create/save/delete methods you map to the SmartObject properties which will contain the value of the current row.

 

If this helps, please click the Kudos button.


David

Translate

Forum|alt.badge.img+16
  • 682 replies
  • Answer
  • October 23, 2018

Hi JD1,


 


You can also find more information on For each loop from the link below.


https://help.k2.com/onlinehelp/k2five/userguide/5.1/default.htm#How-Tos/ForEachLoopingConditions/HowToUseForEachLoopingConditions.htm


 

Translate

Forum|alt.badge.img+4
  • Author
  • 22 replies
  • October 25, 2018

Hi David,

 

Thanks for your reply. it's help me to resolve my issue.

 

Translate

Forum|alt.badge.img+4
  • Author
  • 22 replies
  • October 25, 2018

Hi Khanh,

 

Thanks for your reply. it's help me to resolve my issue.

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings