If we need to give a condition to check for calling menu item in form we can use below code.
if(element.args().menuItemName() == menuitemDisplayStr(<MenuItemName>))
{
//Logic
}
Thursday, May 21, 2015
Generate new number sequence from number sequence code
Below process is to create a new number sequence and increment and use in x++ code.
1. Create a new number sequence in Organization administration ->Common->NumberSequence->Number sequence
2. use below code to generate a new number sequence.
NumberSeq num;
num = NumberSeq::newGetNumFromCode(<NumberSequenceCode>);
num.used();
info(num.num());
Subscribe to:
Posts (Atom)