HI,
Recently i face scenario like create enum through code.
Scenario like when i click create button what ever i gave value that Create new ENUM should create in AOT.
For That
void clicked()
{
TreeNode node;
TreeNode dynamicEnum = TreeNode::findNode("\\Data Dictionary\\Base Enums");
;
dynamicEnum.AOTdelete();
node = TreeNode::findNode("\\Data Dictionary\\Base Enums");
dynamicEnum = node.AOTadd(NewEnum.text());
dynamicEnum.AOTadd("Submitted");
dynamicEnum.AOTadd("Canceled");
dynamicEnum.AOTadd("Completed");
dynamicEnum.AOTadd("Denied");
dynamicEnum.AOTadd("ChangeRequested");
dynamicEnum.AOTadd("Returned");
dynamicEnum.AOTadd("Approved");
dynamicEnum.AOTsave();
dynamicEnum.AOTcompile();
info("Enum created");
}
Subscribe to:
Post Comments (Atom)
Create number sequence in D365 FO
Create the data type. Add code in the loadModule method of the appropriate NumberSeqModule subclass. Add a method to the module’s paramet...
-
Dialogbutton dialogButtonConfirm; ; dialogButtonConfirm = Box::yesNo("continue ", dialogButton::Yes, ...
-
Just use the below code to remove the special character from the string. strRem('String','*'); You can replace * with...
-
This code in the lookup() method. The same code can be written in three places to achieve the lookup. 1) Under AOT->Table->Metho...
4 comments:
Hi,
A small clarification. When we can directly create the enum in the AOT why to create n no enums through code by clicking a button.
When is it used. What is the scenario. How can tis code be helpful
Thanks for the response :-)
Regards,
Yes Nithya,
Scenario means have you work on wizards...check workflow wizards that time we have to write code in wizards that time it is very useful...
Sooper Cool.. Thanks
excellent brother
Post a Comment