Hi,
I created a script session and I wanted to know if there is a way to create a DAL from a script session.
My goal is to insert the table fields through the DAL.
This is my DAL script that I created:
but I don't know if It's correct and then I wanted to know if there is a way to check if I'm running the DAL.
Regards,
RavCoder
I created a script session and I wanted to know if there is a way to create a DAL from a script session.
My goal is to insert the table fields through the DAL.
This is my DAL script that I created:
Code:
|******************************************************************************
|* tdsls900 0 VRC B61U 10 stnd
|* DAL tabella tdsls900
|* baan
|* 17.05.17 [04:53]
|******************************************************************************
|* Script Type: DAL
|******************************************************************************
#include <bic_dal>
#include <bic_dam>
table ttdsls900
function main()
{
select *
from tdsls900 for update
selectdo
db.set.to.default(ttdsls900)
db.retry.point()
dal.new.object("ttdsls900")
dal.set.field(tdsls900.bpid)
dal.set.field(tdsls900.nama)
dal.set.field(tdsls900.item)
dal.set.field(tdsls900.cuni)
||dal.set.field(tdsls900.qoor)
dal.save.object("ttdsls900")
endselect
}
||This were in my script yet
||function extern long before.open.object.set()
||{
|| return(0)
||}
||function extern long before.save.object(long type)
||{
|| return(0)
||}
Regards,
RavCoder