Open vlkov opened 1 month ago
Adding a comment here, please doublecheck if the XML exchange is used for both Excel and the .RsFiles. If we implement the extensibility it should work for both Rapidstart files.
@nikolakukrika yes, it will work for both
Describe the request
In codeunit "Config. XML Exchange" I Suggest renaming this function GetDefaultDimensionKeyFieldIdFromTable and adding the event at the end of the function OnAfterGetDefaultDimensionKeyFieldIdFromTable(TableID: Integer; var ResultFieldId: Integer)
Additional context
If the table has a default dimension we need to subscribe to the one event Config. Management OnAfterIsDefaultDimTable But it's not enough when Default Dimension is mapped by the not first key field because in codeunit "Config. XML Exchange" function GetPrimaryKeyFieldNumber returns the first key fieldid.
We need it for tables that have an assigned Default Dimension, but where the assigned field with code[20] is not the first primary key. For example, we have a table with a GUID primary key and use a non-primary unique field(with type code[20] ) to link the default dimension. Internal work item: AB#554765