Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3353

Enable other SAPUI5 controls to trigger fileRenamed event of the UploadCollection control

$
0
0

Hello everyone,

 

I'm currently working with the UploadCollection control, there's a fileRenamed event which is responsible for renaming the attachments, but it could only be triggered when the user clicks any UploadCollection areas, what I'd like to happen is to allow user rename the attachment, then click say the header control of the detail page, which also triggers the fileRenamed event, got the file name renamed. Is that possible? Here's what I tried so far:

 

Do this in the onAfterRendering method:


jQuery.sap.byId(this.getView().getId()).bind("click", jQuery.proxy(this.onFileRenamed, this));

 

But that will cause error as there's no getParameter method in the 'regular' click event...

onFileRenamed: function(oEvent) {

   var newFileName = oEvent.getParameter("fileName");


 



Viewing all articles
Browse latest Browse all 3353

Trending Articles