Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Dimension values for additional table

Posted on by 33,159

If I've done this:

 

[EventSubscriber(ObjectType::Codeunit, Codeunit::DimensionManagement, 'OnAfterSetupObjectNoList', '', false,false)]

    local procedure AddShipToAddress(var TempAllObjWithCaption: Record AllObjWithCaption)

    var

    DimMgt: Codeunit DimensionManagement;

    begin

        DimMgt.InsertObject(TempAllObjWithCaption,Database::"Ship-to Address");

    end; 

How do I get it to pickup the assigned dimension values if I change the "Ship-to Address" on an order. Already taken care of the page actions to assign default dimension values.

  • Suggested answer
    JAngle Profile Picture
    JAngle 33,159 on at
    RE: Dimension values for additional table

    Table in question has a 2 field pk. The answer was very long winded with a custom table to store dim values, custom dim mgt. codeunit and a lot of event subscribers. A colleague had produced a solution for dimension values on dimension values

  • Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: Dimension values for additional table

    I think you need to find a suitable trigger on the saleshead table in order to achieve this.  You have to do something in OnAfterValidate trigger for the shiip to on the salesheader.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans