pralash
27th June 2018, 14:56
Hello,

I have create the 3gl script in order to store a record in a table as follows...

|******************************************************************************
|* tccom345 0 VRC B61C a cust
|* tesing script
|* sakthi
|* 18-06-27 [17:01]
|******************************************************************************
|* Script Type: 0
|******************************************************************************

#include<bic_dam>

function main()
{
long s
dal.new.object("tccom9547")
dal.set.field("tccom9547.stid",32)
dal.set.field("tccom9547.dept","cs")
s=dal.save.object("tccom9547")
if(s=0)then
commit.transaction()
message("done")
else
message("fail")
abort.transaction()
endif
}

But how can I execute this script.... Can anybody tell me about this please....

Regards,
Pralash

giggty
27th June 2018, 15:46
Try activate (http://www.baanboard.com/programmers_manual_baanerp_help_functions_processes_activate) or wait.and.activate (http://www.baanboard.com/programmers_manual_baanerp_help_functions_processes_wait_and_activate)

pralash
27th June 2018, 16:00
Thanks so much for your reply...
Will try it...
Regards,
Pralash

Sahil Sharma
6th August 2018, 12:30
Just type "o-Your3glScriptCode" in run program and Tap Enter.

For e.g - otdfib2020m000

pralash
6th August 2018, 15:52
Thanks so much....:)