Skip to main content
Nintex Community Menu Bar
Question

Is there a way to refresh a single row in a model?

  • July 11, 2024
  • 5 replies
  • 1 view
  • Translate

Forum|alt.badge.img+2

Hello!!

This could be a paradigm problem, so let me know if that is the case.
We have created a page that our user works through a list of records (table) that need action taken on them. Each row on the list has a drawer with action buttons and more information. We have a few buttons that call a flow immediately, and we have a few popups that make changes to main table’s model.

Our user enjoys seeing what they changed upon save. However, when we use a button that calls a flow or a popup where changes are saved in the popup, the changes are not visible until we refresh the underlying model or the table, but that causes the user to lose their place on the page, and sometimes lose the record from the table if it has changed enough to be excluded from the table filter.

Is there a way to force a refresh on just one row in a model? I was also starting to think, maybe there is a better way to display this kind of task.

Thanks!

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

5 replies

Forum|alt.badge.img+17
  • Nintex Employee
  • 3763 replies
  • July 12, 2024

This is a really interesting challenge. By default the re-query action affects the whole model. And yes - that typically resets pagination, sort orders, etc. Disconcerting. Especially if data has changed in other ways and expected rows are no longer there…

There are sketchy solutions running around my head - but they all end up being really complex. Something like: Your flows and secondary actions could trigger refresh of a second model on the same object. And then once that model is requeried - you’d update the particular table row with the new data using the update row action. The tricky part would be accurately determiing what row in the original model to update. That might take some interesting events, code or trickery.

Alternately - the updates could just increase a UI counter - which showed the user the number of updated records they had saved - or how badly out of synch thier current model view was with the database. And give them the option to refresh the whole view. That way they know changes have been made, but control when it affects thier whole view.

Let us know what you come up with.

Translate

Forum|alt.badge.img+11
  • 337 replies
  • July 12, 2024

Hey @nkovash were you able to find a solution/fix for your users to be able to show the on click save?

Translate

Forum|alt.badge.img+2
  • Author
  • 9 replies
  • July 12, 2024

@Germany3 Not quite yet. We are still iterating on what we want the UI to be, but in the short term we’ve settled for using a sliding panel with a page include with the details for the row. That way we can save the single row and refresh without affecting the master table. We still don’t have the changes instantly show up on the table though.

Instead, we added a UI-Only field to the master table that we mark true when the sliding panel has been activated. We use that field value to render some of the text differently on the master table (changing the color and making it italics) to indicate the row has been looked at or worked on, but the actual changes are not present.

I think Rob’s idea above of running two models side by side could work, but I haven’t tried to implement it yet.

Translate

Forum|alt.badge.img+11
  • 337 replies
  • July 12, 2024

Thanks for sharing that @nkovash and let us know how it goes when you begin implementing the solution. If you need any additional help, please feel free to reach out!

Translate

Forum|alt.badge.img+2
  • Author
  • 9 replies
  • July 12, 2024

Thank you, I appreciate that!

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