Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Data descending order in form

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,

I have done some customization, in one form i have created a number sequence in one table. But i have one more serial number field in different table, i need to achieve the serial numbers to be descending order in my form. please help me on this.

thanks,

Stalin

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Data descending order in form

    Thanks Suresh,

    it is working.

    Thanks,

    Stalin

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Data descending order in form

    Hi Stalin,

    try with this code in serial number field table executeQuery

    public void executeQuery()
    {

        Table1_1_ds.query().dataSourceNo(1).sortClear();
        Table1_1_ds.query().dataSourceNo(1).addSortField(fieldNum(Table1, IndentNumberToUnit),
        SortOrder::Descending);
        super();
    }

    Thanks,

  • JoeBrewer Profile Picture
    JoeBrewer 690 on at
    RE: Data descending order in form

    Hi Stalin

    To achieve this you will need to add an order by clause to the query in the form. Have a look at this thread: https://community.dynamics.com/ax/f/33/t/127335

    Joe

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Data descending order in form

    Hi Stalin ,

    as per my understand you need to show the data by descending order right?

    You can sort order your form table data-source.

    which ever your want the data to be descend you can write the login execute query in form second table data source.

    This is just a suggestion.

    Thanks,

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans