Class sap.ui.table.TablePersoControllerModule: sap/ui/table/TablePersoController
The TablePersoController can be used to connect a table with a persistence service.
Since: 1.21.1.
sClassName
and enriches it with the information contained in oClassInfo
. Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.
The supported settings are:
- Properties
- autoSave : boolean (default: true)
- persoService : any
- customDataKey : string (default: persoKey)
In addition, all settings applicable to the base type sap.ui.base.ManagedObject can be used as well.
{string} | sId? | id for the new control, generated automatically if no id is given |
{object} | mSettings? | initial settings for the new control |
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.ui.base.ManagedObject.extend.
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
{function} | Created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
autoSave
. Auto save state
Default value is true
.
{boolean} | Value of property autoSave |
customDataKey
. By defining a custom data key the TablePersoController
will try to get the key for saving the perso data from the custom data of the Table and Column instead of creating it by concatenating the ID of the Table and the Column. Basically this will be more stable than using the auto IDs.
Default value is persoKey
.
{string} | Value of property customDataKey |
persoService
. Personalization Service object. Needs to have the following methods:
- getPersData() :
jQuery Promise
(http://api.jquery.com/promise/) - setPersData(oBundle) :
jQuery Promise
(http://api.jquery.com/promise/) - delPersData() :
jQuery Promise
(http://api.jquery.com/promise/)
{any} | Value of property persoService |
table
, or null
. {sap.ui.table.Table} |
Using this functionality will require to load the sap.m library because the personalization dialog is only available in this library for now.
Experimental API:since 1.21.2 - API might change / feature requires the sap.m library!
{object} | mSettings |
- Experimental:
- since 1.21.2 - API might change / feature requires the sap.m library!
{jQuery.Promise} | jQuery Promise which is resolved once the refresh is finished |
{jQuery.Promise} | jQuery Promise which is resolved once the save is finished |
autoSave
. Auto save state
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bAutoSave | New value for property autoSave |
{sap.ui.table.TablePersoController} | Reference to this in order to allow method chaining |
customDataKey
. By defining a custom data key the TablePersoController
will try to get the key for saving the perso data from the custom data of the Table and Column instead of creating it by concatenating the ID of the Table and the Column. Basically this will be more stable than using the auto IDs.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is persoKey
.
{string} | sCustomDataKey | New value for property customDataKey |
{sap.ui.table.TablePersoController} | Reference to this in order to allow method chaining |
persoService
. Personalization Service object. Needs to have the following methods:
- getPersData() :
jQuery Promise
(http://api.jquery.com/promise/) - setPersData(oBundle) :
jQuery Promise
(http://api.jquery.com/promise/) - delPersData() :
jQuery Promise
(http://api.jquery.com/promise/)
When called with a value of null
or undefined
, the default value of the property will be restored.
{any} | oPersoService | New value for property persoService |
{sap.ui.table.TablePersoController} | Reference to this in order to allow method chaining |
table
. {sap.ui.table.Table} | oTable | Id of an element which becomes the new target of this table association; alternatively, an element instance may be given |
{sap.ui.table.TablePersoController} | Reference to this in order to allow method chaining |