Hi there,
I am a bit lost when it comes to the new Dimensions data-model in Ax2012. I created the query below to get the Dimensions as applied to a CUSTTRANS record.
SELECT
CT.RECID,
DAVS.RECID,
DAVSI.RECID,
DISPLAYVALUE
FROM
dbo.CUSTTRANS AS CT
LEFT OUTER JOIN
dbo.DIMENSIONATTRIBUTEVALUESET AS DAVS ON DAVS.RECID = CT.DEFAULTDIMENSION
LEFT OUTER JOIN
dbo.DIMENSIONATTRIBUTEVALUESETITEM AS DAVSI ON DAVS.RECID = DAVSI.DIMENSIONATTRIBUTEVALUESET
The query above does not tell me what type of Dimension I am looking at. It's nice to have it's value but knowing the type as well is quite preferable.
Furthermore:
- As I understood it is since Ax2012 possible to create unlimited dimensions andthe order of the dimensions applied to an CUSTTRANS or VENDTRANS record isn't consequent. At one time a Cost centre can be the first dimension and a few records on it could be the second dimension and again a few records on it could be the 99th dimension.
Is there a table in which I can see which Dimensions have been used? Is this year specific? - As shown above I JOIN on DEFAULTDIMENSION, this functions in CUSTTRANS and VENDTRANS. I was told that the LEDGERTRANS has been replaced by the GENERALJOURNALENTRY table. How do I join this table to it's dimensions? It does not have a DEFAULTDIMENSION field.
Please help me out here.
Kind regards,
Daniel