Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Showing Financial Dimension Tab drop-down fields in a grid

Posted on by 3,024

JournalFinancialTab.pngJournalOverviewTab.png

Dear Experts,

I want to bring these two financial dimension fields in overview grid of journal how to do it . Thanks in advance. Movement journal 

Thanks and Regards,

Shabir Ahmad

*This post is locked for comments

  • Heinz Schweda Profile Picture
    Heinz Schweda 1,365 on at
    RE: Showing Financial Dimension Tab drop-down fields in a grid

    If you want to show the dimension in the grid of the lines, you should add the method to the datasorce, which is the datasource of your lines-grid. This should be InventJournalTrans. Also this table is the only table, where dimensions are stored.

  • Shabir Ahmad Profile Picture
    Shabir Ahmad 3,024 on at
    RE: Showing Financial Dimension Tab drop-down fields in a grid

    Datasourcemethod.png

    Heinz Schweda first of all sorry for late reply:

    Next thing is as you mentioned that the code will be  on the form datasource, so on which table datasource the code would be as you wrote above: please check the image for your kind info.

    Thanks and Regards,

    Shabir Ahmad

  • Shabir Ahmad Profile Picture
    Shabir Ahmad 3,024 on at
    RE: Showing Financial Dimension Tab drop-down fields in a grid

    formclassimage.pngFormdeclarationcode.png

    Crispin John Augustine,

    First of all sorry for late reply, the next thing is i declare variable in declaration class of Form and when i tried to do your 2nd point to write the code in init method after super(). I got the error as shown above in the image the error is "Argument '_tabPageControlContainer' is incompatible with the required type".

              FormErrorPopup.png

    formclassimage.png

    Thanks and Regards,

    Shabir Ahmad

  • Suggested answer
    Heinz Schweda Profile Picture
    Heinz Schweda 1,365 on at
    RE: Showing Financial Dimension Tab drop-down fields in a grid

    Hi Shabir,

    my code is designed to put it in the methods-node of your datasource in your form. Afterwards you have to create a StringEdit-Objekt in your grid (or another fieldgroup), set the property DataSource to SalesTable, set the property DataMethod to the name of your new method (e.x. showDimensionCostCenter).

    Alternativly you can add the method to the methods node in the table SalesTable, in this case you have to remove the parameter _salesTable and use "this" within the method instead. Adding a control to your form works the same way as written above.

    In both scenarios you should think about display method caching.

    Kind regards,

    Heinz

  • Shabir Ahmad Profile Picture
    Shabir Ahmad 3,024 on at
    RE: Showing Financial Dimension Tab drop-down fields in a grid

    Heinz Schweda ,

    Thanks for your code and effort you put on it, but please tell me, how should i add this code to form, Form Data-source or make new group in overview grid and then right this code there.

    Thanks and Regards,

    Shabir Ahmad

  • Shabir Ahmad Profile Picture
    Shabir Ahmad 3,024 on at
    RE: Showing Financial Dimension Tab drop-down fields in a grid

    Crispin John Augustine,

    sorry for late reply, may i know about this process, means that should i make first a group for fields or what?? Or Should i write this code directly to the form.

    Thanks for your kind response.

    Thanks and best regards,

    Shabir Ahmad

  • Shabir Ahmad Profile Picture
    Shabir Ahmad 3,024 on at
    RE: Showing Financial Dimension Tab drop-down fields in a grid

    Thanks to both of you,Crispin John Augustine and Heinz Schweda,

    Crispin John Augustine i am happy with your way of field group and please share the code for display dimensions on overview grid.

    Thanks and Regards,

    Shabir Ahmad

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans