Based on output menuitem by using "DocumentStatus" in SalesEditLines form


While selecting PackingSlip in SO Process, Need to do mandatory fields(DriverId,TruckId) of ParmSalesTable,
Based on output menuitem, which we cannot do, so another way by using "DocumentStatus".

IN SalesEditLines Form -> Init( )

 if(documentStatus == DocumentStatus::PackingSlip)
    {
        SalesParmTable_INC_DriverId1.mandatory(true);
        SalesParmTable_INC_TruckId1.mandatory(true);
    }
    else
    {
        SalesParmTable_INC_DriverId1.mandatory(false);
        SalesParmTable_INC_TruckId1.mandatory(false);
    }

Comments

Popular posts from this blog

We will follow the following steps in the AX development.

Need to provide “ItemId lookup” based on "ItemType" field, which selected while creating SalesOrder

How to retrieve multiple selected records from Grid using X++