Change log entry has to show the 'sales header' and 'sales line' changes for particular sales order
Jacob1227
Member Posts: 128
Hi All,
I have created one action button(change log) in 'Sales order page' and I have written the below code in 'on action' action trigger.
RecRef.GETTABLE(Rec);
ChangeLogEntry.SETRANGE("Record ID",RecRef.RECORDID);
ChangeLogEntries.SETTABLEVIEW(ChangeLogEntry);
ChangeLogEntries.RUN;
While i am clicking the action button in any sales order, only it filtered the sales header changes and shown. But i want to show the both sales header and sales line changes.
Can you guide me to proceed further?
Thanks in advance,
Jacob.A
I have created one action button(change log) in 'Sales order page' and I have written the below code in 'on action' action trigger.
RecRef.GETTABLE(Rec);
ChangeLogEntry.SETRANGE("Record ID",RecRef.RECORDID);
ChangeLogEntries.SETTABLEVIEW(ChangeLogEntry);
ChangeLogEntries.RUN;
While i am clicking the action button in any sales order, only it filtered the sales header changes and shown. But i want to show the both sales header and sales line changes.
Can you guide me to proceed further?
Thanks in advance,
Jacob.A
0
Best Answer
-
How about
CLE.SETFILTER("Table No.", '%1|%2', 36,37); CLE.SETRANGE("Primary Key Field 1 Value", Rec."Document Type"); CLE.SETRANGE("Primary Key Field 2 Value", Rec."No.") //Settableview, run
Should (did not try it) work but is most likely really inefficient. But since you ChangeLog T36 and T37 efficiency isn't your primary concern anyway i figure
/WisaAustrian NAV/BC Dev5
Answers
-
How about
CLE.SETFILTER("Table No.", '%1|%2', 36,37); CLE.SETRANGE("Primary Key Field 1 Value", Rec."Document Type"); CLE.SETRANGE("Primary Key Field 2 Value", Rec."No.") //Settableview, run
Should (did not try it) work but is most likely really inefficient. But since you ChangeLog T36 and T37 efficiency isn't your primary concern anyway i figure
/WisaAustrian NAV/BC Dev5 -
Hi Wisa,
Thanks for your suggestion.
RecRef.GETTABLE(Rec);
ChangeLogEntry.SETRANGE("Primary Key Field 2 Value",Rec."No.");
ChangeLogEntries.SETTABLEVIEW(ChangeLogEntry);
ChangeLogEntries.RUN;
The above code works as per your suggestion.0
Categories
- All Categories
- 75 General
- 75 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions