Hi,
when I open a modal window (subrecord) using the "eye" symbol next to a dropdown, I am wondering if there is a chance to have a modal window close automatically after it's record has been saved.
It seems, that when adding a new record in the details tabs using modal windows, the modal window is closed automatically.
Also, when deleting a record the modal window closes.
Suggestion
If there is currently no way to accomplish this, I want to suggest, to have a checkbox in AG (next to my red circle) which can be checked to automatically close a (modal) window / return to the previous "parent record" if the details are opened in the same window.
Olaf
closing modal window automatically?
closing modal window automatically?
Some postings I was involved, you might find useful:
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view
- D Oliveira
- AppGini Super Hero
- Posts: 348
- Joined: 2018-03-04 09:30
- Location: David
Re: closing modal window automatically?
you can use the .click() js method on the element that closes the modal an run this on the parent js in case you wanna trigger any action after modal has been closed:
Code: Select all
$j(function() {
$j(window).on('child-modal-closed', function(e, data) {
// do something
$j('form').submit(); // reload the current DV
});
});