Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Adding Ranges to datasource in form over ExecuteQuery methods

(0) ShareShare
ReportReport
Posted on by

Hi, 

I'm trying to add 2 ranges in my custom form datasource, this is what happen

In the BankChequeTable form i added a button "Historial" to call my custom form

BankChequeTable.PNG

 in the button configuration i marked the datasource and call my menuitem

HistoryButton.PNG

this is my menuitem configuration

6177.MenuItem.PNG

an this is my ExecuteQuery methods of my custom form where i add the ranges, this depends of the record i get as parm

4530.ExecuteQuery.PNG

but when my custom form is loaded, show data that no exist in the database beacuse in this case I should not show something, it looks like temp data

CustomForm.PNG

and I have to force the update with f5 to show the empty data message

CustomForm2.PNG

but if you can see, the ranges are added to the form but the form does not refresh the data 

i Tried calling the refresh, reread, research methods of the datasource but it does not work

What am i doing bad?

Thanks for help

*This post is locked for comments

  • Verified answer
    RE: Adding Ranges to datasource in form over ExecuteQuery methods

    The detasource need mark the property FillInEmpty at No

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans