美文网首页
AX:call function in the caller t

AX:call function in the caller t

作者: axxxxxxxx | 来源:发表于2017-12-19 17:00 被阅读0次

    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 t

          本文链接:https://www.haomeiwen.com/subject/hhliwxtx.html