September 08, 2014

How To Opening Form From Infolog "show" Button With a Specific Record

For example we want to open SalesTable with a specific record (sales order no : SO-1409-00211)

static void AXTutor_ShowSpecRecordExample(Args _args)
{
    SalesId     salesId = "SO-1409-00211";
    SalesTable  salesTable;
    ;
    salesTable = SalesTable::find(salesId);
   
    info(strFmt("Sales order : %1, customer : %2", salesTable.SalesId, salesTable.customerName()),
         "", SysInfoAction_TableField::newBuffer(salesTable));
}

0 comments:

Post a Comment