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)

How to refresh the form after a grid checkbox is checked ?

(0) ShareShare
ReportReport
Posted on by 844

I need to refresh my form (simple editable grid) when any of the grid checkbox is checked. What really is the requirement is to enforce the mutual exclusiveness of the boolean field (NoYes) for all records in the table at UI.

 

Kindly help me about this.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Amir Nazim Profile Picture
    5,994 on at

    you want to refresh your data ? you need to refresh your form

    check the blog link kashperuk.blogspot.com/.../tutorial-reread-refresh-research.html

  • Community Member Profile Picture
    on at

    in active method of datasource, call executequery() method of the datasource.

  • Suggested answer
    Community Member Profile Picture
    on at

    You need to override the modified method of checkbox and call the executeQuery() method of form datasource table linked to the grid.

    Please verify and update if this helps you

  • gangadhar reddy Profile Picture
    527 on at

    Hi Nitesh

    I had similar requirement as of the above question.  I have tried calling the execute query in the modified method of the field and update happens immediately after I change the data. But the only issue is after the grid refresh I see a glimpse of the partial enum drop down (in my case field is a enum) even also after i close the form. So it seems complete refresh is not happening.

    I tried also by calling research() method but in that case also data gets updated but the same issue of screen grab remains.

    do you know how can this be fixed ?

    (If executeQuery is called in the active method then form keeps blinking always when its open)

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Maqk,

    You can write in check box form active method.

    formDataSource.refresh()

    formDataSource.reread()

    Try this!

    Thanks,

  • Suggested answer
    gangadhar reddy Profile Picture
    527 on at

    Hi

    My problem got solved after I placed research()/executeQuery() method in datasource write() method.

    My actual requirement was to trigger the displayOption() method which I have written.

    with refresh and reread() it is not happening and now its sorted out. In the modified() method research() is not working properly but works in write () method.

  • Community Member Profile Picture
    on at

    Hi gangadhar,

    Here the requirement not related to executeQuery(). The form already opened. How executeQuery will work here.

    Thanks,

  • Suggested answer
    Mehmet Ali Akbulut Profile Picture
    61 on at

    How can I reload the form is on Ax 2009? (for NoYesId)

    6371.Ekran-Al_3101_nt_3101_s_3101_.PNG

  • Vilmos Kintera Profile Picture
    46,149 on at

    Without explaining your problem in more detail, we will not be able to help. What kind of datasource are you using? Is the field a bound or unbound control? Do you use it with an edit method? What exactly do you want to refresh (expected outcome??)?

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