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)

Lookup code for Cost center

(0) ShareShare
ReportReport
Posted on by 1,260

Hi,

I have created a form for cost center with a cost center number and name.

cost.JPG

There is drop-down on the cost center column as it has a relation with the OMOperatingUnit table. Relation is CostCenter.CostCenterID == OMOperatingUnit.OMOperatingUnitNumber.

6204.costcenter.JPG

For name I have created a display method.

My question is how can I have the lookup drop option only for Operating unit types as "Cost Center" and not "Retail Channel"

So when I click to pick a value I get only those values which have their Operating unit types as Cost center.

*This post is locked for comments

I have the same question (0)
  • Sohaib Cheema Profile Picture
    49,679 Super User 2026 Season 1 on at

    Hi,

    you can add a field fixed relationship on EDT itself.

    Have a look at OMDepartmentRecId(EDT) e.g. you need to add one more node in your EDT

  • Daljit Kaur Rahsi Profile Picture
    1,260 on at

    Hi Sohaib,

    So should I be following the following steps?

    1. Create an EDIT eg: OMCostCenter and give the table reference relation as 2==OMOperatingUnit.OMOperatingUnitType.

    2. Create a new field in my table as Type and use the following mentioned EDT.

    Correct?

  • Sohaib Cheema Profile Picture
    49,679 Super User 2026 Season 1 on at

    yes.

    you can see a similar implementation on HCMPostion form. Note that field name in this form is HCMPostionDetail.Department, where you will also find 2 methods overridden on datasource field.

    cclup.png

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 26

#2
imran ul haq Profile Picture

imran ul haq 8

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 4 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans