Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 845

SAPUI5 Data Binding to a SimpleForm

$
0
0

I am having issues trying to bind data to a simple form. I am using a mock server and have successfully bind data to a list/table

My manifest.json looks like this

"mock": {

     "dataSource": "mainService"

}

My mockdata(UserDetailsSet.json) looks like this

[{ "ID_PassNum": "cu001",

     "Title": "Mr",

     "Name": "Don",

     "Surname": "Ownery",

     "ResType": "SA",

     "Country": "South Africa"

}]

My SimpleForm fields looks like this

<Input value="{mock>/UserDetailsSet/0/Name}" />

<Input value="{mock>/UserDetailsSet/0/Surname}"/>

 

I have also tried this

<Input value="{mock>/UserDetailsSet/('00001')/Name}" />

<Input value="{mock>/UserDetailsSet/('00001')/Surname}"/>

 

What am I missing?


Viewing all articles
Browse latest Browse all 845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>