Namespace: Consultingwerk.SmartComponents.Implementation
Class 
BeforeCreateRecordEventArgs Copy to Clipboard
Parent classes:
Inherits: System.ComponentModel.CancelEventArgs

File:BeforeCreateRecordEventArgs
Purpose:Event argument for the BeforeCreateRecord class
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sun Jan 17 23:24:00 CET 2010


Top Constructor Summary
Options Name Purpose
+ BeforeCreateRecordEventArgs (character, character, handle, handle) Constructor for the BeforeCreateRecordEventArgs class

Top Property Summary
Options Name Purpose
+ HANDLE BufferHandle A reference to the new record
+ CHARACTER BusinessEntityName The name of the BusinessEntity the raised this event
+ CHARACTER CancelMessage A message indicating why the create has been cancelled.
+ HANDLE QueryHandle The handle of the Query using the Buffers of the DataAdapter
+ LOGICAL SkipUniqueRecordValidation When set to TRUE (in an event handler) the method CreateRecord will not use BufferHelper:CanCreateDefaultRow () to validate if the new record can be added to the current (client side) query result list
+ CHARACTER TableName The name of the BusinessEntity's table the raised this event


Constructor Detail
Top

PUBLIC BeforeCreateRecordEventArgs (character, character, handle, handle)

Purpose: Constructor for the BeforeCreateRecordEventArgs class
Notes:

Parameters:
pcBusinessEntityName CHARACTER
The business entity name
pcTableName CHARACTER
The name of the business entity table
phBufferHandle HANDLE
The handle of the temp-table buffer
phQueryHandle HANDLE
The handle of the query navigating the buffer


Property Detail
Top

PUBLIC HANDLE BufferHandle

Purpose: A reference to the new record
Notes:

Returns HANDLE
Top

PUBLIC CHARACTER BusinessEntityName

Purpose: The name of the BusinessEntity the raised this event
Notes:

Returns CHARACTER
Top

PUBLIC CHARACTER CancelMessage

Purpose: A message indicating why the create has been cancelled.
Notes:

Returns CHARACTER
Top

PUBLIC HANDLE QueryHandle

Purpose: The handle of the Query using the Buffers of the DataAdapter
Notes: Potentially used to Query Buffer handles (no. 2 and up) to
refetch them in an Event Handler for later taking new records on
the joined table into account for CREATE-RESULT-LIST-ENTRY

Returns HANDLE
Top

PUBLIC LOGICAL SkipUniqueRecordValidation

Purpose: When set to TRUE (in an event handler) the method CreateRecord
will not use BufferHelper:CanCreateDefaultRow () to validate if the
new record can be added to the current (client side) query result
list
Notes: Set to TRUE when performing manual validation if the new record
can be added to the current queries result list.

Returns LOGICAL
Top

PUBLIC CHARACTER TableName

Purpose: The name of the BusinessEntity's table the raised this event
Notes:

Returns CHARACTER


©2006-2016 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       26.08.2016 08:31:40