This example tutorial will guide you to add new default dim on table and forms.
1. Add new field with type Int64 and set the properties.
2. Add relation on table relation and set the properties.
3. on class declaration form , add code below :
public class FormRun extends ObjectRun { DimensionDefaultingController dimensionDefaultingController; }
4. add tab page Financial Dimension on form design , and set properties like img below
5. on TabFinancialDimensions , override method pageActivated
public void pageActivated() { dimensionDefaultingController.pageActivated(); super(); }
6. on init form, like code below :
public void init() { super(); dimensionDefaultingController = DimensionDefaultingController::constructInTabWithValues(true, true, true, 0, this, TabFinancialDimensions, "@SYS138487", curext()); dimensionDefaultingController.parmAttributeValueSetDataSource(HRSJobPowerPlan_ds, fieldStr(HRSJobPowerPlan, DefaultDimension)); }
7. finnaly, on datasource form method override method :
on active()
public int active() { int ret; ret = super(); dimensionDefaultingController.activated(); return ret; }
on write()
public void write() { dimensionDefaultingController.writing(); super(); }
on delete()
public void delete() { dimensionDefaultingController.deleted(); super(); }
Reblogged this on AX Technical World.
https://getinsurancenowfast.org/ – progressive car insurance
cheap auto insurance
cheap car insurance
Not working for me. I need it. Please reply.
Is this a good read?