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)

Adding Department to Worker/Project and Worker/Category validation group forms

(0) ShareShare
ReportReport
Posted on by

I'm trying to add the a department field to the grids on these to forms. The hcmWorker table is where the form is being populated from, but it doesn't contain a department field. I'm not totally sure how to make the connection to a table that contains department data or how I use the new datasource within the form.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    298,740 Super User 2025 Season 2 on at
    RE: Adding Department to Worker/Project and Worker/Category validation group forms

    Hi Jacobh2,

    Technically, the department field is a field from the HcmPositionDetail table. The method you mentioned returns records with all departments if the worker has multiple position. You can have a look at the method getPrimaryDepartment(). You can use this logic for a new display or edit method. You can read more about display and edit records starting on this page: docs.microsoft.com/.../using-the-display-method-modifier

  • Community Member Profile Picture
    on at
    RE: Adding Department to Worker/Project and Worker/Category validation group forms

    The HcmWorker table already has a method getDepartments, is there a way to use it for my field?

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    298,740 Super User 2025 Season 2 on at
    RE: Adding Department to Worker/Project and Worker/Category validation group forms

    Hi Jacobh2,

    It is not possible to move or add the department field using personalization. The controls are build dynamically on the form, based on the dimension setup in the general ledger. If you really need just this field in a grid, you have to do it using a customization. E.g. you can create a display or edit method and link this to a control on the grid.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#1
Guy Terry Profile Picture

Guy Terry 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans