Friday, 23 October 2015

UI Builder class overwrite Build method for group wise parameters

if you are using UI builder class then in contract class what ever you added parameters  group by
it will not show group by for that we need to overwrite build method with this things

we need to add

DialogGroup    groupDate, groupType, groupWarehouse;


Section group by Date
    groupDate = dialog.addGroup("@SYS80056");
    groupDate.columns(1);
    groupDate.caption("@SYS80056");



Example:


/// <summary>
/// to build the parameters
/// </summary>

public void build()
{
    DialogGroup    groupDate, groupType, groupWarehouse;
    Dialog         dialogLocal = this.dialog();

    MSMasteringRejectsContract = this.dataContractObject();

    //Section group by Date
    groupDate = dialog.addGroup("@SYS80056");
    groupDate.columns(1);
    groupDate.caption("@SYS80056");
    this.addDialogField(methodStr(MSMasteringRejectsContract,parmInventJournalType), MSMasteringRejectsContract);
    this.addDialogField(methodStr(MSMasteringRejectsContract,parmmprBaseItemType), MSMasteringRejectsContract);

    //Section group by Type
    groupType = dialog.addGroup("@PSA1497");
    groupType.columns(1);
    groupType.caption("@PSA1497");
    this.addDialogField(methodStr(MSMasteringRejectsContract,parmFromDate),MSMasteringRejectsContract);
    this.addDialogField(methodStr(MSMasteringRejectsContract,parmToDate),MSMasteringRejectsContract);

    //Section group by Warehouse
    groupWarehouse = dialog.addGroup("@SYS6437");
    groupWarehouse.columns(1);
    groupWarehouse.caption("@SYS6437");
    this.addDialogField(methodStr(MSMasteringRejectsContract,parminventLocationIdOutBound),MSMasteringRejectsContract);
    this.addDialogField(methodStr(MSMasteringRejectsContract,parminventLocationIdInBound),MSMasteringRejectsContract);

}

No comments:

Post a Comment