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)

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
    47,914 User Group Leader on at
    RE: Lookup code for Cost center

    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

  • Daljit Kaur Rahsi Profile Picture
    1,260 on at
    RE: Lookup code for Cost center

    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
    47,914 User Group Leader on at
    RE: Lookup code for Cost center

    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

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#2
Community Member Profile Picture

Community Member 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans