Upload Collection - for File Attachments
Properties of Upload Collection
- Id - unique identifier of the control
- Items - assign {/Attachments}
- On Upload - by default, assign the FAB pre-delivered Javascript Function "fabHandleFileUpload(evt)"
- On Upload Complete - by default, assign the FAB pre-delivered Javascript Function "fabOnFileUploadComplete(evt)"
- On Delete - by default, assign the FAB pre-delivered Javascript Function "fabOnFileDeleted(evt)"
Advanced - properties of the control not available in the above list can be added here.
Setting Additional Properties provides further information about the Advanced property
Properties of Upload Collection Item
- File Name - filename structure and by default assign {Objdes}.{FileExt}
- URL - URL of the file and by default assign {UrlContent}
- Enable Edit - set a boolean value or a variable with type boolean from the Model to control if Edit File functionality will be allowed
- Visible Edit - set a boolean value or a variable with type boolean from the Model to control if the Edit File button will be visible
- Enable Delete - set a boolean value or a variable with type boolean from the Model to control if Delete File functionality will be allowed
- Visible Delete - set a boolean value or a variable with type boolean from the Model to control if Delete File button will be visible
Step-by-step guide
How to add an Upload Collection
- Right click on a Page, Form Element or from any elements under Add Layout and select Add Upload Collection
- An Upload Collection control has been added
- Right click on the Upload Collection and select Add Upload Collection Item
- An Upload Collection Item has been added
- Intial Javascript should be implemented during the load of the page
//init file uploader
var oUploadCollection = getControl("uploadCollection"); //this is the Id of the upload collection control
fabSetFileUploaderURL(oUploadCollection);
fabSetUploadCollectionItems(oUploadCollection);
The files uploaded is getting stored into the SAP Generic Object Services (GOS) repository
Related articles