Skip to content

OnCreate - cTagsForm

Called when a new item is created dynamically

Type: Event

Parameters

Parameter Type Description
ByRef NewItem tSelectionItem The aValues[0] element contains the string entered by the user. Changes to the sRowId and sCssClassName will be sent back to the client.
ByRef bCancel Boolean If set to True, the creation of the item is cancelled.

Syntax

Procedure OnCreate ByRef tSelectionItem NewItem ByRef Boolean bCancel

Description

This event is called when a new item is created dynamically.

It allows the developer to implement logic to store the item in the database.

If bCancel is set to True, the control will not actually create the item. For the tags form (cTagsForm) this means that no item is added and the entered text is lost. Cancelling also cancels the auto creation of the selection source.