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)

Menu item name in custom entity wizard

(0) ShareShare
ReportReport
Posted on by

I am trying to create a DIXF (Data import/export Framework) Custom Entity with the Wizard.

The thing is during the wizard I am asked to enter the "Display menu item name" value.

The questions are why is it mandatory, where does this menu item will be shown and what can I do it now for it?

0407.Capture.PNG

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    239,645 Most Valuable Professional on at

    I think it's used when you want to open the newly created or updated entity from its staging table (and maybe at some other places).

    Technically the wizard uses the name when generating jumpRefMethod() of the entity class.

    What you can do now? Just put there the name of a menu item opening a form with your entities. As I understand, WHSInventTable merely holds additional fields for items and its edited together with standard item fields, therefore you should use EcoResProductDetailsExtended menu item. In fact, it doesn't look like a separate entity to me - I think it should be a part of the Items entity instead.

  • Community Member Profile Picture
    on at

    You are definitely right. It is not a separate entity. However, I don't know any way to figure out which entity to choose. Is there any?

    The company I have just started to work for, runs the following job to insert data into some tables after they import their products via Product entity.

    I am trying to find a way to remove that job and insert the required fields at the time of importing the products.

    @Martin tested Items entity but unfortunately it didn't help.

     void UpdInventTableReservationHierarchy()
    {
        InventTable                         inventTable;
    
        EcoResTrackingDimensionGroup        tracking;
        EcoResTrackingDimensionGroupItem    trackingItem;
    
        WHSReservationHierarchy             reservation;
        WHSReservationHierarchyItem         reservationItemNotExists, reservationItem;
        WHSInventEnabled                    wHSInventEnabled;
        ;
    
        ttsBegin;
    
        while select inventTable
            join trackingItem
            where trackingItem.ItemId == inventTable.ItemId
            &&    trackingItem.ItemDataAreaId == inventTable.dataAreaId
    
            join tracking
            where tracking.RecId == trackingItem.TrackingDimensionGroup
    
            notexists join reservationItemNotExists
            where reservationItemNotExists.ItemId == inventTable.ItemId
            &&    reservationItemNotExists.ItemDataAreaId == inventTable.dataAreaId
        {
            if (!WHSInventEnabled::exist(inventTable.ItemId))
            {
                wHSInventEnabled.clear();
                wHSInventEnabled.ItemId = inventTable.ItemId;
                wHSInventEnabled.insert();
            }
    
            reservation = WHSReservationHierarchy::findByName(tracking.Name);
            if (!reservation)
            {
                reservation.Name = tracking.Name;
                reservation.Description = tracking.Description;
                reservation.insert();
            }
    
            reservationItem.clear();
            reservationItem.ReservationHierarchy = reservation.RecId;
            reservationItem.ItemId = inventTable.ItemId;
            reservationItem.ItemDataAreaId = inventTable.dataAreaId;
            reservationItem.insert();
        }
    
        ttsCommit;
    
    }
  • Martin Dráb Profile Picture
    239,645 Most Valuable Professional on at

    I would start with asking when the fields are used on GUI. Is it already when releasing a product (and I would do it in the Products entity), or later by modifying InventTable (and it belongs to the Items entity)? I think it's the latter case.

    When you identify the logical entity to use, look at its implementation. You'll likely find that your requested logic isn't included in standard AX, so you'll have to modify the entity.

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 24

#2
Michel ROY Profile Picture

Michel ROY 14

#3
Jagadabi Profile Picture

Jagadabi 6

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans