cancel
Showing results for 
Search instead for 
Did you mean: 

Binding issue - first record of a deep structured table

former_member217546
Participant
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member182862
Active Contributor
0 Kudos

try {/address/0/city1}

it maybe a typo in your model, I am not sure if it is city: Heidelberg1 or city1: Heidelberg1

-D

former_member217546
Participant
0 Kudos

Hi Dennis,

"text": "{/address/0/city1}", its working in this way..

Thanks for your quick answer.. Thankyou very much

Answers (0)