Sergei,
As suggested by you, i have added below code in LedgerTransListAccountUIBuilder
public void dimensionSetLookup(FormStringControl _dimensionSetDialogControl)
{
DimensionHierarchy::lookupDimensionSet(_dimensionSetDialogControl);
}
PostRun method
///
/// Registers the dialog field methods to capture events.
///
public void postRun()
{
Dialog dialogLocal = this.dialog();
super();
// This method should be called in order to handle events on dialogs.
dialogLocal.dialogForm().formRun().controlMethodOverload(false);
dialogFieldDateCode = this.bindInfo().getDialogField(this.dataContractObject(), methodStr(LedgerTransListAccountContract, parmDateCode));
dialogFieldFromDate = this.bindInfo().getDialogField(this.dataContractObject(), methodStr(LedgerTransListAccountContract, parmFromDate));
dialogFieldToDate = this.bindInfo().getDialogField(this.dataContractObject(), methodStr(LedgerTransListAccountContract, parmToDate));
// Override the modified method of the Date Interval field so that the From and To dates fields get populated based on the interval selected.
dialogFieldDateCode.registerOverrideMethod(methodStr(FormStringControl, modified), methodStr(LedgerTransListAccountUIBuilder, dateIntervalModified), this);
// Override the validate method of the Date Interval field.
dialogFieldDateCode.registerOverrideMethod(methodStr(FormStringControl, validate), methodStr(LedgerTransListAccountUIBuilder, dateIntervalValidate), this);
// run these to sync to the system date
this.dateIntervalModified(dialogFieldDateCode.control());
// Override the modified method of the From and To date fields so the date interval gets cleared when a date is manually changed.
dialogFieldFromDate.registerOverrideMethod(methodStr(FormDateControl, modified), methodStr(LedgerTransListAccountUIBuilder, dateModified), this);
dialogFieldToDate.registerOverrideMethod(methodStr(FormDateControl, modified), methodStr(LedgerTransListAccountUIBuilder, dateModified), this);
// Added by Arpan
dialogFieldDimSet = this.bindInfo().getDialogField(this.dataContractObject(), methodStr(LedgerTransListAccountContract, parmDimensionSet));
dialogFieldDimSet.registerOverrideMethod(methodstr(FormStringControl, lookup),methodstr(LedgerTransListAccountUIBuilder, dimensionSetLookup),this);
// end
}
Contract class - LedgerTransListAccountContract
[
DataMemberAttribute('DimensionSet'),
SysOperationLabelAttribute(literalstr("Dimension set")),
SysOperationHelpTextAttribute(literalstr("Dimension set"))
]
public DimensionHierarchyId parmDimensionSet(DimensionHierarchyId _dimensionSet = dimensionSet)
{
dimensionSet = _dimensionSet;
return dimensionSet;
}
but when i going to select value from Dimension set dialog, then got below error

how to resolve this. please give me more shed on this.
Thanks!