Inconsistent DataBound Behaviour
Posted: Tue Nov 17, 2015 11:49 am
2. When I have Parent Child relationship in a JSON Object then an issue regarding inconsistent data is observed. Please have a look at the below scenario:
I created the JSON as below:
{
"Demo" :
[{
"DemoName" : "Abhinav",
"Siblings" : [{"Name":"ABC1"},{"Name":"ABC12"}]
},
{
"DemoName" : "Abhinav1",
"Siblings" : [{"Name":"ABC21"},{"Name":"ABC22"}]
}]
}
My Objective is to show data as :
Page 1.
Demo Name - Abhinav
S1 Name - ABC1
S2 Name - ABC12
Page 2.
Demo Name - Abhinav1
S1 Name - ABC21
S2 Name - ABC22
Steps to Recreate the Issue.
1. In Stimulsoft Report.JS I added the Data Source as JSON and to create the structure I provided the Path of my JSON file.
2. On the MRT file Page I used the DataBound Control on full Page, then I added the Text Components and assign the Mapping.
3. But when I try to assign the source to the DataBound then it asks me to choose the source as below
1. Demo
2. Demo_Siblings
If I choose Demo as a source, then in the report 2 pages are created Which is as per expectations
But the Issue is Sibling Names are not changing with the Change in Page Number.
The Result is as below:
Page 1.
Demo Name - Abhinav
S1 Name - ABC1
S2 Name - ABC12
Page 2.
Demo Name - Abhinav1
S1 Name - ABC1
S2 Name - ABC12
I created the JSON as below:
{
"Demo" :
[{
"DemoName" : "Abhinav",
"Siblings" : [{"Name":"ABC1"},{"Name":"ABC12"}]
},
{
"DemoName" : "Abhinav1",
"Siblings" : [{"Name":"ABC21"},{"Name":"ABC22"}]
}]
}
My Objective is to show data as :
Page 1.
Demo Name - Abhinav
S1 Name - ABC1
S2 Name - ABC12
Page 2.
Demo Name - Abhinav1
S1 Name - ABC21
S2 Name - ABC22
Steps to Recreate the Issue.
1. In Stimulsoft Report.JS I added the Data Source as JSON and to create the structure I provided the Path of my JSON file.
2. On the MRT file Page I used the DataBound Control on full Page, then I added the Text Components and assign the Mapping.
3. But when I try to assign the source to the DataBound then it asks me to choose the source as below
1. Demo
2. Demo_Siblings
If I choose Demo as a source, then in the report 2 pages are created Which is as per expectations
But the Issue is Sibling Names are not changing with the Change in Page Number.
The Result is as below:
Page 1.
Demo Name - Abhinav
S1 Name - ABC1
S2 Name - ABC12
Page 2.
Demo Name - Abhinav1
S1 Name - ABC1
S2 Name - ABC12