Page 1 of 1

AJAX Refresh with Preview Extension and Modals

Posted: Tue Oct 03, 2023 11:14 pm
by bkonia

Preview Tables

The Preview extension in v2024 supports AJAX refresh of just the preview page, without reloading the main page. This is a great improvement! However, we sometimes need to refresh the data table section on the main page due to changes in the detail table that affect fields in the main table; calculated fields for instance. Therefore, I propose the following solution:

Add a new checkbox column called "RefreshParentTable" to the Tables grid in the Preview extension. Enabling this setting for a table would trigger an AJAX refresh on the parent table when the Preview table is updated. In the case of a nested table, it would refresh just the parent of the nested table. If the parent of the nested table also has the setting enabled, the refresh would then roll up to its parent, etc...

Modals

Modals seem to follow the same behavior, performing updates without refreshing the main page. Again, this is a great improvement. However, with modals, a main table refresh is even more important, because changed fields may also appear in the main page list view. Thus, after updating a modal, it should ALWAYS perform an AJAX refresh on the corresponding row in the main table list view.


Re: AJAX Refresh with Preview Extension and Modals

Posted: Wed Oct 04, 2023 9:30 am
by mobhar

Good suggestions!

+1


Re: AJAX Refresh with Preview Extension and Modals

Posted: Thu Oct 05, 2023 5:35 pm
by arbei

For the case of modal Add/Edit, the main table will refresh. However, for modal Add, the new record may not appear in the current page due to current sorting and searching.