Search code examples
sapui5sap-fiori

sap.m.upload.UploadSet: how to display illustrated message in no data?


I write an attachment using the control sap.m.upload.UploadSet.

When there is no attachment, it dispalys an icon with message like this:
Empty UploadSet with icon

In a sample from https://ui5.sap.com/#/entity/sap.m.upload.UploadSet, however, it displays with an illustrated message like that:
Empty UploadSet with illustration message

I compared the XML and JS code from the sample but couldn't find anything special.

How could I achieve the same effect like the sample from Demo Kit?


Solution

  • Your 1st screenshot shows the control sap.m.upload.UploadSet from an older UI5 version.

    Migrate to one of the the next maintained UI5 versions.