Change log in dataport

sankar
Member Posts: 79
Hi Experts,
i have created one dataport for importing the vendor details. i need to enable the change log ,the details that i imported through data port.
how can i do the same ?
could you please advice.....
i have created one dataport for importing the vendor details. i need to enable the change log ,the details that i imported through data port.
how can i do the same ?
could you please advice.....
Everything is Possible
0
Comments
-
When you save / change you enable triggers ?0
-
Hi,
Thanks for the reply .. how can i do ? could you please explain ?Everything is Possible0 -
I'm going to presume that you've done all the change log setup (specifiying what tables/fields to log)
The change log functionality as standard is called after a record has been changed by either of the following triggers:
insert(true)
modify(true)
delete(true)
rename(true)
If your dataport calls these triggers with a false then (i.e vendor.modify, vendor.insert) then no entries will be created in the change log entry table.0 -
no i didn't setup the changes....
i blankly created on dataport ...
please tell me from the begginning i need to do .
thanks in advanceEverything is Possible0 -
remco_rausch wrote:I'm going to presume that you've done all the change log setup (specifiying what tables/fields to log)
The change log functionality as standard is called after a record has been changed by either of the following triggers:
insert(true)
modify(true)
delete(true)
rename(true)
If your dataport calls these triggers with a false then (i.e vendor.modify, vendor.insert) then no entries will be created in the change log entry table.
This is not true. ChangeLog catch just events fired by User input. Calling Insert(true) is not enough to run the change log.
You need to call correct function from Change Log Management to catch the change manually. Something like in Codeunit 7111 in function InsertAnalysisLine:WITH AnalysisLine DO BEGIN
INIT;
"Line No." := AnalysisLineNo;
AnalysisLineNo := AnalysisLineNo + 10000;
Description := Text;
Range := No;
"Row Ref. No." := COPYSTR(No,1,MAXSTRLEN("Row Ref. No."));
Type := Type2;
Bold := Bold2;
Indentation := Indent;
INSERT(TRUE); //<Inserting the line
RecRef.GETTABLE(AnalysisLine); //Creating RecRef for the record
ChangeLogMgt.LogInsertion(RecRef); //Writing into Changelog
END;0 -
Oops my bad. I was working with the change log during the last week making it work when NAS is running, in the code NAS was running it wasn't calling modify(true) and I presumed (I know I shouldn't presume anything with Navision
) that it was that, that was causing the issue.
Anyways I sorted it in the same way Kine suggested.0 -
Hello Kine,
Is it possible log change for new added table?
because it seem to not work by this way.
:?
thank you.0 -
It is working, but you need to enable it and restart NAV client after that...0
-
Hey Kine,
You are a good guy, help everyone and me all the times.
I appreciate you. Thank you.
:?0 -
gison wrote:Hey Kine,
You are a good guy, help everyone and me all the times.
I appreciate you. Thank you.
:?
It means that problem is solved? 8)
You are welcome...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