Passing the parameter from form to class in Dynamic AX

      1. Create class. classForm2Class { } 2. Create  a method to that class voidnew(PurchID purchid) { ; info(purchid); } 3.  Create a form with name Form2Class, datasource as purchTable and grid & button in design. 4. On the clicked method of that button voidclicked() {    // PurchTable      purchTable; PurchID purchId; Args args=new Args(); Form2Class      […]

String Function in Dynamics AX

1 – str2Capital () : Convert first character in to Capitalstatic void Jobtest(Args _args)        {            str source,desti;            ;            source  = ‘dynamics ax’;            desti   = str2Capital(source);            info(strfmt(“%1 : %2”,source,desti));        }    Using str2CapitalWord() method convert the first character of the first word in Sentence to Capital. 2- str2Con () : Concatenate the word or sentence from specified […]

Passing the container value between the forms in Dynamic AX

Over ride as init() method in FormB public voidinit() {     str             anyStringValueFromCaller;     container       contain;     ;     super();     // Check for passed arguments     if( element.args() )     {         // get string parameter         //anyStringValueFromCaller =         contain = str2con(element.args().parm());         Sex.text(conPeek(contain,1));         MaritalStatus.text(conPeek(contain,2));                anyStringValueFromCaller = conPeek(contain,3);         AccountNum.text(anyStringValueFromCaller);     […]