Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Change grid Values on Run time

Posted on by 95

Dear All;

I have one requirement where i want to display Businessjustification field from Purchreqtable to the purchreqtablelistpage Grid. I can display simply using display method but the problem is filtering not working with display method. As  Businessjustification field is saving recid inplace of string , so i want to 

display string value in any way so that in listpage filtering will also work. Can i convert recid to string in form

during run time..

Thanks and Best Regards..

*This post is locked for comments

  • Martin Dráb Profile Picture
    Martin Dráb 230,198 Most Valuable Professional on at
    RE: Change grid Values on Run time

    Yes, I understand that and as I explained above, it's handled automatically in recent versions. AX uses ReferenceGroup control, not Int64, therefore it shows replacement values instead of record IDs.

    Your screenshot is from table browser, which is a different case. Nevertheless it doesn't look this way if the current version, therefore you must have selected a wrong version when creating this thread. Is it AX 2012?

  • Mohamed Amir Profile Picture
    Mohamed Amir 95 on at
    RE: Change grid Values on Run time

    Hi Martin;

    As you can see in the below image in the purchasereqtable i have only Recid stored and this recid 

    is linked with other table  PurchReqBusinessJustificationCodes and i want to display value from this table

    as also want to filter this value in grid on purchtablelistpage..

    5153.Capture1.PNG

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Change grid Values on Run time

    You can use Reference group to link data from other table to the grid.

    You can see for example how the address information is shown on many standard forms such as SalesTable.

    Check this control on SalesTable form:

    \Forms\SalesTable\Designs\Design\[Tab:MainTab]\[TabPage:TabPageDetails]\[Tab:DetailsTab]\[TabPage:HeaderView]\[Tab:HeaderDetailsTab]\[TabPage:TabHeaderAddress]\[Group:HeaderDeliveryAddress]\[Group:GroupHeaderAddress]\[ReferenceGroup:ReferenceGroup]

  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 230,198 Most Valuable Professional on at
    RE: Change grid Values on Run time

    PurchReqTable is the datasource of PurchReqTableListPage form, therefore you can simply drag the field from the datasource to form design. There is no need for a display method or anything like that.

    When you drop the field to form design, AX automatically uses a ReferenceGroup control to display human-readable values instead of record IDs.

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans