Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

need to show dimension dynamically in report in ax 2012 r3

Posted on by 5,901

Hi all,

https://community.dynamics.com/ax/f/microsoft-dynamics-ax-forum/398297/required-to-show-financial-dimension-set-in-report-dialog/1077331#1077331

based on the previous thread, i have to display the dimension set in report dynamically. I have added new design in the report "LedgerTransListAccount"

ledgerTrans.jpg

5305.reportDesign.jpg

Kindly let me know how i will display the dimension dynamicaly?

  • Suggested answer
    Sergei Minozhenko Profile Picture
    Sergei Minozhenko 23,089 on at
    RE: need to show dimension dynamically in report in ax 2012 r3

    Hi @rp@n,

    You can use DimensionFocusNameTmp.generateFocusNamesDefaultDimension method to get dimension values according to dimension set information and update this information to table-source for the report.

    I would say you need to do the next steps:

    1. Add MainAccount and LedgerDimension fields to LedgerTransactionListTmp and fill values when data is inserted in LedgerTransactionListTmp (if it's not already done)

    2. Add 11 pairs (or discuss the max possible level of dimension set with the customer) of field DimValueN and DimAttrNameN (where N from 1..11). DimValueN will store dimension value information and DimAttrNameN can store information about attribute name.

    3. Populate unque combinations for MainAccount and LedgerDimension from LedgerTransactionListTmp  to DimensionFocusNameTmp table

    4. Run DimensionFocusNameTmp::generateFocusNamesDefaultDimension  to fill dimension values to separate fields bases on ledger dimension and main account from DimensionFocusNameTmp filled in prev. step

    5. Update LedgerTransactionListTmp DimValueN field from DimensionFocusNameTmp

    6. In report, add same amount of columns for dimensions as you hae added in step 2.

    7. Label for column = First.DimAttrNameN  and value DimValueN , if First.DimAttrNameN is empty you need to hide the column from the report.

    There are only few examples in standard and one of them is LedgerTrialBalanceDP.generateFocusDescription, but it uses combined value instead of separate columns.

  • @rp@n Profile Picture
    @rp@n 5,901 on at
    RE: need to show dimension dynamically in report in ax 2012 r3

    in separate columns on each lines..... it should be dynamic

    for example

    dimensionvalue.jpg

    In report

    Suppose in dialog, i have selected

    busUnit.jpg

    Ledger account      Busness UNIT    Brand    

    1222502                 000000023         001       

    1222503                 000000025         002        

    So, it should display all Ledger account which having business and brand. Based on the dimension set selection , the columns should create dynamically.

    please give me more shed on this.

    thanks!

  • Sergei Minozhenko Profile Picture
    Sergei Minozhenko 23,089 on at
    RE: need to show dimension dynamically in report in ax 2012 r3

    Hi @rp@n,

    Do you need to show dimension values for each line based on the selected dimension set (in separate columns or combined column)? Do you need to implement groping by selected dimensions in dimension set?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans