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
36%
Installation Wizard into new VRC
36%
Manual into existing VRC
7%
Manual into new VRC
20%
Total votes: 44

Baanboard at LinkedIn


Reference Content

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 17th January 2018, 08:35
pralash pralash is offline
Senior Member
 
Join Date: Feb 2017
Posts: 208
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
 


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 04:11.


©2001-2017 - Baanboard.com - Baanforums.com