Показать сообщение отдельно
Старый 19.12.2012, 11:39   #4  
Отшельник is offline
Отшельник
Участник
 
38 / 11 (1) +
Регистрация: 15.06.2011
Может кому пригодится:
X++:
static void TableMenuItemsSecurityKeyNull(Args _args)
{
    #aot
    #properties
    #define.info('SecurityKey не установлен в ')

    TreeNode        tnTable         =   TreeNode::findNode(#TablesPath);            
    str             tableName, miName;
    str             securityKeyProperty;
;

    info (strfmt('%1',#info+#TablesPath));

    tnTable     =   tnTable.AOTfirstChild();

    while (tnTable)
    {
        tableName           =   findProperty(tnTable.AOTgetProperties(), #PropertyName);          

        securityKeyProperty =   findProperty(tnTable.AOTgetProperties(),  #PropertySecuritykey); 

        if (securityKeyProperty =='')
        {
                info (strfmt('%1 ', tableName));
        }
        tnTable     =   tnTable.AOTnextSibling();
    }

     info (strfmt('%1',#info+#MenuItemsDisplayPath));
}
__________________
Dynamics AX 2009 SP1, Rollup 5, SQL Server 2008
Хороший ученик во всем найдет себе учителя...