.... if ( (curUserId() == 'XXX') ) { TreeNode::findNode('\\Forms\\'+formStr(InventTable)).AOTrun(); } ....