Skip to Content
0
Jul 10, 2020 at 10:20 AM

SAPUI5 oDataModel getProperty method not working because the GUID filed

141 Views

Hi,Expert:

I got a issue when I try to get the data of SAPUI5 ODataModel by getProperty method:

var myModel = this.getView().byId("UploadCollection").getModel();
			 
var itemData = myModel.getProperty("/FileSet");

it dosen't work and I debug and check the oData ,it is not only "FileSet" but "FileSet(guid'f8f21e62-b7e0-1eda-b0b7-3df17b7bf6c1')" -- the guid is added at the end.


and it should be only "FileSet",like below,only "data"

and below is the table which used to create the OData service:

Attachments

1594376137446.png (55.4 kB)
1594376204716.png (33.7 kB)
1594376328652.png (44.9 kB)