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)

AX 2012 SegmentedEntry control lookup

(0) ShareShare
ReportReport
Posted on by 200

Hi,

I have a task to customize the look-up on an SegmentedEntry control. So in the General Journal Lines form when the user hits the look-up I need to filter some of the segments and remove the ones that are suspended form the current company.

 

Can anybody point me in the right direction of how could I do this?

Thank you,

Catali

*This post is locked for comments

I have the same question (0)
  • Fav Mohammed Profile Picture
    on at

    Hello Cata,

    I have found the following information on Segmented Entry Control(SEC) on two MSDN pages. The first shows the X++ code relevant to SEC and what to change/amend to make it relevant to what you are doing. I was unable to locate Information on the Lookups specifically, however you can open the relevant classes connected when assigning the SEC and change the relevant lookup or use a list of recently used values to select a value for each segment.

    Adding a Segmented Entry Control

    msdn.microsoft.com/.../hh300644.aspx

    Segmented Entry Control Info

    msdn.microsoft.com/.../hh300646.aspx

    Unfortunately i don't have any hands on experience, but i hope that this information will be able to help you.

    Hope this helps

    Regards

    Fav

  • Verified answer
    Cata Profile Picture
    200 on at

    Hi,

    What I did find out is that the query is built from the LedgerDimensionController class. In this class there is a method getAutoCompleteValidQuery() that gets called when the query is build. I created a new method that adds the joins that i needed and called it from getAutoCompleteValidQuery().

    This works...my problem is fixed.

    My only worry is that I had to modify a framework class....

    Thank you,

    Catalin

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