sap.uiext.inbox.Inbox.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.uiext.inbox.Inbox with name
sClassName
and enriches it with the information contained in
oClassInfo
.
oClassInfo
might contain the same kind of informations as described in Element.extend.
Parameters:
{string} | sClassName | name of the class to be created |
{object} | oClassInfo? | object literal with informations about the class |
{function} | FNMetaImpl? | constructor function for the metadata object. If not given, it defaults to sap.ui.core.ElementMetadata. |
Returns:
{function} | the created class / constructor function |
Returns a metadata object for class sap.uiext.inbox.Inbox.
Returns:
Adds an additional action to inbox
Parameters:
{string} | sSActionID | ID of the new action. |
{string} | sSActionLabel | The Label Text for the new action. |
{string} | sSToolTip | Tooltip for the added action. |
{object} | oFnActionHandler | Function to be called when the action is executed |
{boolean} | bBMassEnabled | Flag indicating if the action is mass enabled.Default value is true. |
Returns:
Attach event handler
fnFunction
to the 'oDataRequestCompleted' event of this
sap.uiext.inbox.Inbox
.
. When called, the context of the event handler (its
this
) will be bound to
oListener if specified otherwise to this sap.uiext.inbox.Inbox
.
itself. If handleBindings property is set to true , the control assumes an oData model is set and handles the complete logic within. In this case once the oData request is complete, this event is fired with additional parameters.
Parameters:
{object} | oData? | An application specific payload object, that will be passed to the event handler along with the event object when firing the event. |
{function} | fnFunction | The function to call, when the event occurs. |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.uiext.inbox.Inbox . itself. |
Returns:
Attach event handler
fnFunction
to the 'refresh' event of this
sap.uiext.inbox.Inbox
.
. When called, the context of the event handler (its
this
) will be bound to
oListener if specified otherwise to this sap.uiext.inbox.Inbox
.
itself. this event is fires to handle refresh Action, when the handleBindings property is set to false.
Parameters:
{object} | oData? | An application specific payload object, that will be passed to the event handler along with the event object when firing the event. |
{function} | fnFunction | The function to call, when the event occurs. |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.uiext.inbox.Inbox . itself. |
Returns:
Attach event handler
fnFunction
to the 'taskAction' event of this
sap.uiext.inbox.Inbox
.
. When called, the context of the event handler (its
this
) will be bound to
oListener if specified otherwise to this sap.uiext.inbox.Inbox
.
itself. this event is fires to handle task Actions - Claim, Release, when the handleBindings property is set to false.
Parameters:
{object} | oData? | An application specific payload object, that will be passed to the event handler along with the event object when firing the event. |
{function} | fnFunction | The function to call, when the event occurs. |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.uiext.inbox.Inbox . itself. |
Returns:
Attach event handler
fnFunction
to the 'taskSelectionChange' event of this
sap.uiext.inbox.Inbox
.
. When called, the context of the event handler (its
this
) will be bound to
oListener if specified otherwise to this sap.uiext.inbox.Inbox
.
itself. This event is fired when table row selection is changed in the list view of Inbox control
Parameters:
{object} | oData? | An application specific payload object, that will be passed to the event handler along with the event object when firing the event. |
{function} | fnFunction | The function to call, when the event occurs. |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.uiext.inbox.Inbox . itself. |
Returns:
Registers a callback function to be invoked to search on the Task Table.
Returns:
Registers a callback function to be invoked to populate the Task Execution PopUp.
Parameters:
{object} | oId | callback function for getting the execution URL, will be supplied with the task ID and should return the URL to be displayed with the Task Execution PopUp. |
{object} | oStatus | callback function for getting the status of the task, will be supplied with the task ID and should return the Task Status. |
Returns:
Bind the Inbox Task Collection
Parameters:
{string} | sPath | Binding path for the element displaying the tasks within the Inbox. This path is the Task Collection according to the TCM (Task Consumption Model) |
{object} | oOFilter | Predefined filter that is applied to the Task Collection before displaying the tasks in the Inbox. (sap.uiext.inbox.InboxFilters) |
{object} | oOSorter | {sap.ui.model.Sorter}Predefined sorter that is applied to the Task Collection before displaying the tasks in the Inbox. By default the tasks are sorted on 'CreatedOn' , descending, according to TCM. The sorter is not validated for the path being a valid TCM Entity Property. The sorter passed will be applied to the oData service as is. In case the entity Property in the path is a sortable property on the UI, the sorter indicator for that property will be visible. |
Returns:
Binds the Task Table Rows to the given path.
Parameters:
{string} | sPath | Binding path for the rows of the Task Table |
{object} | oTaskFilters | Predefined filter for the Task Table (sap.uiext.inbox.TaskInitialFilters) |
Returns:
Registers a callback function to be invoked to populate the TaskType Drill Down. This should return the array of Values to be populated in the Task Type Drill Down.
Returns:
clearDrillDownFilter(): void
Clears all the filters applied in Drill Down. (Status, Priority, Date/Time and TaskType).
clearRowSettings(): void
Row Settings applied using the Settings button shall be cleared.
Detach event handler
fnFunction
from the 'oDataRequestCompleted' event of this
sap.uiext.inbox.Inbox
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to call, when the event occurs. |
{object} | oListener | Context object on which the given function had to be called. |
Returns:
Detach event handler
fnFunction
from the 'refresh' event of this
sap.uiext.inbox.Inbox
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to call, when the event occurs. |
{object} | oListener | Context object on which the given function had to be called. |
Returns:
Detach event handler
fnFunction
from the 'taskAction' event of this
sap.uiext.inbox.Inbox
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to call, when the event occurs. |
{object} | oListener | Context object on which the given function had to be called. |
Returns:
Detach event handler
fnFunction
from the 'taskSelectionChange' event of this
sap.uiext.inbox.Inbox
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to call, when the event occurs. |
{object} | oListener | Context object on which the given function had to be called. |
Returns:
Fire event oDataRequestCompleted to attached listeners.
Parameters:
{Map} | mArguments? | the arguments to pass along with the event. |
Returns:
Fire event refresh to attached listeners.
Parameters:
{Map} | mArguments? | the arguments to pass along with the event. |
Returns:
Fire event taskAction to attached listeners.
Parameters:
{Map} | mArguments? | the arguments to pass along with the event. |
Returns:
Fire event taskSelectionChange to attached listeners.
Parameters:
{Map} | mArguments? | the arguments to pass along with the event. |
Returns:
getHandleBindings(): boolean
Getter for property
handleBindings
. set this as true for oData Model. If set as false, the user will need to handle task Actions, search and Task Execution URL population. See function call back methods.
Default value is true
Returns:
{boolean} | the value of property handleBindings |
getOpenCompletedTasks(): boolean
Getter for property
openCompletedTasks
. set this to true to enable opening of completed tasks.
Default value is false
Returns:
{boolean} | the value of property openCompletedTasks |
getSubstitutionEnabled(): boolean
Getter for property isSubstitutionEnabled.
Boolean property to enable the sap.uiext.inbox.SubstitutionRulesManager control (default is false). If is true, 'Manage Substitution Rules' is visible in settings button, else if it is false the option will not be visible under settings.
Default value is false
Returns:
getTaskExecutionURLThemeValue(): string
Getter for property
taskExecutionURLThemeValue
. set the theme URL parameter string to be appended to the task Execution URL. In case of a function callback set for Task Execution PopUp, this string will not be appended.
Default value is empty/undefined
Returns:
{string} | the value of property taskExecutionURLThemeValue |
getTaskTableBinding(): object
returns the binding for the Task Table
Returns:
refresh(aATaskUniqueIdentifiers): void
Inbox is refreshed if task is completed
Parameters:
{object[]} | aATaskUniqueIdentifiers | Array of Json objects containing TaskInstanceID and SAP__Origin |
Set configuration on Inbox. See APIs in InboxConfiguration
Parameters:
{object} | oOConfiguration | Configuration object to set the configuration on Inbox. See APIs in InboxConfiguration |
Returns:
Setter for property
handleBindings
.
Default value is true
Parameters:
{boolean} | bHandleBindings | new value for property handleBindings |
Returns:
Setter for property
openCompletedTasks
.
Default value is false
Parameters:
{boolean} | bOpenCompletedTasks | new value for property openCompletedTasks |
Returns:
setOpenTaskUIInNewTab(): void
Setter for property bOpenTaskUIInNewTab. If set to true, Task UI will opene in a new tab. Default value is false.
setSubstitutionEnabled(bIsSubstitutionEnabled, sPath): void
Setter for property isSubstitutionEnabled.
Boolean property to enable the sap.uiext.inbox.SubstitutionRulesManager control (default is false). If set to true, 'Manage Substitution Rules' is visible in settings button, else if set to false the option will not be visible under settings.
Default value is false
Parameters:
{boolean} | bIsSubstitutionEnabled | isSubstitutionEnabled |
{string} | sPath | the path |
Setter for property
taskExecutionURLThemeValue
.
Default value is empty/undefined
Parameters:
{string} | sTaskExecutionURLThemeValue | new value for property taskExecutionURLThemeValue |
Returns: