Skip to main content
Nintex Community Menu Bar

Remove all list items added in an editable list view using k2 Rule

  • October 30, 2015
  • 6 replies
  • 418 views
  • Translate

Forum|alt.badge.img+1

I have a list view and i want to remove all the rows displayed in list view in some event. I have found a rule "remove all the selected rows in editanle list view".But, using this rule we dont find any rule to select all the rows  in list view. Using Clear method on the view, the data cleared from list view still being added in database.

 

So , please help me on this.

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

6 replies

Forum|alt.badge.img+8

Hello , 

I think ur problem will be solved if u go to the rule where u use  "remove all the selected rows in editanle list view" , Before that rule u need to add "for each loop" 

u can find it on "Conditions" tab , search for it there and use it before ur rule .

to be speicific again , its on Conditions tab , and editablelist functionality , For each loop , For all items , 

so it will loop all over ur list , and record by record and remove them using ur rule  "remove all the selected rows in editanle list view"

 

best regards

Translate

Forum|alt.badge.img+1

I have used for each loop  for all rows and then added the rule "Remove all the selected rows in editable list view" but this rules do not work for me. The rule needs the rows to be selected by user. Only after that the rows will be removed.

Translate

Albarghouthy
Forum|alt.badge.img+16

Hi,

 

If your records are saved in DB, please make your rule like this:

 

for All rows

       Execute Smartobject Method(Here you execute the delete method and pass the smartobject parameter "ID")

 

Execute list refresh method(make sure to execute this after the loop terminates so it doesn't refresh the list on each iterate)

 

 

wish this helps

Translate

  • Novice
  • 3 replies
  • July 5, 2019

Hi,

 

I know this is an old query however I have exactly the same issue.  Unless an item is actually selected by the user then the Remove Selected Row from the Editable List doesnt remove the item (and this will not do all items).  I do not want to use the smartobject option in case the user cancels the updates in which case the data should not be changed in the DB.

 

I can loop through all the rows but i see no way to select the row in order to apply the remove selected row function.

 

Did you manage to get anywhere with this?

 

thanks

Translate

  • 1 reply
  • March 31, 2020

I know this is an old topic but there seems to be a need for a different answer.

 

My prefered method is to use View method Clear on the list view in question. That simply clears all the rows in selected list view.

 

Rules -> Actions -> SmartObjectInteractions -> Execute a view method.

 

Hope this helps

Translate

  • 6 replies
  • April 6, 2020
Thank you!! This worked perfectly.
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