My initial form is a datasheet with a list of invoices which was filtered on open to include only invoices pertaining to a specific project. Clicking on an invoice opens the invoice detailed input form where data can be edited in dialog. Clicking on the "new/blank" line opens the invoice detailed input form for adding data in dialog.
After adding a new invoice in the detailed input form, I save and close that which takes me back to the datasheet parent form I initially clicked on. I cannot for the life of me figure out how to have that form re-apply the filter so that the new invoice just created shows up in the list of invoices. If I manually unclick and re-click the filter icon at the bottom, it will appear, but I can't get the form to do this automatically. I've tried "on focus", "on activate", and several other events to try and get this to happen, but for some reason closing out the detailed form (which I thought automatically returned focus to the datasheet form) does not trigger an event.
The only way I have been able to make this somewhat work is by having the datasheet form close out when focus shifts to the new form, then reopen the datasheet form when I close the detailed input form, which of course re-filters the data to now include the new info. This however seems excessive; there has to be a cleaner way to simply re-filter the datasheet form by simply closing out the input form...right? Thanks in advance.