passing datasource record from form to menuitem class in ax 2012

Hi All,

I want to pass the current record from from to its menuitem button action class. How this can be achieved. Please suggest an answer in ax 2012

Thanks in advance,

Gopinath

Parents
No Data
Reply
  • void clicked()
    {
        ImportExcel _import=new ImportExcel();
       ;
       _import.importExcel(ItemPriceSimulated.VersionId);
       info('Imported Completed. Check log file for error');
    }
    

    Declare your class and pass the field value to ur class method as args like above and in class get the arguments

    void importExcel(CostingVersionId _ver)
    {
    CostingVersionId _version       =   _ver;

    }

Children
No Data
Related
Recommended