Update item journal lines dimensions from dimension set entries

T222
Member Posts: 63
Can anybody help me to update the item journal lines dimensions from dimension set entries? I have inserted them on dimensions set entries but in order to see them on item journal lines , I have to press dimensions on each line and then it shows.
How can I make this in order to show them without pressing the button dimension each time? I have tried to validate the value from dimension set entry but didn't work.
0
Answers
-
Hi,
You should never insert record directly in Dimension set entries.
The Correct way of doing is (Via code) -
1. create a temporary Dimension set entry record variable. [Make sure it's temporay]
2. assign values as you require.
3. Once you are done pass temporary recordset to Function GetDimensionSetID using code unit 408.
4. This function will return an integer which then needs to be assigned to Item Journal Lines.
5. The integer returned is the dimension set id for the dimension value combination.
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page0 -
I would suggest to take a look at the functions within DimensionManagement codeunit and also to this link which is a good starting point:
http://www.archerpoint.com/blog/Posts/easily-finding-dimension-set-id-microsoft-dynamics-nav0
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