pralash
20th September 2018, 14:27
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...
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...