Wrong Use of DAL Engine
My process session halts at dal.save.object (for new records) and I get an Application error "Wrong use of DAL Engine".
Is there any way by which we can suppress this error message, because this message stops the flow of baan program. A user has to exit or Ignore this error message to continue with then program.
refer my code snippet here:
What is the error message return by dal.get.error.message() and what is the return value of dal.save.object().
There is a possibility that record already exists or may be its due to bad data due to domain mismatch.
Instead of suppressing, you may try to solve the issue. For suppressing, you can try setting error.bypass = true
I Think your dal.save.object() call is wrong. Especially the variable err.mess is not allowed in DAL2. Please use only
Trial and error
This code piece was a result of some Trial and error, which I did to suppress the error message popup. My original code has ret = dal.save.object("tiedm100").
@Bhushan: I am capturing return value and I know some of the data to be uploaded is not correct.
The problem is the size of data is big and I don't want my program to halt execution during upload.
I will try error.bypass=true and get back to you.
Thanks Vahdani and Bhushan for your valuable comments.
ret = dal.save.object("tiedm100", err.mess,db.return.error)
From the guide function long dal.save.object (string tbl.name [, long error.flag])
should have been dal.save.object("tiedm100",db.return.error)
|All times are GMT +2. The time now is 19:52.|
©2001-2017 - Baanboard.com - Baanforums.com