on 06-18-2015 8:26 AM
Hi Frinds,
I am just trying to bind a text view from a model shown below.Its a Json model.
{
firstName: "John",
lastName: "Doe",
birthday: {day:"01",month:"05",year:"1982"},
address:[{city1:"Heidelberg1"} ,
{city2:"Heidelberg2"} ],
enabled: true
};
I have taken 3 test views, I am able to bind first two like this
"text": "{/firstName}",
"text": "{/birthday/day}",
Here i want to bind city1 to 3rd text view. I have tried like "text": "{/address[0]/city}". But it is not working ..
it may be simple but i am not able to do it.please give me your suggestion.
try {/address/0/city1}
it maybe a typo in your model, I am not sure if it is city: Heidelberg1 or city1: Heidelberg1
-D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.