cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 control sap.m.UploadCollection does not react to dynamic change in property "instantUpload"

b_punith
Participant

Hello Community,

It's about the UI5 control sap.m.UploadCollection,
The issue I am facing is unlike other boolean properties of sap.m.UploadCollection if I am setting the "instantUpload" property value to be dynamic, let's say "{= ${appMode} !== 'create'}" the control sap.m.UploadCollection does not react to the property change dynamically instead it always behaves for the property value it is at initial rendering time.

Even setting/changing it via controller after rendering also does not seems to work. Has anyone faced this similar issue ?

UI version: 1.44

No Errors in Console

Regards,
Punith

Accepted Solutions (1)

Accepted Solutions (1)

maheshpalavalli
Active Contributor

HI punith_developer,

it looks like this is not supported by sap.

The only choice you have is to use either instantUpload true or false for the whole application. Else you could use a reusable fragment and instantiate is as per your scenario.

BR,

Mahesh

b_punith
Participant
0 Kudos

Okay, I wonder why I didn't get the console logged with this message while I used setInstantUpload function. May be I will check this out in debug. Thanks @mahesh kumar palavalli for the answer.

I have already implemented a similar solution of having two UploadCollection controls and controlling them with the visibility.

Regards,

Punith

Answers (1)

Answers (1)

WouterLemaire
Active Contributor
0 Kudos

I suggest to upgrade the UI version to one of the latest stable version with long-term maintenance: https://sapui5.hana.ondemand.com/versionoverview.html

I know it is not ideal and using bindings is definitely better, but have you tried to use the function to change this property? https://ui5.sap.com/#/api/sap.m.UploadCollection%23methods/setInstantUpload

Kr, Wouter

0 Kudos

Hello Wouter,

As Mahesh mentioned above, the method setInstantUpload is not actually implemented, hence it's not working.