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)

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

I have the same question (0)
  • Verified answer
    JesusMiranda1993 Profile Picture
    on at

    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

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