Change log

siyak
Member Posts: 66
Hello good pips
I have a problem with codeunit(423(Change log management)).i've created a form that is doing the verification of customer then i need to write to the change when there's an approval on the customer.it writes to tha change,but it does'nt say that the satus is approved or reject.
I tried to use the function that InsertlogEntry and i have a problem with the fieldRef and xfieldref that i need to call them on my form.please help :oops:
I have a problem with codeunit(423(Change log management)).i've created a form that is doing the verification of customer then i need to write to the change when there's an approval on the customer.it writes to tha change,but it does'nt say that the satus is approved or reject.
I tried to use the function that InsertlogEntry and i have a problem with the fieldRef and xfieldref that i need to call them on my form.please help :oops:
0
Comments
-
Hi Siyak,
The fieldref and xfieldref are used to see if a record has changed. If I have picked you up correctly, you are deciding when the insert into the log yourself - then why not insert into the log table (405) directly?
Just run a manual example and mirror that in you code
Hope this helps0 -
I used this code:cChangeLogMngt.LogModification(newVal,oldVal),now i need to call the locals(RecRef and xRefrec) i tried to create two record variables one for new value and other for old value and it complain about those variable0
-
Hi Siyak,
Again I think writting to the table is easier but here's code to log an amendment to the item tableGET( '1000' ); Oldrecref.GETTABLE( Rec); Description := 'Record Modified'; MODIFY; NewRecRef.GETTABLE( Rec); Logman.LogModification( NewRecRef, Oldrecref );
Basic, I know - but it works0 -
Thanks man i've already done that,using almost the same code then it works.Thanks again \:D/0
-
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