Report with variable number of images in databand
Posted: Fri Jun 28, 2019 8:50 am
Hi,
I have a report with a databand that displays some groups, each group can have multiple questions and answers.
So report looks like this:
Group1
Q1 A1
Group2
Q2 A2
This works fine, however is some cases the answer can be an array of base64 images and I would like have the report display these images under the question text.
For example:
Group1
Q1 A1
Group2
Q2
Image1 Image2 Image3
Is this possible?
My JSON looks like this (but can be altered):
{
Groups: [
{
Id: 1,
Name: "Group 1"
},
{
Id: 2,
Name: "Group 2"
}
],
Checks: [
{
GroupId: 1,
QuestionText: "Q1",
Answer: "A1"
},
{
GroupId: 2,
QuestionText: "Q2",
Answer: "A2"
// Could potentially be Answer: [image1, image2, image3 ]
}
]
}
I have a report with a databand that displays some groups, each group can have multiple questions and answers.
So report looks like this:
Group1
Q1 A1
Group2
Q2 A2
This works fine, however is some cases the answer can be an array of base64 images and I would like have the report display these images under the question text.
For example:
Group1
Q1 A1
Group2
Q2
Image1 Image2 Image3
Is this possible?
My JSON looks like this (but can be altered):
{
Groups: [
{
Id: 1,
Name: "Group 1"
},
{
Id: 2,
Name: "Group 2"
}
],
Checks: [
{
GroupId: 1,
QuestionText: "Q1",
Answer: "A1"
},
{
GroupId: 2,
QuestionText: "Q2",
Answer: "A2"
// Could potentially be Answer: [image1, image2, image3 ]
}
]
}