loadtab

Description
GET - Default route called to load entity tabs from show page

Methods


start( data )

Description
Called at route start
Parameters
Name Type Description
data object
Name Type Attributes Default 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 source entity
alias string Alias of relation between source entity and tab entity
isAllowed boolean false Boolean to block tab loading. Set it to true to skip default verifications

beforeValidityCheck( data )

Description
Called before checking access rights to this tab for logged user
Parameters
Name Type Description
data object
Name Type Attributes Default 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 source entity
alias string Alias of relation between source entity and tab entity
isAllowed boolean false Boolean to block tab loading. Set it to true to skip default access rights verifications

afterValidityCheck( data )

Description
Called after checking access rights, if allowed
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 source entity
alias string Alias of relation between source entity and tab entity
isAllowed boolean Now true because we're after validity check

beforeDataQuery( data )

Description
Called before querying data of tab
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 source entity
alias string Alias of relation between source entity and tab entity
isAllowed boolean Now true because we're after validity check
E_entity string Entity model name
e_entity string Prefixed entity name
entity string Entity name
dustData object <optional>
Data provided to rendered data.renderFile. If data.dustData as no value, tab's default value will be loaded using `helpers.entity.getTabData()`. Set your data to avoid execution of default.

beforeRender( data )

Description
Called before rendering 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 source entity
alias string Alias of relation between source entity and tab entity
isAllowed boolean Now true because we're after validity check
E_entity string Entity model name
e_entity string Prefixed entity name
entity string Entity name
dustData object <optional>
Data provided to rendered data.renderFile.