Hi all,
I am working on SAPUI5 UploadCollection control, i am able to upload the file to sap through my SAP UI5 Application once its uploaded is completed it triggers uploadComplete Method where we get the reference number and all
if i use
oControlEvent.getParameters.responseraw
its gives me all this value
<?xml version="1.0" encoding="utf-8"?>
<entry xml:base="http://ess212.ess.local:8000/sap/opu/odata/CORDIS/ELAB_GW_SRV/" xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">
<title type="text">AttachmentsSet(LineID='',DocumentID='00155D0530221EE5968EBF553B4CC8A4',Item_ID='')</title>
<updated>2015-09-11T11:12:24Z</updated>
<category term="ELAB_GW_SRV.Attachments" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>
<link href="AttachmentsSet(LineID='',DocumentID='00155D0530221EE5968EBF553B4CC8A4',Item_ID='')" rel="self" title="Attachments"/>
<content type="image/jpeg" src="AttachmentsSet(LineID='',DocumentID='00155D0530221EE5968EBF553B4CC8A4',Item_ID='')/$value"/>
<m:properties>
<d:Employee>00901097</d:Employee>
<d:AbsenceNo/>
<d:LineID/>
<d:DocumentID>00155D0530221EE5968EBF553B4CC8A4</d:DocumentID>
<d:ArchiveID/>
<d:MimeType>image/jpeg</d:MimeType>
<d:Content/>
<d:Title>"Chrysanthemum.jpg"</d:Title>
<d:FileName>"Chrysanthemum.jpg"</d:FileName>
<d:Created_By/>
<d:Created_On>2015-09-11T12:12:25.0000000</d:Created_On>
<d:RefNumber>0000000736</d:RefNumber>
<d:AbsenceType>0200</d:AbsenceType>
<d:Item_ID/>
</m:properties>
</entry>
i just need this bit
<m:properties>
<d:Employee>00901097</d:Employee>
<d:AbsenceNo/>
<d:LineID/>
<d:DocumentID>00155D0530221EE5968EBF553B4CC8A4</d:DocumentID>
<d:ArchiveID/>
<d:MimeType>image/jpeg</d:MimeType>
<d:Content/>
<d:Title>"Chrysanthemum.jpg"</d:Title>
<d:FileName>"Chrysanthemum.jpg"</d:FileName>
<d:Created_By/>
<d:Created_On>2015-09-11T12:12:25.0000000</d:Created_On>
<d:RefNumber>0000000736</d:RefNumber>
<d:AbsenceType>0200</d:AbsenceType>
<d:Item_ID/>
</m:properties>
anybody who already worked on UploadCollection Control, please share information on how to handle oData once we receive the response
Thanks All
Regards
Adarsha