AX:call function in the caller table

call function in the caller table

public void init()
{
    FormRun  formRunCaller;
    ;
    itemDimCombFormHandler = element.args().parmObject();

    if (itemDimCombFormHandler == null)
    {
        throw error("@SYS22996"); // Form was called incorrectly
    }

    //HIDE FILTER BY SALESLELSE - BRUCE.CHEN - 2016-02-22 - BEGIN
    //filterBySalesPipeLine = true;
    //HIDE FILTER BY SALESLELSE - BRUCE.CHEN - 2016-02-22 - END
    super();
    if(element.args().record())
    {
        gInventTable = element.args().record();
        inventDimId = itemDimCombFormHandler.parmInventDimId();
        InventTable.data(gInventTable);
    }
    if(element.args().parm())
    {
        developId =  element.args().parm();
        // Modified by ACT3 on 12/8/2017 - BEGIN
        if (!InventDim::find(InventDimId).InventStyleId)
        // Modified by ACT3 on 12/8/2017 - END
        //create a new inventDim with styleid equals developId
        this.createNewInventDimWithStyle();
    }

    formRunCaller = element.args().caller();
    if(formRunCaller.name() == formStr(TEX_DevelopCreateOrder))
    {
        salesPipeline = element.args().caller().salesPipeline();
    }
    
    if(formRunCaller.name() == formStr(SalesCreateOrder))
    {
        salesPipeline = element.args().caller().salesPipeline();
    }
    element.controlDimensionVisible();
}

你可能感兴趣的:(AX:call function in the caller table)