Friday, December 19, 2008

setTableProperty

static void setTableProperty(Args _args)
{
/*
    Author     :       Harish Mohanbabu
    Date       :       April 16, 2007
    Purpose    :       To obtain table properties
*/

    str                Property;
    TreeNode    TreeNode;
    str               Name;
    ;

    Name = "CustTable";
    TreeNode  = TreeNode::findNode("Data Dictionary\\Tables\\" /*+ Table*/);
    if (TreeNode)
            {
           ttsbegin;
           Property       = TreeNode.AOTgetProperties();
           Property       = SetProperty(Property, "ModifiedDate", "Yes");
           TreeNode.AOTsetProperties(Property);
           TreeNode.AOTcompile();
           TreeNode.AOTsave();
        }
}

No comments:

How to identify the user that was used to change an object from AOT in AX2012

Get the object name for which we need to track these (user and date&time) information's. Login to SQL Server Management Studio an...