Jul 22, 2016

화면(Form)에 Financial dimension 추가 하기

//Form 전역 변수
public class FormRun extends ObjectRun
{
    DimensionDefaultingController   dimensionDefaultingController;
}

//Form init
public void init()
{
    super();
   
    dimensionDefaultingController = DimensionDefaultingController::constructInTabWithValues(true, true, true, 0, this, FinancialDimensionsTabPage, "@SYS138487", curext());
    dimensionDefaultingController.parmAttributeValueSetDataSource(HcmEmployment_ds, fieldStr(HcmEmployment, DefaultDimension));
    dimensionDefaultingController.pageActivated();
}

//DataSource
public void delete()
{
    ttsbegin;
    super();
    dimensionDefaultingController.deleted();
    ttscommit;
}

//DataSource
public void write()
{
    ttsbegin;
   
    dimensionDefaultingController.writing();
    super();
   
    ttscommit;
}

//DataSource
public int active()
{
    int ret;
   
    ret = super();
   
    dimensionDefaultingController.activated();
   
    return ret;
}

//TabPage
public void pageActivated()
{
    dimensionDefaultingController.pageActivated();
    // reactivate the dimenstion controller with the proper legal entity context
    dimensionDefaultingController.reactivate(curext());
    super();
}

No comments:

Post a Comment