Skip to Content
0
Jun 17, 2020 at 10:11 PM

get field from a JSON

101 Views

Hi, experts.

with the following code I printed this by console

var userModel = new sap.ui.model.json.JSONModel("/services/userapi/currentUser");
sap.ui.getCore().setModel(userModel, "userapi");
console.log(userModel);

How can I get the value of the name field?

Greetings from Colombia

Attachments

fepw3.png (71.4 kB)