Baanboard.com

Go Back   Baanboard.com

User login

Frontpage Sponsor

Main

Google search


Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
17%
200 - 500 GB
30%
500 - 800 GB
3%
800 - 1200 GB
7%
1200 - 1500 GB
10%
1500 - 2000 GB
13%
> 2000 GB
20%
Total votes: 30

Baanboard at LinkedIn


Reference Content

 
dal.new()
By patvdv at 26 Feb 2008 - 21:57


dal.new()

Syntax

void dal.new( string
class_name, long object_set, ref long retval,
long prop_check [, long mode [, long eflag]] )

Description

Use this to add a new record to the database. The function encapsulates the db.insert() function with the DAL hooks of the object set. If the before.save.object() hook fails, the database operation is cancelled.

Arguments

class_name

A string containing the name of the DAL.

object_set

The ID of an open object set (if this ID is not known, use the table ID).

retval

The return value of the object hooks (<0), of the db.insert() function (> 0), or 0 if the function is successful.

prop_check

A boolean value that indicates whether or not property checks must be executed. If set to TRUE, the property checks are executed immediately before the before.save.object() hook. If set to FALSE, the property checks are not executed.

mode

Set this to DB.RETRY if retry points and the SELECT FOR UPDATE statement are being used. The actual database action is postponed until the transaction is committed.

eflag

For some errors, it is possible to indicate the action the system must perform when the error occurs. You use this argument to specify the required action(s). See Error handling.

Context

DAL function.

Related topics

0
No votes yet


All times are GMT +2. The time now is 17:24.


©2001-2018 - Baanboard.com - Baanforums.com