How to add automatically a dimension to a transaction?

nuno.silva
Member Posts: 29
Hi,
If we always want to add a dimension automatically, to a document? for example if someone creates a sales order, the system automatically add this dimension, later if the user wants to modified the value opens the dimension page and change the value.
We want to add this feature to all documents and journals in NAV. I know I can go on the triggers of each table and call a function that adds the dimension but there is a cleaner way?
thanks in advance for your suggestions.
NS
If we always want to add a dimension automatically, to a document? for example if someone creates a sales order, the system automatically add this dimension, later if the user wants to modified the value opens the dimension page and change the value.
We want to add this feature to all documents and journals in NAV. I know I can go on the triggers of each table and call a function that adds the dimension but there is a cleaner way?
thanks in advance for your suggestions.
NS
===============
Nuno Silva
Nuno Silva
0
Answers
-
Hi,
If the dimension is related to Nav Standard default dimensions the problem is solved (get the default dimension for customer when the customer is used).
If the dimension is a customization you must add code in each entity or document. In this case, instead of changing CreateDim function, think about creating a new function to call after to minimize the impact in upgrades.
Regards,
parm0 -
nuno.silva wrote: »Hi,
If we always want to add a dimension automatically, to a document? for example if someone creates a sales order, the system automatically add this dimension, later if the user wants to modified the value opens the dimension page and change the value.
We want to add this feature to all documents and journals in NAV. I know I can go on the triggers of each table and call a function that adds the dimension but there is a cleaner way?
thanks in advance for your suggestions.
NS
Why not just default the dimension on the customer, vendor, and/or items?Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book1 -
Also pay attention to the Dimension Priorities where you can define which is the Default Dimension that should have the lead."Money is likewise the greatest chance and the greatest scourge of mankind."1
-
Hi,
It is not related with the default dimensions, but I can solve in the function GetDefaultDimID where I have the ID of the table where I'm writting the default dimensions, and if is the table that i need to add the new dimension just add it.
thanks guys you didn't solve but get me to the solution===============
Nuno Silva0 -
Hi, not sure if this fits your requirement or not but have a look at Account Type Default Dimensions...
https://msdn.microsoft.com/en-us/library/hh167859.aspx0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions