Sometimes we need to retrieve all the dimensions from the dimension reference field which we have in our tables.
Here is a generic logic which gets all the dimensions for the particular order or may be any table. Lets say Sales Order or Customers or Vendors table or some Journal related tables.
This simple method needs the default dimension as the parameter and returns us Dimension Names and its Values.
Currently the dimNames and dimValues are the container type variables defined globally in class as I have a different requirement.