Table: posted document dimension
clement_blue
Member Posts: 16
Who can explain the purpose of the following code? Thank you.
Variable
PostedDocDim - Record - Posted Document Dimension
OnAfterGetRecord()
PostedDocDim.SETRANGE("Table ID", DATABASE::"Sales Shipment Line");
PostedDocDim.SETRANGE("Document No.", "Sales Shipment Line"."Document No.");
PostedDocDim.SETRANGE("Line No.", "Sales Shipment Line"."Line No.");
What is the purpose of the table?
Variable
PostedDocDim - Record - Posted Document Dimension
OnAfterGetRecord()
PostedDocDim.SETRANGE("Table ID", DATABASE::"Sales Shipment Line");
PostedDocDim.SETRANGE("Document No.", "Sales Shipment Line"."Document No.");
PostedDocDim.SETRANGE("Line No.", "Sales Shipment Line"."Line No.");
What is the purpose of the table?
0
Comments
-
The code is trying to locate records that meet the condition specified by the SETRANGEWho can explain the purpose of the following code? Thank you.
The table stores dimensions & the corresponding dimension values for the various types of posted documents.What is the purpose of the table?NAV - Norton Anti Virus
ERP Consultant (not just Navision) & Navision challenger0 -
i don't understand the following code
PostedDocDim.SETRANGE("Table ID", DATABASE::"Sales Shipment Line");
The subtype of PostedDocDim is "Posted Document Dimension. Does it mean this code change its subtype to "Sales Shipment Line"?0 -
1. PostedDocDim.SETRANGE("Table ID", DATABASE::"Sales Shipment Line");
2. PostedDocDim.SETRANGE("Document No.", "Sales Shipment Line"."Document No.");
3. PostedDocDim.SETRANGE("Line No.", "Sales Shipment Line"."Line No.");
if u will open the table Posted Document dimension u will find
1. the table id in the record will be the id of sales shipment line (111) in ur object designer
2. the document no. in the record will be the document no. of sales shipment which is also present on sales shipment line.
3. the line no. the record will be line no. of sales shipment.
So if i have two sales shipment with the following records
1. Table id Document No. Line No.
a. 359 SS001 10000
b. 359 SS001 20000
c. 359 SS002 10000
Now purpose of ur code is to find the record which matches the value which u will give in ur code. So it can be like this
PostedDocDim.SETRANGE("Table ID",'111', DATABASE::"Sales Shipment Line");
PostedDocDim.SETRANGE("Document No.",'SS001','SS002', "Sales Shipment Line"."Document No.");
PostedDocDim.SETRANGE("Line No.",'<20000' "Sales Shipment Line"."Line No.");
So ur output of code will be a. and c.
In nutshell to find output in between the range u have given.
And purpose has already been told .
Kapil Khanna0 -
Thanks a lot.
I understand now. Your explanation is very clear to me
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 333 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