Baanboard.com

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

User login

Frontpage Sponsor

Main

Google search


Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
17%
200 - 500 GB
17%
500 - 800 GB
6%
800 - 1200 GB
6%
1200 - 1500 GB
17%
1500 - 2000 GB
17%
> 2000 GB
22%
Total votes: 18

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 20th September 2018, 13:27
pralash pralash is offline
Senior Member
 
Join Date: Feb 2017
Posts: 225
pralash is on a distinguished road
Baan: 9.0 - DB: SQL Server - OS: Windows 2012R2
before.write Vs before.save.object
Baan: Other/Unknown
C/S: None/Unknown

Hi,

I've called a function "add" with in "before.write" subsection of "main.table.io" in UI script. It's executed successfully... Code is as follows...

|******************************************************************************
|* tcemp1504 0 VRC B61C a cust
|* DAL/UE Function
|* Installation user
|* 2018-09-20
|******************************************************************************
|* Main table tcemp104 DAL/UE, Form Type 1
|******************************************************************************

|****************************** declaration section ***************************
declaration:

table ttcemp104 | DAL/UE


|****************************** program section ********************************
before.program:
message("start")

|****************************** group section **********************************

|***************************** main.table.io *********************************
main.table.io:
before.write:
add()


|****************************** function section **********************************

functions:

function void add()
{
message("before.write")
}
----------------------------------------------------------------------
And I have created a DAL script for table tcemp104 and also include a function as follows...

|******************************************************************************
|* tcemp104 0 VRC B61C a cust
|* DAL
|* baan
|* 18-09-20 [14:05]
|******************************************************************************
|* Script Type: DAL
|******************************************************************************

#include <bic_dal2>


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)
}

After adding the function "before.save.object" in DAL script, the "before.write" subjection is ignored by DAL... that is "before.write" is not activated...

So can't I make a call the function with in "before.write" subjection, if DAL is available for that table tcemp104?...

Can anybody clear my doubt....
Thanks in advance...
Reply With Quote
  #2  
Old 20th September 2018, 13:36
giggty's Avatar
giggty giggty is offline
Senior Member
 
Join Date: May 2017
Posts: 103
giggty is on a distinguished road
Baan: Infor ERP 10.6 - DB: MSSQL Server 2008 R2 - OS: Windows Server 2012
From 4GL main table i/o sections:
Quote:
Note that main.table.io sections (except the read.view subsection) are ignored when the corresponding DAL hooks are programmed in a DAL script.
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
before.write not executed cherokee Tools Development 5 7th January 2011 22:02
Simulate save event LeoSpett Tools Development 4 26th August 2005 14:21


All times are GMT +2. The time now is 19:38.


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