RemoveEntity
The removeEntity function deletes the current entity, loaded on the page, from the database. It can also be used to manage redirections and the reloading of blocks after deletion.
Using DevPanel :
Name
Label
Type
Description
vt_TableName
Table name
Text
Name of the table in which to save the entity
{vt_HowGetPk}
If necessary, specify the relationship path (e.g. Entity.MyRelationship)
Text
Method for retrieving the primary key of the record.
vt_reloadBlockAfterDeleted
block to be reloaded after deleting the Entity
Text
Block to be reloaded after deletion.
vb_ChangeUrl
change URL
Boolean
Indicates whether the url should be changed
{ vt_RedirectUuid }
Uuid de redirection
Text
Redirects to the url corresponding to the uuid
Using from 4D:
Should not be used from within a 4D custom function. See example of entity creation via reloadBloc

