cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

oTable binding

Former Member
0 Likes
304

Hello

I have this JSON, which i am trying to bind to a table.

{

    "sports": [

        {

            "leagues": [

                {

                    "teams": [

                        {

                            "id": 1,

                            "location": "A",

                            "name": "A1"

                        },

                        {

                            "id": 2,

                            "location": "B",

                            "name": "B1"

                        }

                    ]

                }

            ]

        }

    ]

}

Now, how should i bind rows?

oTable.bindRows("teams");

Regards

BP

Accepted Solutions (1)

Accepted Solutions (1)

former_member91307
Contributor
0 Likes

Hi,

Use oTable.bindRows("/sports/0/leagues/0/teams");

Below example might help

JS Bin - Collaborative JavaScript Debugging</title> <link rel="icon" href="h...

Thanks and Regards, Venkatesh

Former Member
0 Likes

hello venkatesh

whats the deal with 0 ???

Regards

BP

kammaje_cis
SAP Mentor
SAP Mentor
0 Likes

Zero says that 'First Record'. You only have one record at each level except the last level.

In words

/"First record of Sports"/"First Record of Leagues"/"All records of Team"

Answers (0)