Page 1 of 2

Problems with filter

Posted: Sun Dec 05, 2021 12:19 pm
by johnl
SalesQuoteTest.xml
(2 MiB) Downloaded 272 times
I am having a problem with filtering this report
When I turn the filter off I get data I don't want but the values all appear to be correct
When I turn the filter on I get the data I want for the first item in databand1 but the items for the second item are not correct ????
I want to filter so that I only get a match of a field in databand1 with a field in databand2 (ItemCategory.ItemForSale.StockTranItem.StockTranItem_Id == Attachment.Attachments_Id)

Re: Problems with filter

Posted: Mon Dec 06, 2021 9:30 pm
by Lech Kulikowski
Hello,

Could you send us a sample (excel, screen, etc) that shows which result you need?

Thank you.

Re: Problems with filter

Posted: Thu Dec 09, 2021 4:45 am
by johnl
Samplel

Sales Quote Test

Barney Collection 2 Seater ItemCategory.ItemForSale.StockTranItem.StockTranItem_Id 0
barney Attachment_Attachments_Id 0
barney2 Attachment_Attachments_Id 0

Big Finley Collectyion DOUBLE ItemCategory.ItemForSale.StockTranItem.StockTranItem_Id 5
big finley Attachment_Attachments_Id 5

Filter so that I only get records where ItemCategory.ItemForSale.StockTranItem.StockTranItem_Id match Attachment_Attachments_Id

Re: Problems with filter

Posted: Thu Dec 09, 2021 8:31 am
by Max Shamanov
Hello,

In your XML which you're sent us not all data inserted. Please send us full test data used in filters.

Thank you.

Re: Problems with filter

Posted: Fri Dec 17, 2021 12:09 am
by paulsawkins
Intention - a purchase order with multiple lines - after each line is the attachments (images) related to that line
Attempt - Databand for the lines + databand (master component databand 1) for the attachment images

Problem is Databand2 is showing all images - not only those linked to the line in Databand 1

So tried to put in a filter - but that does not seem the correct approach....

The XML has the following hierarchy

Crafted.salesorder > StockTranItem id > Attachments > Attachment description.... Where stocktranitemid is the order line. So the attachments are nested in the xml

The report has been setup to have:
- databand per stocktranItemID (the order line)
- databand2 (Master component Databand 1) - the attachments related to the stocktranitemid

However when looking at the Dictionary tree in Stimulsoft - attachments is NOT under Item for sale - not sure why ?

Re: Problems with filter

Posted: Fri Dec 17, 2021 8:07 am
by Lech Kulikowski
Hello,

Please send us a sample report with test data that reproduces the issue for analysis.

Thank you.

Re: Problems with filter

Posted: Fri Dec 17, 2021 1:51 pm
by paulsawkins
The sample and xml is attached to the first post in this thread .

Re: Problems with filter

Posted: Mon Dec 20, 2021 9:51 pm
by Lech Kulikowski
Hello,

We couldn't reproduce the issue.

Thank you.

Re: Problems with filter

Posted: Wed Dec 22, 2021 6:19 am
by johnl
I want the filter to only print the attachments when the condition is true

Re: Problems with filter

Posted: Thu Dec 23, 2021 8:20 am
by Lech Kulikowski
Hello,

We use ADO.NET methods to work with XML, which do not always work correctly with nested structures. Unfortunately, we can not ix it.
You need to modify your XML data to work correctly - split data as flat table sources with relations.

Thank you.