AddNewEntity

The addNewEntity function creates a new entity in a table and fills it with the form fields defined by the parameter.

Using DevPanel :

Name

Label

Type

Description

vt_BlocNameToReloadWithNewEnity

Name of the block to be reloaded with the new entity

Text

Indicates the block containing the fields of the entity to be created and reloads it with the new entity

vt_TableName

Table name

Text

Name of the table in which to save the entity.

vb_ChangeUrl

change URL

Boolean

Indicates if a url change is required

{ vt_RedirectUuid }

Redirection uuid

Text

Redirects to the url corresponding to the uuid

{ vt_HookBeforeSaveNewEntity }

Function before saving a new entity

Text

Function to be executed before saving data.

{ vt_HookAfterSaveNewEntity }

Function after saving a new entity

Text

Function to be executed after data backup.

Use from 4D:

Should not be used from within a 4D custom function. See example of entity creation via reloadBloc