Two Independent Databands; Mirrors data if one is empty

Stimulsoft Ultimate discussion
Post Reply
Andreas Koetzle
Posts: 8
Joined: Fri Oct 21, 2022 5:21 am

Two Independent Databands; Mirrors data if one is empty

Post by Andreas Koetzle »

Hello special team,

if got two databands with two independent datasource (JSON).
All works well if both datasources has data.
If one of the two is empty, the other one is mirroring the data from the other datasource.

I send you my testversion and two json files. If you empty one of them and preview the data, you will see me problem.

What i am doing wrong.....

Thank you.
Attachments
Report.mrt
(6.29 KiB) Downloaded 75 times
PS.json
(81 Bytes) Downloaded 77 times
BT.json
(93 Bytes) Downloaded 74 times
Best regards
Andreas
Max Shamanov
Posts: 768
Joined: Tue Sep 07, 2021 10:11 am

Re: Two Independent Databands; Mirrors data if one is empty

Post by Max Shamanov »

Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you
#9091
Max Shamanov
Posts: 768
Joined: Tue Sep 07, 2021 10:11 am

Re: Two Independent Databands; Mirrors data if one is empty

Post by Max Shamanov »

Hello,
If one of the two is empty, the other one is mirroring the data from the other datasource.
In this case, it is the specifics of working with data. If you register data with a name different from the one in the dictionary, it can lead to problems.
In this case, if only one table is registered in the DataStore, it is taken regardless of the name.

Thank you.
Andreas Koetzle
Posts: 8
Joined: Fri Oct 21, 2022 5:21 am

Re: Two Independent Databands; Mirrors data if one is empty

Post by Andreas Koetzle »

Hello,
If you register data with a name different from the one in the dictionary...
if only one table is registered in the DataStore, it is taken regardless of the name.
I dont know what you mean, because i have two different names in the dictonary and i dont register something?


Thank you.
Best regards
Andreas
Max Shamanov
Posts: 768
Joined: Tue Sep 07, 2021 10:11 am

Re: Two Independent Databands; Mirrors data if one is empty

Post by Max Shamanov »

Hello,

If several data sources are created in the dictionary, but only one table is registered(data file added to resource, etc.) in the data source,
there will be ambiguity, because this table will be used in both data sources. This is done on purpose to avoid problems when registering data with a different name than the one in the dictionary.

In your case, when you remove one of the json for the data source, the remaining json in the resources will be used for the two data sources.

Thank you.
Andreas Koetzle
Posts: 8
Joined: Fri Oct 21, 2022 5:21 am

Re: Two Independent Databands; Mirrors data if one is empty

Post by Andreas Koetzle »

Hello,

with is the indicator that you see only one table registered?
30-11-2022_06-38-10.jpg
30-11-2022_06-38-10.jpg (11.44 KiB) Viewed 924 times
I thought i have two datasources (BT and PS) and two different tables (root and root2). Only the datafieldnames are the same.

I do not agree with you about "removing" a json file. I only empty one of them. I real could it be possible, that there is now data for one of the datasoources.

i am to be at a loss....

Thank you for your effort.
Best regards
Andreas
Max Shamanov
Posts: 768
Joined: Tue Sep 07, 2021 10:11 am

Re: Two Independent Databands; Mirrors data if one is empty

Post by Max Shamanov »

Hello,

This would be the same situation where you have no data in one of the json (or you remove one of the json from the resources).
The data from the second json will be used for both tables.

Thank you.
Post Reply