ctrlCommList
(controller in module tri
)
Provides the common lister functionality of the system which includes:
TableMany of the function calls are forwarded to an appropriate service and where applicable the return value is returned.
ctrlCommList($scope, servSess, servREC, servCRUD);
This removes Data Object from the Table. The Data Object to remove is obtained using `oaa'
This call is forwarded to servCRUD.dropRecord. Refer there for more details.
oaa – {Object} –
The Object Access Address. A string or number determining the required record. See Record Storage for a description of oaa.
This puts the system into 'Edit' mode and activates the system Edit Controller using the Data Object obtained using `oaa'
This call is forwarded to servCRUD.editRecord. Refer there for more details.
oaa – {Object} –
The Object Access Address. A string or number determining the required record. See Record Storage for a description of oaa.
Used to provide a series of class types 'C1', 'C2', ... 'Cn' based on whether a column is shown in the list.
This value is typically used with ng-class and then referenced in the .CSS style sheets.
This provides a convenient way to format HTML table columns (<TD>) and their header (<TH>).
ix – {number} –
index of column
oCol – {Object} –
dynamic Col object
Returns a Filter object whose type matches 'state' found in oSel
and whose field value matches sFld.
Refer also to servSess.useTable.
oSel – {Object} –
object managed with servSess.useTable
sFld – {string} –
Filter name to extract
{Object}
– Filter object
Returns an array of Filter objects that match sType found in oSel. Refer
to servSess.useTable.
The returned value is cached as this function is called many times.
oSel – {Object} –
object managed with servSess.useTable
sType – {string} –
Filter type
{Object[]}
– Filter objects that match sType
Returns the Data Object collection for the specified Table.
This call is forwarded to servCRUD.getObjs and returns the value obtained thereby.
{Object[]}
– Data Object collection for the specified Table
Typically used to populate a 'select' control with values from a related Table that is updated dynamically based on the values stored in that Table.
Returns an empty list if oFil.type != 'state' or Col object for oFil.field is not located
Returns an empty list if oCol.oneOf is not defined
Else returns the servREC.getOptions return value
oFil – {Object} –
Filter object
{Object[]}
– A collection of options returned by servREC.getOptions
This returns the properties props object of current dynamic dynamic Table object.
This call is forwarded to servCRUD.getTabProp and returns the value obtained thereby.
{Object}
– Properties object of current (oTAB) object. oTAB is set to null.
Returns a collection of Col objects that match type.
This call is forwarded to servREC.getTableCols with the insertion of the $scope variable and returns the value obtained thereby.
type – {string} –
The type of column array to extract. eg '=list', '=edit'
{Object[]}
– the value returned by servREC.getTableCols
Returns whether a valid session exists. ie. The User is properly logged in and validated.
This call is forwarded to servSess.hasSession and returns the value obtained thereby.
{Boolean}
– the value returned by servSess.hasSession
Returns whether the system Edit Controller is active and in Dialog mode.
This call is forwarded to servCRUD.inDlgEdit and and returns the value obtained thereby.
{Boolean}
– true if Edit Controller is active and in Dialog mode
Returns whether the system Edit Controller is active.
This call is forwarded to servCRUD.inEdit and and returns the value obtained thereby.
{Boolean}
– true if Edit Controller is active
Returns whether sect section matches the current section.
This call is forwarded to servSess.isSect and returns the value obtained thereby.
sect – {string} –
value to match against
{Boolean}
– the value returned by servSess.isSect
This puts the system into 'Create' mode and activates the system Edit Controller.
This call is forwarded to servCRUD.makeRecord. Refer there for more details.
This call is forwarded to servREC.showListCol and the {Boolean} result returned as a {string}.
oCol – {Object} –
Col object to test
{string}
– 'true' if column should be shown else 'false'
This sets a new Table context for the List Controller.
This call is forwarded to servSess.useTable with the insertion of the $scope variable and returns the value obtained thereby.
table – {Object} –
table name (title) to find
sel – {string} –
previous/default selection (filter) context
{Boolean}
– the value returned by servSess.useTable
Internal value used to compute the next getColClass value.
Contains the current filter (selection) values which are preserved in the Table object
during the Table switch operation servSess.useTable