Hello All,
I have two requirements with respect to FileUpload UI element in webdynpro abap.
1. when click on browser button of FileUpload UI element and select the file, display a message if the selected file is other than word, pdf, ppt & excel. Is there any way that we can have an event or some other way to see if the selected file is not expected one and display message. This should happen only after a file is selected.
2. Since requirement is to Upload multiple file, i have created a link using LinkToAction UI element which will create FileUpload UI element dynamically and bind it to context node. I have done this way:
a. first create context node "File_Upload" with 4 attributes file_name, file_type, file_size & file_content. (Cardinality 1:1)
b. second created FileUpload UI element and bind its property
file name with file_name attribute
data source with file_content
mime type with file_type.
Above steps are working fine in case of single file uploading. So to have multiple file upload i have chosen the dynamic creation of FileUplaod UI element. To do so:
c. created link using LinkToAction UI element which when click will dynamically create FileUpload UI element.
d. when above link is created the dynamically created UI element is bind to above context.
But when i read file details from File_Upload context, only one file is shown which was selected for the First FileUpload UI element.
so how can i solve selection of multiple file Upload issue.
Thanks
Regards