Page 1 of 1

issues using json data with databand

Posted: Fri Jul 31, 2020 11:57 am
by AnthonyClarke
Good Afternoon i'm hoping someone can provide assistance I have json data-source i have imported into the Stimulsoft Designer version 2020.3.2.


I can see that on import it has separated the children of the order item.
json data srouce.PNG
json data srouce.PNG (2.85 KiB) Viewed 3805 times
I have encountered an issue where trying to create a report using a data band using the order item as a data source appears to ignore the differing sizes defaulting the sizes displayed to be the ones of the first size available in the order_item_quantity.
databand item preview.PNG
databand item preview.PNG (33.32 KiB) Viewed 3805 times
changing the data band
databand item quantity preview.PNG
databand item quantity preview.PNG (34.96 KiB) Viewed 3805 times
source to be the item quantity provides information from the first product for every size displayed.

i have tried to make a relationship between the two sources however nothing appears to have changed. is there something i am doing incorrectly or do we need to make a change to the json data.

I have attached an the report and the json of the sales order.

Re: issues using json data with databand

Posted: Fri Jul 31, 2020 12:56 pm
by Lech Kulikowski
Hello,

In that case, you can use master-detail construction and set DataRelation and MasterComponent properties.
https://www.stimulsoft.com/en/documenta ... _lists.htm

Thank you.

Re: issues using json data with databand

Posted: Fri Jul 31, 2020 1:48 pm
by AnthonyClarke
perfect thank you.

I also found that i didn't use the relationship properly and just referenced the field from the wrong place, but this makes sense thank you very much.

Re: issues using json data with databand

Posted: Sun Aug 02, 2020 9:39 am
by Lech Kulikowski
Hello

We are always glad to help you!

Thank you.