User login
|
|
Frontpage Sponsor
|
|
Poll
|
What do you expect from your SI Implementation partner for the success of ERP implementation. Bring best practices - Not to offer more CR's Leveraging standard functions 20% Need more honesty to work with the Users until their processes are fully mapped & Users are trained 40% Focus on process automation/ integrations/ Real time data/ BI analytics 20% Stick to basics 20% Total votes: 10 |
Baanboard at LinkedIn
|

|
|
|
 |

5th April 2005, 23:20
|
Senior Member
|
|
Join Date: Dec 2003
Posts: 145
|
|
Baan: Baan 4 -
DB: Oracle -
OS: Windows NT
|
Hi All,
I am aware of a function ttstpaudread.search.audited.records() which accepts XML constructs to fetch the rows from audit file.
I could fetch the table field values from the audit file using this function. Now, I need to check if the record which is fetched is a new record inserted in the table or an existing record which is modified.
I am aware of the Type of Operation flag of the audit file, but how to read it ? Please help.
regards
Sriks
|

5th April 2005, 23:34
|
Senior Member
|
|
Join Date: Dec 2003
Posts: 145
|
|
Baan: Baan 4 -
DB: Oracle -
OS: Windows NT
|
Got the solution. xmlGetAttribute() solved the problem.
regards
|

5th April 2005, 23:44
|
 |
Guru
|
|
Join Date: Aug 2001
Location: Pacific NW, USA
Posts: 3,149
|
|
Baan: Baan 4-5,5.2(Reger),LN-6.1,Infor LN-10.x -
DB: Oracle,MS-SQL -
OS: HPUX, Linux, Windows
|
Sriks,
Quote:
I am aware of the Type of Operation flag of the audit file,
|
I couldnt find a flag for type of operation. This is the prototype in our BaaN version.
Quote:
long search.audited.records.for.gw( domain ttaud.tabl i.table, long i.selection.criteria.tree, long i.setsize, long io.next.node.id.tree, long o.data.xml.tree, long gwnetlisterrordoc )
long ttstpaudread.search.audited.records( domain ttaud.tabl i.table, long i.selection.criteria.tree, long i.setsize, long io.next.node.id.tree, long o.data.xml.tree )
|
Now, I need to check if the record which is fetched is a new record inserted in the table or an existing record which is modified.
You can do it with - aud.get.next.action()
Quote:
State
If meta.data.changed is true, the internal meta data information on the fields have been refreshed. This information must be retrieved using functions aud.get.field.ids()and aud.get.field.info().
If action.type is 'I', 'U' or 'D' then the row information on the action is available for retrieval using functions aud.get.field.status(), aud.put.old.field.value() and aud.put.new.field.value(). See the following table:
Action type aud.get.field.status aud.get.old.field.value aud.get.new.field.value
'C' (Create table)
no
no
no
'L' (Clear table)
no
no
no
'R' (Drop table)
no
no
no
'I' (Insert row)
yes
no
yes
'D' (Delete row)
yes
yes
no
'U' (Update row)
yes
yes
yes
Note: The old and new field value is not available if the status shows the field is not logged in the audit trail. See aud.get.field.status().
|
|

13th October 2010, 08:04
|
 |
Junior Member
|
|
Join Date: Feb 2010
Posts: 21
|
|
Baan: baan V -
DB: oracle -
OS: windows
|
Audit File Read...
Hi ,
CAn you please let me know if we can use this function in Baan LN also.
Thanks In Advance
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|