Baanboard.com

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

User login

Frontpage Sponsor

Main

Google search


Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
33%
Installation Wizard into new VRC
39%
Manual into existing VRC
6%
Manual into new VRC
22%
Total votes: 49

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 17th January 2018, 08:35
pralash pralash is offline
Senior Member
 
Join Date: Feb 2017
Posts: 220
pralash is on a distinguished road
Baan: 9.0 - DB: SQL Server - OS: Windows 2012R2
before.get.object
Baan: Other/Unknown
C/S: None/Unknown

Hi,

I've create a DAL Script by using the object hooks....

Whenever perform any database operation through the session, the before.open.object.set hook is executed automatically in the DAL script...
After that the "before.get.object" hook is executed twice... But i'm not clearly understand that why the before.get.object hook is executed twice...

Can you please find the screen shot as well as my DAL script is follows, and advise me about this issue.

|******************************************************************************
|* tcemp103 0 VRC B61C a cust
|* DAL for Student
|* baan
|* 18-01-10 [17:32]
|******************************************************************************
|* Script Type: DAL
|******************************************************************************

#include <bic_dal2>

function extern long before.get.object( long dir )
{
dal.set.info.message("@%1s","Before get object")
show.dal.messages(MSG.INFO)
return(0)
}

function extern long after.get.object(long dir)
{
dal.set.info.message("@%1s","After get object")
show.dal.messages(MSG.INFO)
return(0)
}

function extern long before.open.object.set()
{
dal.set.info.message("@%1s","Before open object")
show.dal.messages(MSG.INFO)
return(0)
}

function extern long before.save.object(long type)
{
dal.set.info.message("@%1s","Before save object")
show.dal.messages(MSG.INFO)
return(0)
}

function extern long after.save.object(long type)
{
dal.set.info.message("@%1s","After save object....")
show.dal.messages(MSG.INFO)
return(0)
}

function extern long before.destroy.object()
{
dal.set.info.message("@%1s","Before Destroy object....")
show.dal.messages(MSG.INFO)
return(0)
}


function extern long after.destroy.object()
{
dal.set.info.message("@%1s","After Destroy object....")
show.dal.messages(MSG.INFO)
return(0)
}
Attached Images
File Type: png DAL1.PNG (29.0 KB, 19 views)
Reply With Quote
  #2  
Old 19th January 2018, 08:18
manish_patel's Avatar
manish_patel manish_patel is offline
Senior Member
 
Join Date: Apr 2007
Location: Surat-->Bangalore, INDIA
Posts: 190
manish_patel is on a distinguished road
Baan: Baan IVc4, Baan 5.0 b - DB: Oracle 11g R2 - OS: HP-UX 11.31
How many record exists in main table?
__________________
Thanks & Regards,
Manish
Reply With Quote
  #3  
Old 19th January 2018, 08:48
pralash pralash is offline
Senior Member
 
Join Date: Feb 2017
Posts: 220
pralash is on a distinguished road
Baan: 9.0 - DB: SQL Server - OS: Windows 2012R2
Hi Manish,
There is no records in the main table....

Regards,
Pralash
Reply With Quote
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


All times are GMT +2. The time now is 21:29.


©2001-2018 - Baanboard.com - Baanforums.com