Skip to Content
0
May 21, 2020 at 10:12 AM

MDK Extension project reading result

549 Views Last edit May 28, 2020 at 09:30 AM 2 rev

Hello Experts,

We are having an MDK Extension project.

we do have a service call as below which is returning values for myEquipments Entity set

this.context.clientAPI.read("/SAPAssetManager/Services/AssetManager.service", "MyEquipments",[]).then((result)=>{

alert("result is : "+result); });

}

we just need to print the result in an alert window for which it was returning value as Objects(attached screenshot). Did try to convert the result to a string with below call

alert('Result for JSON.stringify : '+JSON.stringify(result)); for which it doesn't return any values. Can you please suggest why these JS method are not working. also we observed that if we had 2 alerts only the first alert message is executed.

Need support on this.

Attachments

capture.jpg (15.9 kB)