Sunday, May 28, 2017

Set configuration key run time based on user login

//Set configuration key run time based on user login

ConfigurationKeySet configurationKeySet;
if (!isConfigurationkeyEnabled(configurationKeyNum("")))
{
configurationKeySet = new ConfigurationKeySet();
configurationKeySet.loadSystemSetup();
configurationKeySet.enabled(configurationKeyNum(""), true);
SysDictConfigurationKey::save(configurationKeySet.pack());
SysSecurity::reload(true, true, false, true);
}

No comments:

Post a Comment

SQL Query combined report: Data vs Index size

 USE AxDB; GO SELECT TOP (100)     s.name AS SchemaName,     t.name AS TableName,     SUM(CASE         WHEN i.index_id IN (0,1)         THEN...