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

Announcements

No record found.

News and Announcements icon
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

  • Sacha Kircev Profile Picture
    905 on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Prashant Singh Profile Picture

Prashant Singh 2

#1
nmaenpaa Profile Picture

nmaenpaa 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans