Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Set default value for a field

Posted on by Microsoft Employee

hi guys
When I create a purchase order, I usually forget to put the warehouse, is there any way that when I put the site, the warehouse is automatically put to me or that the warehouse fills itself? (we only have a warehouse)

  • Verified answer
    Rachit Profile Picture
    Rachit 4,015 User Group Leader on at
    RE: Set default value for a field

    You can check the below blog. Basically if you want to default using system configuration then the setup is required. 

    www.alithya.com/.../default-and-site-specific-order-settings-in-microsoft-dynamics-ax-2012

    Another way is to customise,  if you do not want to setup on every product and vendor.

    As you mentioned you have only one warehouse,  a simple customisation option would be to add a default warehouse field on a parameter table and use that to default value when creating a new order. Please check with your architects or developers in the team. Hope this helps.

  • Verified answer
    RE: Set default value for a field

    Hello Pablo,

    On the vendor, there are fields called Site and Warehouse. These will default to a purchase order for that vendor.

    I don't have AX2012 system, but if you go to released products (or products), there should be a menu item called Default order settings. Here you can specify a default or a mandatory warehouse for a site.

    I hope that helps

    Regards

    Dolores

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Set default value for a field

    Hi Dolores

    Im so sorry but im new in this program, could you say me how to do it step by step please?

    Have a nice day

    Pablo

  • RE: Set default value for a field

    Hello PMuni,

    You could set the warehouse on the vendor.

    Or if you set up default order settings on the product, you can set a default or mandatory warehouse per site,

    Hope this helps

    Dolores

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Set default value for a field

    We can´t do it without touching the code?

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Set default value for a field

    Generally you can handle these requirements by writing code in modifiedField method of the underlying table.

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans