sap.ui.comp.smarttable.SmartTable.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.comp.smarttable.SmartTable with name
sClassName
and enriches it with the information contained in
oClassInfo
.
oClassInfo
might contain the same kind of information as described in sap.m.VBox.extend.
Parameters:
{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 |
Returns:
{function} | Created class / constructor function |
Returns a metadata object for class sap.ui.comp.smarttable.SmartTable.
Returns:
applyVariant(oVariantJSON, sContext)
Interface function for SmartVariantManagment control, sets the current variant
Parameters:
{Object} | oVariantJSON | the variants json |
{string} | sContext | describes the context in which the apply was executed |
Attaches event handler
fnFunction
to the
afterVariantApply
event of this
sap.ui.comp.smarttable.SmartTable
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.ui.comp.smarttable.SmartTable
itself.
Event fired after a variant has been applied.
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 be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.comp.smarttable.SmartTable itself |
- Since:
- 1.28.0
Returns:
Attaches event handler
fnFunction
to the
afterVariantInitialise
event of this
sap.ui.comp.smarttable.SmartTable
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.ui.comp.smarttable.SmartTable
itself.
Event fired after variant management in the SmartTable has been initialized.
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 be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.comp.smarttable.SmartTable itself |
- Since:
- 1.28.0
Returns:
Attaches event handler
fnFunction
to the
afterVariantSave
event of this
sap.ui.comp.smarttable.SmartTable
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.ui.comp.smarttable.SmartTable
itself.
Event fired after a variant has been saved. This event can be used to retrieve the ID of the saved variant.
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 be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.comp.smarttable.SmartTable itself |
- Since:
- 1.28.0
Returns:
Attaches event handler
fnFunction
to the
beforeRebindTable
event of this
sap.ui.comp.smarttable.SmartTable
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.ui.comp.smarttable.SmartTable
itself.
Event fired just before the binding is being done.
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 be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.comp.smarttable.SmartTable itself |
- Since:
- 1.26.0
Returns:
Attaches event handler
fnFunction
to the
dataReceived
event of this
sap.ui.comp.smarttable.SmartTable
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.ui.comp.smarttable.SmartTable
itself.
Event fired when data is received after binding. The event is fired if the binding for the table is done by the SmartTable itself.
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 be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.comp.smarttable.SmartTable itself |
- Since:
- 1.28.0
Returns:
Attaches event handler
fnFunction
to the
editToggled
event of this
sap.ui.comp.smarttable.SmartTable
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.ui.comp.smarttable.SmartTable
itself.
Event fired when display/edit button is clicked.
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 be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.comp.smarttable.SmartTable itself |
- Since:
- 1.28.0
Returns:
Attaches event handler
fnFunction
to the
fieldChange
event of this
sap.ui.comp.smarttable.SmartTable
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.ui.comp.smarttable.SmartTable
itself.
Event fired when an editable field, created internally by the SmartTable control, is changed.
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 be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.comp.smarttable.SmartTable itself |
- Since:
- 1.34.0
Returns:
Attaches event handler
fnFunction
to the
initialise
event of this
sap.ui.comp.smarttable.SmartTable
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.ui.comp.smarttable.SmartTable
itself.
Event fired once the control has been initialized.
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 be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.comp.smarttable.SmartTable itself |
- Since:
- 1.26.0
Returns:
Attaches event handler
fnFunction
to the
showOverlay
event of this
sap.ui.comp.smarttable.SmartTable
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.ui.comp.smarttable.SmartTable
itself.
Event fired just before the overlay is being shown.
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 be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.comp.smarttable.SmartTable itself |
- Since:
- 1.32.0
Returns:
Destroys the customToolbar in the aggregation customToolbar
.
- Since:
- 1.26.0
Returns:
Destroys the noData in the aggregation noData
.
- Since:
- 1.32.0
Returns:
Destroys the semanticKeyAdditionalControl in the aggregation semanticKeyAdditionalControl
.
- Since:
- 1.38.0
Returns:
Destroys the semanticObjectController in the aggregation semanticObjectController
.
- Since:
- 1.28.0
Returns:
Detaches event handler
fnFunction
from the
afterVariantApply
event of this
sap.ui.comp.smarttable.SmartTable
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
- Since:
- 1.28.0
Returns:
Detaches event handler
fnFunction
from the
afterVariantInitialise
event of this
sap.ui.comp.smarttable.SmartTable
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
- Since:
- 1.28.0
Returns:
Detaches event handler
fnFunction
from the
afterVariantSave
event of this
sap.ui.comp.smarttable.SmartTable
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
- Since:
- 1.28.0
Returns:
Detaches event handler
fnFunction
from the
beforeRebindTable
event of this
sap.ui.comp.smarttable.SmartTable
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
- Since:
- 1.26.0
Returns:
Detaches event handler
fnFunction
from the
dataReceived
event of this
sap.ui.comp.smarttable.SmartTable
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
- Since:
- 1.28.0
Returns:
Detaches event handler
fnFunction
from the
editToggled
event of this
sap.ui.comp.smarttable.SmartTable
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
- Since:
- 1.28.0
Returns:
Detaches event handler
fnFunction
from the
fieldChange
event of this
sap.ui.comp.smarttable.SmartTable
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
- Since:
- 1.34.0
Returns:
Detaches event handler
fnFunction
from the
initialise
event of this
sap.ui.comp.smarttable.SmartTable
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
- Since:
- 1.26.0
Returns:
Detaches event handler
fnFunction
from the
showOverlay
event of this
sap.ui.comp.smarttable.SmartTable
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
- Since:
- 1.32.0
Returns:
exit()
Cleans up the control
fetchVariant(): json
Interface function for SmartVariantManagment control, returns the current used variant data
Returns:
{json} | The currently set variant |
Fires event afterVariantApply
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.28.0
Returns:
Fires event afterVariantInitialise
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.28.0
Returns:
Fires event afterVariantSave
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.28.0
Returns:
Fires event beforeRebindTable
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.26.0
Returns:
Fires event dataReceived
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.28.0
Returns:
Fires event editToggled
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.28.0
Returns:
Fires event fieldChange
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.34.0
Returns:
Fires event initialise
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.26.0
Returns:
Fires event showOverlay
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.32.0
Returns:
getCurrentVariantId(): string
returns the id of the currently selected variant.
Returns:
{string} | id of the currently selected variant |
Gets content of aggregation
customToolbar
.
A toolbar that can be added by the user to define their own custom buttons, icons, etc. If this is specified, the SmartTable control does not create an additional toolbar, but makes use of this one.
- Since:
- 1.26.0
Returns:
getDemandPopin(): boolean
Gets current value of property
demandPopin
.
The demandPopin attribute can be set to true or false depending on whether you want to display columns as popins on the responsive table
Default value is false
.
- Since:
- 1.30.0
Returns:
{boolean} | Value of property demandPopin |
getEditable(): boolean
Gets current value of property
editable
.
This attribute can be used to specify if the controls created by the SmartTable control are editable.
Default value is false
.
- Since:
- 1.28.0
Returns:
{boolean} | Value of property editable |
getEditTogglable(): boolean
Gets current value of property
editTogglable
.
Specifies whether the editable property can be toggled via a button on the toolbar. (The automatic toggle of controls works only for the SmartField scenario)
Default value is false
.
- Since:
- 1.28.0
Returns:
{boolean} | Value of property editTogglable |
getEnableAutoBinding(): boolean
Gets current value of property
enableAutoBinding
.
When set to true, this enables automatic binding of the table using the tableBindingPath (if it exists) or entitySet property. This happens just after the initialise
event has been fired.
Default value is false
.
- Since:
- 1.28.0
Returns:
{boolean} | Value of property enableAutoBinding |
getEnableCustomFilter(): boolean
Gets current value of property
enableCustomFilter
.
Can be used to override the filter behavior. If set to true (default), instead of the filter input box a button is rendered. When pressing this button, the SmartTable control opens the filter panel directly in the table personalization dialog.
Default value is true
.
- Since:
- 1.26.0
Returns:
{boolean} | Value of property enableCustomFilter |
getEntitySet(): string
Gets current value of property
entitySet
.
The entity set name from which to fetch data and generate the columns. Note that this is not a dynamic UI5 property
- Since:
- 1.26.0
Returns:
{string} | Value of property entitySet |
getHeader(): string
Gets current value of property
header
.
Specifies header text that is shown in table
- Since:
- 1.26.0
Returns:
{string} | Value of property header |
getIgnoredFields(): string
Gets current value of property
ignoredFields
.
CSV of fields that must be ignored in the OData metadata by the SmartTable control.
Note:
No validation is done. Please ensure that you do not add spaces or special characters.
- Since:
- 1.26.0
Returns:
{string} | Value of property ignoredFields |
getIgnoreFromPersonalisation(): string
Gets current value of property
ignoreFromPersonalisation
.
CSV of fields that is not shown in the personalization dialog.
Note:
No validation is done. Please ensure that you do not add spaces or special characters.
- Since:
- 1.32.0
Returns:
{string} | Value of property ignoreFromPersonalisation |
getInitiallyVisibleFields(): string
Gets current value of property
initiallyVisibleFields
.
CSV of fields that must be shown initially in the SmartTable as visible columns and in the order specified.
This property is mainly meant to be used when no LineItem annotation exists.
If you have fields in the XMLView they are always shown first; then, the columns are added based on the LineItem annotation and finally based on this property.
Note:
If both this property and the LineItem annotation exist, the order of fields cannot be guaranteed to be as mentioned here.
No validation is done. Please ensure that you do not add spaces or special characters.
- Since:
- 1.32.0
Returns:
{string} | Value of property initiallyVisibleFields |
Gets content of aggregation
noData
.
The value for the noData aggregation can be either a string value or a control instance.
The control is shown, in case there is no data for the Table available. In case of a string value this will simply replace the no data text.
Currently the Responsive Table only supports string values.
- Since:
- 1.32.0
Returns:
getPersistencyKey(): string
Gets current value of property
persistencyKey
.
Key used to access personalization data.
- Since:
- 1.26.0
Returns:
{string} | Value of property persistencyKey |
getRequestAtLeastFields(): string
Gets current value of property
requestAtLeastFields
.
CSV of fields that must be always requested from the backend
This property is mainly meant to be used when there is no PresentationVariant annotation.
If both this property and the PresentationVariant annotation exist, the select request sent to the backend would be a combination of both.
Note:
This property has no effect when AnalyticalTable is used.
No validation is done. Please ensure that you do not add spaces or special characters.
- Since:
- 1.32.0
Returns:
{string} | Value of property requestAtLeastFields |
Gets content of aggregation
semanticKeyAdditionalControl
.
Allows users to specify an additional control that will be added to a VBox for the first semantic key field.
Note:
This property is not meant for public use.
- Since:
- 1.38.0
Returns:
Gets content of aggregation
semanticObjectController
.
The Semantic Object Controller allows the user to specify and overwrite functionality for semantic object navigation.
- Since:
- 1.28.0
Returns:
getShowFullScreenButton(): boolean
Gets current value of property
showFullScreenButton
.
Controls the visibility of the FullScreen button.
Default value is false
.
- Since:
- 1.38
Returns:
{boolean} | Value of property showFullScreenButton |
getShowRowCount(): boolean
Gets current value of property
showRowCount
.
If the showRowCount attribute is set to true number of rows is shown along with the header text.
Default value is true
.
- Since:
- 1.26.0
Returns:
{boolean} | Value of property showRowCount |
getShowTablePersonalisation(): boolean
Gets current value of property
showTablePersonalisation
.
The showTablePersonalisation attribute can be set to true or false for controlling the visibility of the TablePersonalisation button.
Default value is true
.
- Since:
- 1.38.0
Returns:
{boolean} | Value of property showTablePersonalisation |
getShowVariantManagement(): boolean
Gets current value of property
showVariantManagement
.
The showVariantManagement attribute can be set to true or false for controlling the visibility of VariantManagement button.
Default value is true
.
- Since:
- 1.38.0
Returns:
{boolean} | Value of property showVariantManagement |
getSmartFilterId(): string
Gets current value of property
smartFilterId
.
ID of the corresponding SmartFilter control; When specified, the SmartTable searches for the SmartFilter (also in the closest parent View) and attaches to the relevant events of the SmartFilter; to fetch data, show overlay etc.
- Since:
- 1.26.0
Returns:
{string} | Value of property smartFilterId |
ID of the element which is the current target of the association smartVariant
, or null
.
- Since:
- 1.38
Returns:
getTable(): object
returns the internally used table object
Returns:
getTableBindingPath(): string
Gets current value of property
tableBindingPath
.
This attribute can be used to specify the path that is used during the binding of the table. If not specified, the entitySet attribute is used instead. (used only if binding is established internally/automatically - See enableAutoBinding)
- Since:
- 1.28.0
Returns:
{string} | Value of property tableBindingPath |
Gets current value of property
tableType
.
Specifies the type of table to be created in the SmartTable control.
Note:
If you add a table to the content of the SmartTable in the view, this property has no effect.
- Since:
- 1.26.0
Returns:
getToolbarStyleClass(): string
Gets current value of property
toolbarStyleClass
.
A style class which is defined for the toolbar of the table.
- Since:
- 1.26.0
Returns:
{string} | Value of property toolbarStyleClass |
getUseExportToExcel(): boolean
Gets current value of property
useExportToExcel
.
Can be set to true or false depending on whether you want to export data to MS Excel®.
Default value is true
.
- Since:
- 1.26.0
Returns:
{boolean} | Value of property useExportToExcel |
getUseTablePersonalisation(): boolean
Gets current value of property
useTablePersonalisation
.
The useTablePersonalisation attribute can be set to true or false depending on whether you want to define personalized table settings. If you want to persist the table personalization, you need to specify the persistencyKey property.
Default value is true
.
- Since:
- 1.26.0
Returns:
{boolean} | Value of property useTablePersonalisation |
getUseVariantManagement(): boolean
Gets current value of property
useVariantManagement
.
The useVariantManagement attribute can be set to true or false depending on whether you want to use variants. As a prerequisite you need to specify the persistencyKey property.
Default value is true
.
- Since:
- 1.26.0
Returns:
{boolean} | Value of property useVariantManagement |
rebindTable(bForceRebind)
This can be used to trigger binding on the table used in the SmartTable
Parameters:
{boolean} | bForceRebind | force bind call to be triggered on the inner table |
setCurrentVariantId(sVariantId)
Set the current variant according to the sVariantId. In case an empty string or null or undefined was passed the STANDARD will be set. STANDARD will also be set, in case the passed sVariantId could not be found. In case neither a flexibility variant, nor the content for the standard variant could not be obtained, nor the personalisable control obtained nothing will be executed/changed
Parameters:
{string} | sVariantId | id of the currently selected variant |
Sets the aggregated customToolbar
.
Parameters:
- Since:
- 1.26.0
Returns:
Sets a new value for property
demandPopin
.
The demandPopin attribute can be set to true or false depending on whether you want to display columns as popins on the responsive table
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bDemandPopin | New value for property demandPopin |
- Since:
- 1.30.0
Returns:
Sets a new value for property
editable
.
This attribute can be used to specify if the controls created by the SmartTable control are editable.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bEditable | New value for property editable |
- Since:
- 1.28.0
Returns:
Sets a new value for property
editTogglable
.
Specifies whether the editable property can be toggled via a button on the toolbar. (The automatic toggle of controls works only for the SmartField scenario)
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bEditTogglable | New value for property editTogglable |
- Since:
- 1.28.0
Returns:
Sets a new value for property
enableAutoBinding
.
When set to true, this enables automatic binding of the table using the tableBindingPath (if it exists) or entitySet property. This happens just after the initialise
event has been fired.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bEnableAutoBinding | New value for property enableAutoBinding |
- Since:
- 1.28.0
Returns:
Sets a new value for property
enableCustomFilter
.
Can be used to override the filter behavior. If set to true (default), instead of the filter input box a button is rendered. When pressing this button, the SmartTable control opens the filter panel directly in the table personalization dialog.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bEnableCustomFilter | New value for property enableCustomFilter |
- Since:
- 1.26.0
Returns:
setEntitySet(sEntitySetName)
The entity set name from OData metadata, with which the table should be bound to
Parameters:
{string} | sEntitySetName | The entity set |
Sets a new value for property
header
.
Specifies header text that is shown in table
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sHeader | New value for property header |
- Since:
- 1.26.0
Returns:
Sets a new value for property
ignoredFields
.
CSV of fields that must be ignored in the OData metadata by the SmartTable control.
Note:
No validation is done. Please ensure that you do not add spaces or special characters.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sIgnoredFields | New value for property ignoredFields |
- Since:
- 1.26.0
Returns:
Sets a new value for property
ignoreFromPersonalisation
.
CSV of fields that is not shown in the personalization dialog.
Note:
No validation is done. Please ensure that you do not add spaces or special characters.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sIgnoreFromPersonalisation | New value for property ignoreFromPersonalisation |
- Since:
- 1.32.0
Returns:
Sets a new value for property
initiallyVisibleFields
.
CSV of fields that must be shown initially in the SmartTable as visible columns and in the order specified.
This property is mainly meant to be used when no LineItem annotation exists.
If you have fields in the XMLView they are always shown first; then, the columns are added based on the LineItem annotation and finally based on this property.
Note:
If both this property and the LineItem annotation exist, the order of fields cannot be guaranteed to be as mentioned here.
No validation is done. Please ensure that you do not add spaces or special characters.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sInitiallyVisibleFields | New value for property initiallyVisibleFields |
- Since:
- 1.32.0
Returns:
Sets the aggregated noData
.
Parameters:
- Since:
- 1.32.0
Returns:
Sets a new value for property
persistencyKey
.
Key used to access personalization data.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sPersistencyKey | New value for property persistencyKey |
- Since:
- 1.26.0
Returns:
Sets a new value for property
requestAtLeastFields
.
CSV of fields that must be always requested from the backend
This property is mainly meant to be used when there is no PresentationVariant annotation.
If both this property and the PresentationVariant annotation exist, the select request sent to the backend would be a combination of both.
Note:
This property has no effect when AnalyticalTable is used.
No validation is done. Please ensure that you do not add spaces or special characters.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sRequestAtLeastFields | New value for property requestAtLeastFields |
- Since:
- 1.32.0
Returns:
Sets the aggregated semanticKeyAdditionalControl
.
Parameters:
- Since:
- 1.38.0
Returns:
Sets the aggregated semanticObjectController
.
Parameters:
- Since:
- 1.28.0
Returns:
Sets a new value for property
showFullScreenButton
.
Controls the visibility of the FullScreen button.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bShowFullScreenButton | New value for property showFullScreenButton |
- Since:
- 1.38
Returns:
Sets a new value for property
showRowCount
.
If the showRowCount attribute is set to true number of rows is shown along with the header text.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bShowRowCount | New value for property showRowCount |
- Since:
- 1.26.0
Returns:
Sets a new value for property
showTablePersonalisation
.
The showTablePersonalisation attribute can be set to true or false for controlling the visibility of the TablePersonalisation button.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bShowTablePersonalisation | New value for property showTablePersonalisation |
- Since:
- 1.38.0
Returns:
Sets a new value for property
showVariantManagement
.
The showVariantManagement attribute can be set to true or false for controlling the visibility of VariantManagement button.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bShowVariantManagement | New value for property showVariantManagement |
- Since:
- 1.38.0
Returns:
Sets a new value for property
smartFilterId
.
ID of the corresponding SmartFilter control; When specified, the SmartTable searches for the SmartFilter (also in the closest parent View) and attaches to the relevant events of the SmartFilter; to fetch data, show overlay etc.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sSmartFilterId | New value for property smartFilterId |
- Since:
- 1.26.0
Returns:
Sets the associated smartVariant
.
Parameters:
{sap.ui.core.Control} | oSmartVariant | Id of an element which becomes the new target of this smartVariant association; alternatively, an element instance may be given |
- Since:
- 1.38
Returns:
Sets a new value for property
tableBindingPath
.
This attribute can be used to specify the path that is used during the binding of the table. If not specified, the entitySet attribute is used instead. (used only if binding is established internally/automatically - See enableAutoBinding)
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sTableBindingPath | New value for property tableBindingPath |
- Since:
- 1.28.0
Returns:
Sets a new value for property
tableType
.
Specifies the type of table to be created in the SmartTable control.
Note:
If you add a table to the content of the SmartTable in the view, this property has no effect.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
- Since:
- 1.26.0
Returns:
Sets a new value for property
toolbarStyleClass
.
A style class which is defined for the toolbar of the table.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sToolbarStyleClass | New value for property toolbarStyleClass |
- Since:
- 1.26.0
Returns:
Sets a new value for property
useExportToExcel
.
Can be set to true or false depending on whether you want to export data to MS Excel®.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bUseExportToExcel | New value for property useExportToExcel |
- Since:
- 1.26.0
Returns:
Sets a new value for property
useTablePersonalisation
.
The useTablePersonalisation attribute can be set to true or false depending on whether you want to define personalized table settings. If you want to persist the table personalization, you need to specify the persistencyKey property.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bUseTablePersonalisation | New value for property useTablePersonalisation |
- Since:
- 1.26.0
Returns:
Sets a new value for property
useVariantManagement
.
The useVariantManagement attribute can be set to true or false depending on whether you want to use variants. As a prerequisite you need to specify the persistencyKey property.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bUseVariantManagement | New value for property useVariantManagement |
- Since:
- 1.26.0
Returns:
updateTableHeaderState()
This can be called once data is received to update table header (count) and toolbar buttons(e.g. Excel Export) enabled state
getUseOnlyOneSolidToolbar(): boolean
Gets current value of property
useOnlyOneSolidToolbar
.
If set to true, the standard toolbar and custom toolbar will be merged into one toolbar. The combined toolbar will have a solid style.
Default value is false
.
- Deprecated:
- Since 1.29. This property has no effect
- Since:
- 1.26.0
Returns:
{boolean} | Value of property useOnlyOneSolidToolbar |
Sets a new value for property
useOnlyOneSolidToolbar
.
If set to true, the standard toolbar and custom toolbar will be merged into one toolbar. The combined toolbar will have a solid style.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bUseOnlyOneSolidToolbar | New value for property useOnlyOneSolidToolbar |
- Deprecated:
- Since 1.29. This property has no effect
- Since:
- 1.26.0
Returns: