BusinessObject

Simplicite.UI. BusinessObject

Extends Simplicite.Ajax.BusinessObject with front hooks.

Constructor

new BusinessObject()

Methods

beforeLoadAgenda(ctn, obj, agd, p)

Description:
  • Front hook before loading calendar

Parameters:
Name Type Description
ctn

container

obj

Object (same as this)

agd

Agenda definition

p

parameters

beforeLoadForm(ctn, obj, p)

Description:
  • Front hook before loading form data

Parameters:
Name Type Description
ctn

Form container

obj

Object (same as this)

p

Form parameters

beforeLoadList(ctn, obj, p)

Description:
  • Front hook before loading list data

Parameters:
Name Type Description
ctn

List container

obj

Object (same as this)

p

List parameters

beforeLoadSearch(ctn, obj, p)

Description:
  • Front hook before loading search form

Parameters:
Name Type Description
ctn

Search container

obj

Object (same as this)

p

Search parameters

beforeLoadSummary(ctn, obj, p)

Description:
  • Front hook before loading summary

Parameters:
Name Type Description
ctn

Form container

obj

Object (same as this)

p

Parameters

beforeLoadTimesheet(ctn, obj, p)

Description:
  • Front hook before loading timesheet

Parameters:
Name Type Description
ctn

container

obj

Object (same as this)

p

parameters

bindHooks()

Description:
  • Bind hook functions in locals with inherited methods

displayForm(ctn, obj, p, cbk)

Description:
  • Front hook to display the form

Parameters:
Name Type Description
ctn

Form container

obj

Object (same as this)

p

Form parameters

cbk

callback when rendered

displayList(ctn, obj, p, cbk)

Description:
  • Front hook to display the list

Parameters:
Name Type Description
ctn

List container

obj

Object (same as this)

p

List parameters

cbk

callback when rendered

displayListRow(ctn, row, obj, id, p, cbk)

Description:
  • Front hook to display one list record

Parameters:
Name Type Description
ctn

List container

row

Row container (tr or div)

obj

Object (same as this)

id

Row ID

p

List parameters

cbk

callback when rendered

displaySearch(ctn, obj, p, cbk)

Description:
  • Front hook to display the search form

Parameters:
Name Type Description
ctn

Search container

obj

Object (same as this)

p

Search parameters

cbk

callback when rendered

displaySummary(ctn, mo, obj, cbk)

Description:
  • Front hook to display the object summary

Parameters:
Name Type Description
ctn

Summary container

mo

Meta object

obj

Object (same as this)

cbk

callback when rendered

hook(method, params)

Description:
  • Call a hook implementation

Parameters:
Name Type Description
method function

hook

params Array

array of parameters to apply

noRowFound(ctn, obj, rowId)

Description:
  • Front hook when record is not found (default NO_ROW_FOUND alert + list redirection)

Parameters:
Name Type Description
ctn

Form container

obj

Object (same as this)

rowId

Object row ID

onLoad(locals)

Description:
  • Front hook when object is instantiated. Useful to override locals (cloned from Simplicite.UI.Globals) properties before usage.

Parameters:
Name Type Description
locals

UI locals properties (shorthand to this.locals.ui)

onLoadAgenda(ctn, obj, agd, p)

Description:
  • Front hook when calendar is loaded

Parameters:
Name Type Description
ctn

container

obj

Object (same as this)

agd

Agenda definition

p

parameters

onLoadForm(ctn, obj, p)

Description:
  • Front hook when object form is loaded

Parameters:
Name Type Description
ctn

Form container

obj

Object (same as this)

p

Form parameters

onLoadList(ctn, obj, p)

Description:
  • Front hook when object list is loaded

Parameters:
Name Type Description
ctn

List container

obj

Object (same as this)

p

List parameters

onLoadListRow(ctn, obj, id, item, row)

Description:
  • Front hook when a list row is displayed

Parameters:
Name Type Description
ctn

List container

obj

Object (same as this)

id

Row ID

item

Row item

row

Row container (tr or div)

onLoadSearch(ctn, obj, p)

Description:
  • Front hook when object search is loaded

Parameters:
Name Type Description
ctn

Search container

obj

Object (same as this)

p

Search parameters

onLoadTimesheet(ctn, obj, ts)

Description:
  • Front hook when timesheet is loaded

Parameters:
Name Type Description
ctn

container

obj

Object (same as this)

ts

Timesheet definition

onUnloadAgenda(ctn, obj, agd, p)

Description:
  • Front hook when calendar is unloaded

Parameters:
Name Type Description
ctn

container

obj

Object (same as this)

agd

Agenda definition

p

parameters

onUnloadForm(ctn, obj, p)

Description:
  • Front hook when object form is unloaded

Parameters:
Name Type Description
ctn

Form container

obj

Object (same as this)

p

Form parameters

onUnloadList(ctn, obj, p)

Description:
  • Front hook when object list is unloaded

Parameters:
Name Type Description
ctn

List container

obj

Object (same as this)

p

List parameters

onUnloadListRow(ctn, obj, id, item, row)

Description:
  • Front hook when a list row is unloaded

Parameters:
Name Type Description
ctn

List container

obj

Object (same as this)

id

Row ID

item

Row item

row

Row container (tr or div)

onUnloadSearch(ctn, obj, p)

Description:
  • Front hook when object search is unloaded

Parameters:
Name Type Description
ctn

Search container

obj

Object (same as this)

p

Search parameters

onUnloadTimesheet(ctn, obj, ts)

Description:
  • Front hook when timesheet is unloaded

Parameters:
Name Type Description
ctn

container

obj

Object (same as this)

ts

Timesheet definition

onloadSummary(ctn, mo, obj, p)

Description:
  • Front hook when object summary is loaded

Parameters:
Name Type Description
ctn

Summary container

mo

Meta object

obj

Object (same as this)

p

Parameters

preLoadForm(ctn, obj, p)

Description:
  • Front hook before rendering form

Parameters:
Name Type Description
ctn

Form container

obj

Object (same as this)

p

Form parameters

preLoadList(ctn, obj, p)

Description:
  • Front hook before rendering list

Parameters:
Name Type Description
ctn

List container

obj

Object (same as this)

p

List parameters