HistoricalAX 2012
AX 2012: turn off the Synchronize database form
A job that sets the SysSqlSync global cache flag so AX 2012 synchronizes without showing the Synchronize database form.
Specific to database synchronization in the AX 2009/2012 client.
- First written
- Re-read
- Versions
- AX 2012
In AX 2012 the Synchronize database form can pop up in the middle of a script and wait for the user. A global cache flag turns it off.
The original note
The Synchronize database form may show up unexpectedly during some of your scripts. You can turn it on or off from code with the ShowSysSqlSync setting of the SysSqlSync global cache. This job turns off the form and synchronizes automatically:
static void ShowSysSqlSync(Args _args)
{
SysGlobalCache gc;
str owner = 'SysSqlSync';
str key = 'ShowSysSqlSync';
boolean showEnabled = false; //set to true to enable.
;
gc = appl.globalCache();
gc.set(owner, key, showEnabled);
info(strfmt('Show SqlSync: %1', gc.get(owner, key)));
}
More information was in the MSDN post on synchronization enhancements in Dynamics AX 2009 (linked below).
References
- Synchronization enhancements in Dynamics AX 2009 (original link, MSDN blogs)