class sap.m.UploadCollectionItem

Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/m/UploadCollectionItem
Application Component: CA-UI5-SC

Defines a structure of the element of the 'items' aggregation.


Constructor

Constructor for a new UploadCollectionItem

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject#constructor for a general description of the syntax of the settings object.

new sap.m.UploadCollectionItem(sId?, mSettings?)
Param Type Default Value Description
sId? string

ID for the new control, will be generated automatically if no ID is provided.

mSettings? object

initial settings for the new control


Properties

Name Type Default Value Description
ariaLabelForPicture string

Aria label for the icon (or for the image).

Since: 1.30.0.

Visibility: public
contributor string

Specifies the name of the user who uploaded the file.

Visibility: public
documentId string

Specifies a unique identifier of the file (created by the application).

Visibility: public
enableDelete boolean true

Enables/Disables the Delete button. If the value is true, the Delete button is enabled and the delete function can be used. If the value is false, the delete function is not available.

Visibility: public
enableEdit boolean true

Enables/Disables the Edit button. If the value is true, the Edit button is enabled and the edit function can be used. If the value is false, the edit function is not available.

Visibility: public
fileName string

Specifies the name of the uploaded file.

Visibility: public
fileSize float

Specifies the size of the uploaded file (in megabytes).

Visibility: public
mimeType string

Specifies the MIME type of the file.

Visibility: public
selected boolean false

Defines the selected state of the UploadCollectionItem.

Since: 1.34.0.

Visibility: public
thumbnailUrl string

Specifies the URL where the thumbnail of the file is located. This can also be an SAPUI5 icon URL.

Visibility: public
uploadedDate string

Specifies the date on which the file was uploaded. The application has to define the date format.

Visibility: public
url string

Specifies the URL where the file is located. If the application doesn't provide a value for this property, the icon and the file name of the UploadCollectionItem are not clickable.

Visibility: public
visibleDelete boolean true

Show/Hide the Delete button. If the value is true, the Delete button is visible. If the value is false, the Delete button is not visible.

Visibility: public
visibleEdit boolean true

Show/Hide the Edit button. If the value is true, the Edit button is visible. If the value is false, the Edit button is not visible.

Visibility: public

Aggregations

Default Aggregation: attributes

Name Cardinality Type Description
_propertyAttributes 0..n sap.m.ObjectAttribute

Hidden aggregation for the attributes created from the deprecated properties uploadedDate, contributor and fileSize

Since: 1.30.0.

attributes (default) 0..n sap.m.ObjectAttribute

Attributes of an uploaded item, for example, 'Uploaded By', 'Uploaded On', 'File Size' attributes are displayed after an item has been uploaded. Additionally, the Active property of sap.m.ObjectAttribute is supported.
Note that if one of the deprecated properties contributor, fileSize or UploadedDate is filled in addition to this attribute, two attributes with the same title are displayed as these properties get displayed as an attribute. Example: An application passes the property ‘contributor’ with the value ‘A’ and the aggregation attributes ‘contributor’: ‘B’. As a result, the attributes ‘contributor’:’A’ and ‘contributor’:’B’ are displayed. To make sure the title does not appear twice, check if one of the properties is filled.

Since: 1.30.0.

markers 0..n sap.m.ObjectMarker

Markers of an uploaded item Markers will be displayed after an item has been uploaded But not in Edit mode

Since: 1.40.0.

statuses 0..n sap.m.ObjectStatus

Statuses of an uploaded item Statuses will be displayed after an item has been uploaded

Since: 1.30.0.


Associations

Name Cardinality Type Description
fileUploader 0..1 sap.ui.unified.FileUploader

ID of the FileUploader instance

Since: 1.30.0.


Events Overview

Event Description
deletePress

When a deletePress event handler is attached to the item and the user presses the delete button, this event is triggered. If this event is triggered, it overwrites the default delete behavior of UploadCollection and the fileDeleted event of UploadCollection is not triggered.

Since: 1.50.0.

press

This event is triggered when the user presses the filename link. If this event is provided, it overwrites the default behavior of opening the file.

Since: 1.50.0.

deletePress

When a deletePress event handler is attached to the item and the user presses the delete button, this event is triggered. If this event is triggered, it overwrites the default delete behavior of UploadCollection and the fileDeleted event of UploadCollection is not triggered.

Since: 1.50.0.

Param Type Description
oControlEvent sap.ui.base.Event
getSource sap.ui.base.EventProvider
getParameters object

press

This event is triggered when the user presses the filename link. If this event is provided, it overwrites the default behavior of opening the file.

Since: 1.50.0.

Param Type Description
oControlEvent sap.ui.base.Event
getSource sap.ui.base.EventProvider
getParameters object

Methods Overview

Method Description
addAttribute

Adds some attribute to the aggregation attributes.

addMarker

Adds some marker to the aggregation markers.

addStatus

Adds some status to the aggregation statuses.

attachDeletePress

Attaches event handler fnFunction to the deletePress event of this sap.m.UploadCollectionItem.

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.m.UploadCollectionItem itself.

When a deletePress event handler is attached to the item and the user presses the delete button, this event is triggered. If this event is triggered, it overwrites the default delete behavior of UploadCollection and the fileDeleted event of UploadCollection is not triggered.

attachPress

Attaches event handler fnFunction to the press event of this sap.m.UploadCollectionItem.

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.m.UploadCollectionItem itself.

This event is triggered when the user presses the filename link. If this event is provided, it overwrites the default behavior of opening the file.

bindAttributes

Binds aggregation attributes to model data.

See ManagedObject.bindAggregation for a detailed description of the possible properties of oBindingInfo.

bindMarkers

Binds aggregation markers to model data.

See ManagedObject.bindAggregation for a detailed description of the possible properties of oBindingInfo.

bindStatuses

Binds aggregation statuses to model data.

See ManagedObject.bindAggregation for a detailed description of the possible properties of oBindingInfo.

destroyAttributes

Destroys all the attributes in the aggregation attributes.

destroyMarkers

Destroys all the markers in the aggregation markers.

destroyStatuses

Destroys all the statuses in the aggregation statuses.

detachDeletePress

Detaches event handler fnFunction from the deletePress event of this sap.m.UploadCollectionItem.

The passed function and listener object must match the ones used for event registration.

detachPress

Detaches event handler fnFunction from the press event of this sap.m.UploadCollectionItem.

The passed function and listener object must match the ones used for event registration.

download

Downloads the item. The sap.ui.core.util.File method is used here. For further details on this method, see {sap.ui.core.util.File.save}.

sap.m.UploadCollectionItem.extend

Creates a new subclass of class sap.m.UploadCollectionItem with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.core.Element.extend.

fireDeletePress

Fires event deletePress to attached listeners.

firePress

Fires event press to attached listeners.

getAriaLabelForPicture

Gets current value of property ariaLabelForPicture.

Aria label for the icon (or for the image).

getAttributes

Gets content of aggregation attributes.

Attributes of an uploaded item, for example, 'Uploaded By', 'Uploaded On', 'File Size' attributes are displayed after an item has been uploaded. Additionally, the Active property of sap.m.ObjectAttribute is supported.
Note that if one of the deprecated properties contributor, fileSize or UploadedDate is filled in addition to this attribute, two attributes with the same title are displayed as these properties get displayed as an attribute. Example: An application passes the property ‘contributor’ with the value ‘A’ and the aggregation attributes ‘contributor’: ‘B’. As a result, the attributes ‘contributor’:’A’ and ‘contributor’:’B’ are displayed. To make sure the title does not appear twice, check if one of the properties is filled.

getContributor

Gets current value of property contributor.

Specifies the name of the user who uploaded the file.

Since 1.30 This property is deprecated; use the aggregation attributes instead. However, if the property is filled, it is displayed as an attribute. To make sure the title does not appear twice, do not use the property.
getDocumentId

Gets current value of property documentId.

Specifies a unique identifier of the file (created by the application).

getEnableDelete

Gets current value of property enableDelete.

Enables/Disables the Delete button. If the value is true, the Delete button is enabled and the delete function can be used. If the value is false, the delete function is not available.

Default value is true.

getEnableEdit

Gets current value of property enableEdit.

Enables/Disables the Edit button. If the value is true, the Edit button is enabled and the edit function can be used. If the value is false, the edit function is not available.

Default value is true.

getFileName

Gets current value of property fileName.

Specifies the name of the uploaded file.

getFileSize

Gets current value of property fileSize.

Specifies the size of the uploaded file (in megabytes).

Since 1.30 This property is deprecated; use the aggregation attributes instead.
getFileUploader

ID of the element which is the current target of the association fileUploader, or null.

getMarkers

Gets content of aggregation markers.

Markers of an uploaded item Markers will be displayed after an item has been uploaded But not in Edit mode

sap.m.UploadCollectionItem.getMetadata

Returns a metadata object for class sap.m.UploadCollectionItem.

getMimeType

Gets current value of property mimeType.

Specifies the MIME type of the file.

getSelected

Gets current value of property selected.

Defines the selected state of the UploadCollectionItem.

Default value is false.

getStatuses

Gets content of aggregation statuses.

Statuses of an uploaded item Statuses will be displayed after an item has been uploaded

getThumbnailUrl

Gets current value of property thumbnailUrl.

Specifies the URL where the thumbnail of the file is located. This can also be an SAPUI5 icon URL.

getUploadedDate

Gets current value of property uploadedDate.

Specifies the date on which the file was uploaded. The application has to define the date format.

Since 1.30 This property is deprecated; use the aggregation attributes instead.
getUrl

Gets current value of property url.

Specifies the URL where the file is located. If the application doesn't provide a value for this property, the icon and the file name of the UploadCollectionItem are not clickable.

getVisibleDelete

Gets current value of property visibleDelete.

Show/Hide the Delete button. If the value is true, the Delete button is visible. If the value is false, the Delete button is not visible.

Default value is true.

getVisibleEdit

Gets current value of property visibleEdit.

Show/Hide the Edit button. If the value is true, the Edit button is visible. If the value is false, the Edit button is not visible.

Default value is true.

indexOfAttribute

Checks for the provided sap.m.ObjectAttribute in the aggregation attributes. and returns its index if found or -1 otherwise.

indexOfMarker

Checks for the provided sap.m.ObjectMarker in the aggregation markers. and returns its index if found or -1 otherwise.

indexOfStatus

Checks for the provided sap.m.ObjectStatus in the aggregation statuses. and returns its index if found or -1 otherwise.

insertAttribute

Inserts a attribute into the aggregation attributes.

insertMarker

Inserts a marker into the aggregation markers.

insertStatus

Inserts a status into the aggregation statuses.

removeAllAttributes

Removes all the controls from the aggregation attributes.

Additionally, it unregisters them from the hosting UIArea.

removeAllMarkers

Removes all the controls from the aggregation markers.

Additionally, it unregisters them from the hosting UIArea.

removeAllStatuses

Removes all the controls from the aggregation statuses.

Additionally, it unregisters them from the hosting UIArea.

removeAttribute

Removes a attribute from the aggregation attributes.

removeMarker

Removes a marker from the aggregation markers.

removeStatus

Removes a status from the aggregation statuses.

setAriaLabelForPicture

Sets a new value for property ariaLabelForPicture.

Aria label for the icon (or for the image).

When called with a value of null or undefined, the default value of the property will be restored.

setContributor

Sets a new value for property contributor.

Specifies the name of the user who uploaded the file.

When called with a value of null or undefined, the default value of the property will be restored.

Since 1.30 This property is deprecated; use the aggregation attributes instead. However, if the property is filled, it is displayed as an attribute. To make sure the title does not appear twice, do not use the property.
setDocumentId

Sets a new value for property documentId.

Specifies a unique identifier of the file (created by the application).

When called with a value of null or undefined, the default value of the property will be restored.

setEnableDelete

Sets a new value for property enableDelete.

Enables/Disables the Delete button. If the value is true, the Delete button is enabled and the delete function can be used. If the value is false, the delete function is not available.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is true.

setEnableEdit

Sets a new value for property enableEdit.

Enables/Disables the Edit button. If the value is true, the Edit button is enabled and the edit function can be used. If the value is false, the edit function is not available.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is true.

setFileName

Sets a new value for property fileName.

Specifies the name of the uploaded file.

When called with a value of null or undefined, the default value of the property will be restored.

setFileSize

Sets a new value for property fileSize.

Specifies the size of the uploaded file (in megabytes).

When called with a value of null or undefined, the default value of the property will be restored.

Since 1.30 This property is deprecated; use the aggregation attributes instead.
setFileUploader

Sets the associated fileUploader.

setMimeType

Sets a new value for property mimeType.

Specifies the MIME type of the file.

When called with a value of null or undefined, the default value of the property will be restored.

setSelected

Sets a new value for property selected.

Defines the selected state of the UploadCollectionItem.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is false.

setThumbnailUrl

Sets a new value for property thumbnailUrl.

Specifies the URL where the thumbnail of the file is located. This can also be an SAPUI5 icon URL.

When called with a value of null or undefined, the default value of the property will be restored.

setUploadedDate

Sets a new value for property uploadedDate.

Specifies the date on which the file was uploaded. The application has to define the date format.

When called with a value of null or undefined, the default value of the property will be restored.

Since 1.30 This property is deprecated; use the aggregation attributes instead.
setUrl

Sets a new value for property url.

Specifies the URL where the file is located. If the application doesn't provide a value for this property, the icon and the file name of the UploadCollectionItem are not clickable.

When called with a value of null or undefined, the default value of the property will be restored.

setVisibleDelete

Sets a new value for property visibleDelete.

Show/Hide the Delete button. If the value is true, the Delete button is visible. If the value is false, the Delete button is not visible.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is true.

setVisibleEdit

Sets a new value for property visibleEdit.

Show/Hide the Edit button. If the value is true, the Edit button is visible. If the value is false, the Edit button is not visible.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is true.

unbindAttributes

Unbinds aggregation attributes from model data.

unbindMarkers

Unbinds aggregation markers from model data.

unbindStatuses

Unbinds aggregation statuses from model data.

addAttribute

Adds some attribute to the aggregation attributes.

Param Type DefaultValue Description
oAttribute sap.m.ObjectAttribute

The attribute to add; if empty, nothing is inserted

addMarker

Adds some marker to the aggregation markers.

Param Type DefaultValue Description
oMarker sap.m.ObjectMarker

The marker to add; if empty, nothing is inserted

addStatus

Adds some status to the aggregation statuses.

Param Type DefaultValue Description
oStatus sap.m.ObjectStatus

The status to add; if empty, nothing is inserted

attachDeletePress

Attaches event handler fnFunction to the deletePress event of this sap.m.UploadCollectionItem.

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.m.UploadCollectionItem itself.

When a deletePress event handler is attached to the item and the user presses the delete button, this event is triggered. If this event is triggered, it overwrites the default delete behavior of UploadCollection and the fileDeleted event of UploadCollection is not triggered.

Param Type DefaultValue Description
oData object

An application-specific payload object that will be passed to the event handler along with the event object when firing the event

fnFunction function(sap.ui.base.Event) : void

The function to be called when the event occurs

oListener object

Context object to call the event handler with. Defaults to this sap.m.UploadCollectionItem itself

attachPress

Attaches event handler fnFunction to the press event of this sap.m.UploadCollectionItem.

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.m.UploadCollectionItem itself.

This event is triggered when the user presses the filename link. If this event is provided, it overwrites the default behavior of opening the file.

Param Type DefaultValue Description
oData object

An application-specific payload object that will be passed to the event handler along with the event object when firing the event

fnFunction function(sap.ui.base.Event) : void

The function to be called when the event occurs

oListener object

Context object to call the event handler with. Defaults to this sap.m.UploadCollectionItem itself

bindAttributes

Binds aggregation attributes to model data.

See ManagedObject.bindAggregation for a detailed description of the possible properties of oBindingInfo.

Param Type DefaultValue Description
oBindingInfo sap.ui.base.ManagedObject.AggregationBindingInfo

The binding information

bindMarkers

Binds aggregation markers to model data.

See ManagedObject.bindAggregation for a detailed description of the possible properties of oBindingInfo.

Param Type DefaultValue Description
oBindingInfo sap.ui.base.ManagedObject.AggregationBindingInfo

The binding information

bindStatuses

Binds aggregation statuses to model data.

See ManagedObject.bindAggregation for a detailed description of the possible properties of oBindingInfo.

Param Type DefaultValue Description
oBindingInfo sap.ui.base.ManagedObject.AggregationBindingInfo

The binding information

destroyAttributes

Destroys all the attributes in the aggregation attributes.

destroyMarkers

Destroys all the markers in the aggregation markers.

destroyStatuses

Destroys all the statuses in the aggregation statuses.

detachDeletePress

Detaches event handler fnFunction from the deletePress event of this sap.m.UploadCollectionItem.

The passed function and listener object must match the ones used for event registration.

Param Type DefaultValue Description
fnFunction function(sap.ui.base.Event) : void

The function to be called, when the event occurs

oListener object

Context object on which the given function had to be called

detachPress

Detaches event handler fnFunction from the press event of this sap.m.UploadCollectionItem.

The passed function and listener object must match the ones used for event registration.

Param Type DefaultValue Description
fnFunction function(sap.ui.base.Event) : void

The function to be called, when the event occurs

oListener object

Context object on which the given function had to be called

download

Downloads the item. The sap.ui.core.util.File method is used here. For further details on this method, see {sap.ui.core.util.File.save}.

Param Type DefaultValue Description
askForLocation boolean

Decides whether to ask for a location to download or not.

sap.m.UploadCollectionItem.extend

Creates a new subclass of class sap.m.UploadCollectionItem with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.core.Element.extend.

Param Type DefaultValue Description
sClassName string

Name of the class being created

oClassInfo object

Object literal with information about the class

FNMetaImpl function

Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class

fireDeletePress

Fires event deletePress to attached listeners.

Param Type DefaultValue Description
mParameters object

Parameters to pass along with the event

firePress

Fires event press to attached listeners.

Param Type DefaultValue Description
mParameters object

Parameters to pass along with the event

getAriaLabelForPicture

Gets current value of property ariaLabelForPicture.

Aria label for the icon (or for the image).

getAttributes

Gets content of aggregation attributes.

Attributes of an uploaded item, for example, 'Uploaded By', 'Uploaded On', 'File Size' attributes are displayed after an item has been uploaded. Additionally, the Active property of sap.m.ObjectAttribute is supported.
Note that if one of the deprecated properties contributor, fileSize or UploadedDate is filled in addition to this attribute, two attributes with the same title are displayed as these properties get displayed as an attribute. Example: An application passes the property ‘contributor’ with the value ‘A’ and the aggregation attributes ‘contributor’: ‘B’. As a result, the attributes ‘contributor’:’A’ and ‘contributor’:’B’ are displayed. To make sure the title does not appear twice, check if one of the properties is filled.

getContributor

Gets current value of property contributor.

Specifies the name of the user who uploaded the file.

Since 1.30 This property is deprecated; use the aggregation attributes instead. However, if the property is filled, it is displayed as an attribute. To make sure the title does not appear twice, do not use the property.

getDocumentId

Gets current value of property documentId.

Specifies a unique identifier of the file (created by the application).

getEnableDelete

Gets current value of property enableDelete.

Enables/Disables the Delete button. If the value is true, the Delete button is enabled and the delete function can be used. If the value is false, the delete function is not available.

Default value is true.

getEnableEdit

Gets current value of property enableEdit.

Enables/Disables the Edit button. If the value is true, the Edit button is enabled and the edit function can be used. If the value is false, the edit function is not available.

Default value is true.

getFileName

Gets current value of property fileName.

Specifies the name of the uploaded file.

getFileSize

Gets current value of property fileSize.

Specifies the size of the uploaded file (in megabytes).

Since 1.30 This property is deprecated; use the aggregation attributes instead.

getFileUploader

ID of the element which is the current target of the association fileUploader, or null.

getMarkers

Gets content of aggregation markers.

Markers of an uploaded item Markers will be displayed after an item has been uploaded But not in Edit mode

sap.m.UploadCollectionItem.getMetadata

Returns a metadata object for class sap.m.UploadCollectionItem.

getMimeType

Gets current value of property mimeType.

Specifies the MIME type of the file.

getSelected

Gets current value of property selected.

Defines the selected state of the UploadCollectionItem.

Default value is false.

getStatuses

Gets content of aggregation statuses.

Statuses of an uploaded item Statuses will be displayed after an item has been uploaded

getThumbnailUrl

Gets current value of property thumbnailUrl.

Specifies the URL where the thumbnail of the file is located. This can also be an SAPUI5 icon URL.

getUploadedDate

Gets current value of property uploadedDate.

Specifies the date on which the file was uploaded. The application has to define the date format.

Since 1.30 This property is deprecated; use the aggregation attributes instead.

getUrl

Gets current value of property url.

Specifies the URL where the file is located. If the application doesn't provide a value for this property, the icon and the file name of the UploadCollectionItem are not clickable.

getVisibleDelete

Gets current value of property visibleDelete.

Show/Hide the Delete button. If the value is true, the Delete button is visible. If the value is false, the Delete button is not visible.

Default value is true.

getVisibleEdit

Gets current value of property visibleEdit.

Show/Hide the Edit button. If the value is true, the Edit button is visible. If the value is false, the Edit button is not visible.

Default value is true.

indexOfAttribute

Checks for the provided sap.m.ObjectAttribute in the aggregation attributes. and returns its index if found or -1 otherwise.

Param Type DefaultValue Description
oAttribute sap.m.ObjectAttribute

The attribute whose index is looked for

indexOfMarker

Checks for the provided sap.m.ObjectMarker in the aggregation markers. and returns its index if found or -1 otherwise.

Param Type DefaultValue Description
oMarker sap.m.ObjectMarker

The marker whose index is looked for

indexOfStatus

Checks for the provided sap.m.ObjectStatus in the aggregation statuses. and returns its index if found or -1 otherwise.

Param Type DefaultValue Description
oStatus sap.m.ObjectStatus

The status whose index is looked for

insertAttribute

Inserts a attribute into the aggregation attributes.

Param Type DefaultValue Description
oAttribute sap.m.ObjectAttribute

The attribute to insert; if empty, nothing is inserted

iIndex int

The 0-based index the attribute should be inserted at; for a negative value of iIndex, the attribute is inserted at position 0; for a value greater than the current size of the aggregation, the attribute is inserted at the last position

insertMarker

Inserts a marker into the aggregation markers.

Param Type DefaultValue Description
oMarker sap.m.ObjectMarker

The marker to insert; if empty, nothing is inserted

iIndex int

The 0-based index the marker should be inserted at; for a negative value of iIndex, the marker is inserted at position 0; for a value greater than the current size of the aggregation, the marker is inserted at the last position

insertStatus

Inserts a status into the aggregation statuses.

Param Type DefaultValue Description
oStatus sap.m.ObjectStatus

The status to insert; if empty, nothing is inserted

iIndex int

The 0-based index the status should be inserted at; for a negative value of iIndex, the status is inserted at position 0; for a value greater than the current size of the aggregation, the status is inserted at the last position

removeAllAttributes

Removes all the controls from the aggregation attributes.

Additionally, it unregisters them from the hosting UIArea.

removeAllMarkers

Removes all the controls from the aggregation markers.

Additionally, it unregisters them from the hosting UIArea.

removeAllStatuses

Removes all the controls from the aggregation statuses.

Additionally, it unregisters them from the hosting UIArea.

removeAttribute

Removes a attribute from the aggregation attributes.

Param Type DefaultValue Description
vAttribute int string sap.m.ObjectAttribute

The attribute to remove or its index or id

removeMarker

Removes a marker from the aggregation markers.

Param Type DefaultValue Description
vMarker int string sap.m.ObjectMarker

The marker to remove or its index or id

removeStatus

Removes a status from the aggregation statuses.

Param Type DefaultValue Description
vStatus int string sap.m.ObjectStatus

The status to remove or its index or id

setAriaLabelForPicture

Sets a new value for property ariaLabelForPicture.

Aria label for the icon (or for the image).

When called with a value of null or undefined, the default value of the property will be restored.

Param Type DefaultValue Description
sAriaLabelForPicture string

New value for property ariaLabelForPicture

setContributor

Sets a new value for property contributor.

Specifies the name of the user who uploaded the file.

When called with a value of null or undefined, the default value of the property will be restored.

Since 1.30 This property is deprecated; use the aggregation attributes instead. However, if the property is filled, it is displayed as an attribute. To make sure the title does not appear twice, do not use the property.
Param Type DefaultValue Description
sContributor string

New value for property contributor

setDocumentId

Sets a new value for property documentId.

Specifies a unique identifier of the file (created by the application).

When called with a value of null or undefined, the default value of the property will be restored.

Param Type DefaultValue Description
sDocumentId string

New value for property documentId

setEnableDelete

Sets a new value for property enableDelete.

Enables/Disables the Delete button. If the value is true, the Delete button is enabled and the delete function can be used. If the value is false, the delete function is not available.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is true.

Param Type DefaultValue Description
bEnableDelete boolean true

New value for property enableDelete

setEnableEdit

Sets a new value for property enableEdit.

Enables/Disables the Edit button. If the value is true, the Edit button is enabled and the edit function can be used. If the value is false, the edit function is not available.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is true.

Param Type DefaultValue Description
bEnableEdit boolean true

New value for property enableEdit

setFileName

Sets a new value for property fileName.

Specifies the name of the uploaded file.

When called with a value of null or undefined, the default value of the property will be restored.

Param Type DefaultValue Description
sFileName string

New value for property fileName

setFileSize

Sets a new value for property fileSize.

Specifies the size of the uploaded file (in megabytes).

When called with a value of null or undefined, the default value of the property will be restored.

Since 1.30 This property is deprecated; use the aggregation attributes instead.
Param Type DefaultValue Description
fFileSize float

New value for property fileSize

setFileUploader

Sets the associated fileUploader.

Param Type DefaultValue Description
oFileUploader sap.ui.core.ID sap.ui.unified.FileUploader

ID of an element which becomes the new target of this fileUploader association; alternatively, an element instance may be given

setMimeType

Sets a new value for property mimeType.

Specifies the MIME type of the file.

When called with a value of null or undefined, the default value of the property will be restored.

Param Type DefaultValue Description
sMimeType string

New value for property mimeType

setSelected

Sets a new value for property selected.

Defines the selected state of the UploadCollectionItem.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is false.

Param Type DefaultValue Description
bSelected boolean false

New value for property selected

setThumbnailUrl

Sets a new value for property thumbnailUrl.

Specifies the URL where the thumbnail of the file is located. This can also be an SAPUI5 icon URL.

When called with a value of null or undefined, the default value of the property will be restored.

Param Type DefaultValue Description
sThumbnailUrl string

New value for property thumbnailUrl

setUploadedDate

Sets a new value for property uploadedDate.

Specifies the date on which the file was uploaded. The application has to define the date format.

When called with a value of null or undefined, the default value of the property will be restored.

Since 1.30 This property is deprecated; use the aggregation attributes instead.
Param Type DefaultValue Description
sUploadedDate string

New value for property uploadedDate

setUrl

Sets a new value for property url.

Specifies the URL where the file is located. If the application doesn't provide a value for this property, the icon and the file name of the UploadCollectionItem are not clickable.

When called with a value of null or undefined, the default value of the property will be restored.

Param Type DefaultValue Description
sUrl string

New value for property url

setVisibleDelete

Sets a new value for property visibleDelete.

Show/Hide the Delete button. If the value is true, the Delete button is visible. If the value is false, the Delete button is not visible.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is true.

Param Type DefaultValue Description
bVisibleDelete boolean true

New value for property visibleDelete

setVisibleEdit

Sets a new value for property visibleEdit.

Show/Hide the Edit button. If the value is true, the Edit button is visible. If the value is false, the Edit button is not visible.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is true.

Param Type DefaultValue Description
bVisibleEdit boolean true

New value for property visibleEdit

unbindAttributes

Unbinds aggregation attributes from model data.

unbindMarkers

Unbinds aggregation markers from model data.

unbindStatuses

Unbinds aggregation statuses from model data.