Methods
-
start( data )
-
Description
Called at route startParameters
Name Type Description dataobject Name Type Attributes Description reqobject Request - See expressjs definition resobject Response - See expressjs definition transactionobject <optional> Database transaction. undefined by default, provide your own when necessary enum_radioobject Entity enum fields translations renderFilestring Dust file to render Details
-
ifFromAssociation( data )
-
Description
In case the creation form was called from an entity tab, it means that we've got to associate the created entity to a parentParameters
Name Type Description dataobject Name Type Attributes Default Description reqobject Request - See expressjs definition resobject Response - See expressjs definition transactionobject <optional> Database transaction. undefined by default, provide your own when necessary enum_radioobject Entity enum fields translations renderFilestring Dust file to render associationFlaginteger ID of the entity that ask for a creation formulaire of the current entity associationSourcestring Entity name that ask for a creation formulaire of the current entity associationUrlstring The url string of the entity source associationForeignKeyinteger The concerned foreign key between the two entities associationAliasstring Alias that represent the relation between the two entities subentitystring this.entity ajax request only - Name of entity without prefix actionstring /this.entity/create ajax request only - Action of create form methodstring post ajax request only - Method of create form fieldsFilestring this.e_entity/create_fields ajax request only - Fields file to insert into the form Details
-
beforeRender( data )
-
Description
Called before render of data.renderFileParameters
Name Type Description dataobject Name Type Attributes Default Description reqobject Request - See expressjs definition resobject Response - See expressjs definition transactionobject <optional> Database transaction. undefined by default, provide your own when necessary enum_radioobject Entity enum fields translations renderFilestring Dust file to render associationFlaginteger ID of the entity that ask for a creation formulaire of the current entity associationSourcestring Entity name that ask for a creation formulaire of the current entity associationUrlstring The url string of the entity source associationForeignKeyinteger The concerned foreign key between the two entities associationAliasstring Alias that represent the relation between the two entities subentitystring this.entity ajax request only - Name of entity without prefix actionstring /this.entity/create ajax request only - Action of create form methodstring post ajax request only - Method of create form fieldsFilestring this.e_entity/create_fields ajax request only - Fields file to insert into the form Details