on 11-03-2015 10:55 AM
Hi Experts,
I have implemented GET_STREAM method to download the media entity. When I execute the service as /zservice/photo/$value media steam is getting downloaded.
I need to implement the GET_ENTITYSET method as well because this will be used in SMP Mobile and from mobile it will need to register the service by calling /zservice/photo. If this method is implemented its throwing "Invalid or no mapping to system data types found" error.
Please advise how to implement GET_ENTITYSET. Method doesn't need to return any results.
Regards,
Murthy
Hi Murthy,
Can you please suggest how you managed to achieved your requirement.
Thanks,
Laxman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You can bind property "{__metadata/media_src}" - contain ../yourEntitySet/photo/$value.
data.results[n].yourData
.__metadata/media_src.
Example
sap.ui.Image({
src: "{__metadata/media_src}"
});
OR
oButtonOpenFile = new sap.ui.commons.Button({
text: "Open",
customData: [{ key: "URL"
value: "{__metadata/media_src}"
}],
press: function(e){ window.open(e.getSource().data("URL", "blank") }
});
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.