Announcements
Hi,
In sales table form when I edit sales order, I can't find the financial dimension tab and design, to be more specific the fields displayed in the form doesn't exist as fields in the design from inside.. I need to control this fields to make a modified method on Business Unit filed.
any thoughts?
Hi KareemTaima,
If you want to catch a moment when a certain dimension value was changed on a form:
You can try to create a delegate in DimensionDefaultControllerBase.setDimensionAttributeValue and subscribe to it in the form dynamically, so you will be notified when the value in dimension control was changed.
Or
You can create a child class from DimensionDefaultingController and use it in the form instead of DimensionDefaultingController. In child class, you can override method setDimensionAttributeValue and call methods from caller form via (formRun.myMethod).
My mistake.
Changing dimensions is taken care of by this code in SalesTable/DataSources/SalesTable/write -
dimensionDefaultingControllerTable.writing();
You can try to put your code here checking if DefaultDimension value has changed.
Finaincial dimension tab doesn't have default dimension filed so there's no modification happen on this field
I tried the modified method on the data source for Default Dimension no thing happen
Hi Kareem,
The financial dimensions are derived from SalesTable\DefaultDimension field for header and SalesLine\DefaultDimension for lines.
You will need to write your logic on the modified method for this field either at the form level or modify the SalesTable\modifiedField for executing your logic.
André Arnaud de Cal...
294,110
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator