Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Development

User login

Frontpage Sponsor

Main

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


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 5th April 2005, 23:20
SriksAdi SriksAdi is offline
Senior Member
 
Join Date: Dec 2003
Posts: 145
SriksAdi is on a distinguished road
Baan: Baan 4 - DB: Oracle - OS: Windows NT
Read audit file

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
Reply With Quote
  #2  
Old 5th April 2005, 23:34
SriksAdi SriksAdi is offline
Senior Member
 
Join Date: Dec 2003
Posts: 145
SriksAdi is on a distinguished road
Baan: Baan 4 - DB: Oracle - OS: Windows NT
Got the solution. xmlGetAttribute() solved the problem.



regards
Reply With Quote
  #3  
Old 5th April 2005, 23:44
NPRao's Avatar
NPRao NPRao is offline
Guru
 
Join Date: Aug 2001
Location: Pacific NW, USA
Posts: 3,149
NPRao will become famous soon enough
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().
__________________
The art of perfection does not lie in doing extraordinary things but, doing ordinary things extraordinarily well. [-N. Prashanth Rao]
How To Ask Questions The Smart Way,BaaNBoard,NPRao
Reply With Quote
  #4  
Old 13th October 2010, 08:04
Amol.123's Avatar
Amol.123 Amol.123 is offline
Junior Member
 
Join Date: Feb 2010
Posts: 21
Amol.123 is on a distinguished road
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
Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
read local file and generate report jmathew Tools Development 19 16th October 2006 07:50
Unable to Purge Audit File learner Tools Administration & Installation 4 21st June 2004 10:33


All times are GMT +2. The time now is 08:16.


©2001-2023 - Baanboard.com - Baanforums.com