update_form

Description
GET - Display the update form of an entity

Methods


start( data )

Description
Called at route start
Parameters
Name Type Description
data object
Name Type Attributes Description
req object Request - See expressjs definition
res object Response - See expressjs definition
transaction object <optional>
Database transaction. undefined by default, provide your own when necessary
idEntity number Id of entity to update
enum_radio object Entity enum fields translations
renderFile string Dust file to render

afterEntityQuery( data )

Description
Called before querying entity to update
Parameters
Name Type Description
data object
Name Type Attributes Description
req object Request - See expressjs definition
res object Response - See expressjs definition
transaction object <optional>
Database transaction. undefined by default, provide your own when necessary
idEntity number Id of entity to update
enum_radio object Entity enum fields translations
renderFile string Dust file to render
"e_entity" object Entity row to update

beforeRender( data )

Description
Called before render of data.renderFile
Parameters
Name Type Description
data object
Name Type Attributes Description
req object Request - See expressjs definition
res object Response - See expressjs definition
transaction object <optional>
Database transaction. undefined by default, provide your own when necessary
idEntity number Id of entity to update
enum_radio object Entity enum fields translations
renderFile string Dust file to render
"e_entity" object Entity row to update