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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Slow loading of dropdown entries

(0) ShareShare
ReportReport
Posted on by 25

Hello,

I have a problem with the Sales Order Details form. When I click the dropdown button of the Campaign ID in the General tab, the Campaign IDs from the smmCampaignTable are loaded as it is defined by the relation on the EDT. But since the smmCampaignTable Table has several thousand entries it takes about 20 seconds to load all entries. This is much too long.

Is there a way to speed this up or is it possible that the first entries are already shown while the last entries are still being loaded?

 

Best regards,

Manuel Kern

*This post is locked for comments

I have the same question (0)
  • Sacha Kircev Profile Picture
    905 on at
    Re: Slow loading of dropdown entries

    Hi,

    In your environment is there customizations on this lookup ?

    Anyway, you can try to optimize this lookup by several methods :

    • Optimizing the x++ code that takes the most of the CPU time during the lookup (use code profiler
      determine where the lookup spends most of the time), for example in standard AX 2009 5/6 of the
      time is spent in the smmCampaignTree::createTree() static method.
    • Rewrite the lookup entirely, write one that don't build a Tree Control (which allows manipulating hierarchies)
      but just selects the campaignId field of smmCampaignTable (using SysTableLookup).
    • Try optimize the indexes on smmCampaignTable
      I think that in your case creating one unique index containing ParentCampaignId and Recid should
      give better performances.

    Regards

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Mea_ Profile Picture

Mea_ 4

#3
KP-31070522-0 Profile Picture

KP-31070522-0 3

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans