static void Esh_Test(Args _args)
{
str myProp,myProp1;
#AOT
NumberSequenceList numberSequenceList; //Table Name
TreeNode numSeqFldsRoot = treeNode::findNode(@"\Data Dictionary\Tables\NumberSequenceList\Fields\Status"); //Field Path
TreeNode numSeqFldsRoot1 = treeNode::findNode(@"\Data Dictionary\Tables\NumberSequenceList\Fields\TransId"); //Field Path
TreeNode table = treeNode::findNode(@"\Data Dictionary\Tables\NumberSequenceList"); //Table Path
;
numSeqFldsRoot.AOTsetProperties("PROPERTIES\n AllowEdit #" + 'No' + "\n ENDPROPERTIES\n"); // We use AOTsetProperties method to set or manipulate the field properties.
numSeqFldsRoot1.AOTsetProperties("PROPERTIES\n AllowEdit #" + 'No' + "\n ENDPROPERTIES\n");
myProp = numSeqFldsRoot1.AOTgetProperties();
myProp1 = numSeqFldsRoot.AOTgetProperties();
numSeqFldsRoot.AOTsave();
numSeqFldsRoot1.AOTsave();
table.AOTsave(); // Saving the table.
info(myProp);
info(myProp1);
}
{
str myProp,myProp1;
#AOT
NumberSequenceList numberSequenceList; //Table Name
TreeNode numSeqFldsRoot = treeNode::findNode(@"\Data Dictionary\Tables\NumberSequenceList\Fields\Status"); //Field Path
TreeNode numSeqFldsRoot1 = treeNode::findNode(@"\Data Dictionary\Tables\NumberSequenceList\Fields\TransId"); //Field Path
TreeNode table = treeNode::findNode(@"\Data Dictionary\Tables\NumberSequenceList"); //Table Path
;
numSeqFldsRoot.AOTsetProperties("PROPERTIES\n AllowEdit #" + 'No' + "\n ENDPROPERTIES\n"); // We use AOTsetProperties method to set or manipulate the field properties.
numSeqFldsRoot1.AOTsetProperties("PROPERTIES\n AllowEdit #" + 'No' + "\n ENDPROPERTIES\n");
myProp = numSeqFldsRoot1.AOTgetProperties();
myProp1 = numSeqFldsRoot.AOTgetProperties();
numSeqFldsRoot.AOTsave();
numSeqFldsRoot1.AOTsave();
table.AOTsave(); // Saving the table.
info(myProp);
info(myProp1);
}
No comments:
Post a Comment