RavCOder
28th October 2019, 16:31
Hi,
I created this DAL:

#include <bic_dal>


table ttdsls900


function main()
{
db.retry.point()
select tdsls900.*
from tdsls900 for update
selectdo

dal.change.object("tdsls900")
dal.set.field("tdsls900.dates")
dal.set.field("tdsls900.datef")
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")
commit.transaction()
endselect

}

function extern long before.open.object.set()
{

return(0)
}

function extern long before.save.object(long type)
{
return(0)
}


( I don't know if my code it's correct, but anyway when I compiled , it sent me this error: Fatal error: dal_push: Invalid table name 'ttdsls900'
Fatal error: Can not continue in tdsls5900m000 in DLL: ottstpandll(dal.save.object)[___dal_push]
Can you help me?
Regards,
RavCoder

BaanInOhio
28th October 2019, 17:34
Typo in the dal.save.object line. All dal.* calls use the table name without the 't' prefix, unlike db.* calls that require the 't' prefix in the table name.

RavCOder
28th October 2019, 17:39
Thanks for help!!!