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)

Cannot override the datasource method

(0) ShareShare
ReportReport
Posted on by

i want to override the "executeQuery" method of the data source "SalesTable" for the "SalesTableListPage" form as below:

But on the pop-up menu, i cannot find the override option there? why
and the method of my custom control in the "Filter" groups also cannot be override.

Thanks.

*This post is locked for comments

I have the same question (0)
  • Anton Venter Profile Picture
    20,345 Super User 2025 Season 2 on at

    That's because it's a list page and there cannot be any code in it because it is used in the client and the Enterprise Portal as well. The place to put code is in the interaction class. In this case it is called SalesTableListPageInteraction.

  • Community Member Profile Picture
    on at

    [quote user="Anton Venter"]

    That's because it's a list page and there cannot be any code in it because it is used in the client and the Enterprise Portal as well. The place to put code is in the interaction class. In this case it is called SalesTableListPageInteraction.

    [/quote]

    Hi Anton

    I added a custom StringEdit Control, that is used for filter the data in the list page, if i cannot override the method on my custom control, does it mean it's impossible for me to satisfy the requirement?

    Many thanks.

  • Anton Venter Profile Picture
    20,345 Super User 2025 Season 2 on at

    It is called when the list page is opened in the client and the Enterprise Portal.

  • Community Member Profile Picture
    on at

    [quote user="Anton Venter"]

    It is called when the list page is opened in the client and the Enterprise Portal.

    [/quote]

    is it possible for me to add a StringEdit control on the form and filter the records base on the content in the control ?

  • Mohammad Raziq Ali Profile Picture
    2,486 on at

    Hi Anton,

    You can with ListPageInteractionClass to make customization on listpage form.

    Thanks,

    Raziq

  • Community Member Profile Picture
    on at

    [quote user="Mohd Raziq Ali"]

    Hi Anton,

    You can with ListPageInteractionClass to make customization on listpage form.

    Thanks,

    Raziq

    [/quote]

    Hi Mohd Raziq

    The point is i cannot override the method for the control that i added on the form, so how to customization the form ?

  • Verified answer
    Iulian Cordobin Profile Picture
    8,201 on at

    Hi.

    As Anton was mentioning a ListPage templated form doesn't normally allow code changes directly in the AOT form node, because these forms are automatically rendered on EP without human intervention.

    But, you can perform changes, however, they will not be visible on the EP side.

    For instance, if you places a StringEdit in the FilterGroup and want to use that to filter the record on the client side, there is a property on the group called DisplayTarget that you can set to Client. That will allow you to override the methods.

    Also, you can also work with the query in the interaction class, I imagine for adding ranges; you have the initializeQuery method you can override. Actually the method is already overridden for the SalesTableListPageInteraction class.

  • Community Member Profile Picture
    on at

    [quote user="Iulian Cordobin"]

    Hi.

    As Anton was mentioning a ListPage templated form doesn't normally allow code changes directly in the AOT form node, because these forms are automatically rendered on EP without human intervention.

    But, you can perform changes, however, they will not be visible on the EP side.

    For instance, if you places a StringEdit in the FilterGroup and want to use that to filter the record on the client side, there is a property on the group called DisplayTarget that you can set to Client. That will allow you to override the methods.

    Also, getting to the executeQuery point in time is also possible in the interaction class.

    [/quote]

    Iulian, thank you very much.

  • Iulian Cordobin Profile Picture
    8,201 on at

    For adding filters you can look at the standard ProjProjectsListPage form, at the filter named CtrlCompanyLookup. It has it's modified method overridden.

  • Community Member Profile Picture
    on at

    [quote user="Iulian Cordobin"]

    For adding filters you can look at the standard ProjProjectsListPage form, at the filter named CtrlCompanyLookup. It has it's modified method overridden.

    [/quote]

    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

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