So after about a month of staring blankly not understanding why something wasn't working I have worked out (with Vlad's invaluable assistance) how not to use AutoRefresh on a Grid when I have a Create button on the same grid.
There are some specific steps here:
Query on BO ABC
Autorefresh on New Object ABC
Create New Object button in the Query
If your BO has relationships to other BOs and you enable the creation of those child BOs at the same time as you creating the parent BO then this triggers the AutoRefresh condition.
When the AutoRefresh trips it will shut your form gracelessly (and save an incomplete BO in the DB).
The fix for this is to create the BO from a process and then use that process as the trigger for the AutoRefresh. Then limit the creation of BO to that process and not the CREATE OBJECT grid operation.
Thanks Vlad!
Auto Refresh on Grids Can upset Object Creation.
-
- Posts: 1463
- Joined: Tue Jan 24, 2017 5:51 am
- Location: 'Stralya
Re: Auto Refresh on Grids Can upset Object Creation.
Very interesting & good to know. Thanks much for sharing!
Tom - V8.8 build 3137 - MySql / PostGres