web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Refresh Grid

(0) ShareShare
ReportReport
Posted on by

Hi everyone,

I'm trying to filter data in Grid based on querybuildrange then refresh it when combo box's selection change.

I have found a lot of solution ( http://kashperuk.blogspot.de/2010/03/tutorial-reread-refresh-research.html ), but nothing works in my case; I have tried Ds_reread, Ds_refresh ect...i have tried to reload the form too but the grid still not refreshed.

Any Help please?

Thanks.

*This post is locked for comments

I have the same question (0)
  • XB Profile Picture
    1,875 on at

    Did you try _DS.executequery()

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    what you are trying to do?

    remove filters/ranges or add filters?

  • Community Member Profile Picture
    on at

    Yes i have tried calling the init, the executequery, the refresh and research methods from _DS but it doesn't refresh the grid

  • Community Member Profile Picture
    on at

    Hi Sohaib,

    I try to remove filters, wich mean reset Grid ; return to the initial state

  • XB Profile Picture
    1,875 on at

    If you have a combobox and when it change you need to refresh the grid, you have to

    1.- set code on modified method on combobox 

    2.- Change query (querybuildRange) to modifify query

    3.- Call execute query

  • Community Member Profile Picture
    on at

    you are right but I'am wondering to use  fuctions from those hwo are available for DS.(refresh, reread...ect)

  • XB Profile Picture
    1,875 on at

    But if you change query you need to execute query, refresh and reread is only for the selected record on DS.

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    Hi Ennasri,

    you can use SysQuery::valueUnlimited( to clear your ranages under execute query method of form. This way you don't need to do any mess with refresh of form.

  • Community Member Profile Picture
    on at

    Hi Sohaib,

    I have used it with a simple range and it works , but with Range based on join datasources not working, any suggestion please?

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    Hi Ennasri,

    kindly explain  you scenario with some reproducible steps, that we might use to answer you

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans