Skip to main content
Nintex Community Menu Bar
Question

How can you DELETE ALL records in a model using the action frame work?

  • July 10, 2024
  • 2 replies
  • 2 views
  • Translate

Forum|alt.badge.img+10

Hello,
I would like to DELETE ALL records in a model with a click of a button using the action framework.  My records do not appear in a table. Is this possible?  I physically want to send them to the recycle bin. Thank you!

Did this topic help you find an answer to your question?
This topic has been closed for comments

2 replies

Forum|alt.badge.img+17

I don’t write JavaScript because I’m lazy, but I think this could probably be accomplished pretty easily with a JavaScript snippet triggered by the action frame work. You would need a line that selects all rows in the model, a line that marks them for deletion, and a line that saves the model. The following tutorial may help. Page Not Found — Skuid v15.1.6 Documentation

Translate

Forum|alt.badge.img+10
  • Author
  • 189 replies
  • July 10, 2024

Okay, or those with this same question in the future here is what I did. . . With click no code.

  1.  Added a Delete records button that opened a pop up
  2. The pop up says “Are you sure you want to delete all the records?”
  3. Underneath the question I have a table that shows all the rows in that model. 
  4. Using the GLOBAL ACTIONS button on the table I have a “Run Multiple Actions” button.
  5. Since it is a Global Actions item the "Mark Row(s) for deletion marks ALL the rows for deletion
  6. I then save the model 
  7. close the pop up.  
The global Action button shows up above the table an right underneath the question so it is in the perfect spot for them to click the button that says “Yes, delete all records and start over”

No code and it acts like a "Are you Sure you want to delete all records pop up.

Translate

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