concrete_rose
concrete_rose

Reputation: 198

see model data from controller in View [sap ui5]

I've created a JSON model in a controller, and I have nice data list there... but I do not know how to access this list/model via corresponding view. Help?

Upvotes: 0

Views: 3098

Answers (1)

nimpedrojo
nimpedrojo

Reputation: 56

You can set model in controller:

`sap.ui.getCore().setModel(jsonModel,"NAME");`

and get this model in View (JS view) with:

`sap.ui.getCore().getModel("NAME");`

Upvotes: 2

Related Questions