I need to do some filtering in one table based on the data in a second table.
The first table is called Parcel and it contains information about land parcels.
The second table is called Recon and it has value reconciliation data about each parcel (reasons why the value changed). Records in the Recon table have a reconcode from 90 to 99.
For each record in the Parcel table there can be anywhere from zero to 10 records in the Recon table.
I need to do filtering as follows:
1. If a parcel in the Parcel table has no recon codes in the recon table I DO NOT want it to be displayed.
2. If a parcel in the Parcel table has ONLY a recon code of 98 in the recon table I DO NOT want it to be displayed.
3. If a parcel in the Parcel table has more than one recon code, including 98, I DO want it to be displayed.
Thanks for your help.
Filtering Data
Filtering Data
Hello,
Please see the sample report in attachment.
Thank you.
Please see the sample report in attachment.
Thank you.
- Attachments
-
- 711.SampleReport.mrt
- (19.65 KiB) Downloaded 198 times
-
- 710.Recon.csv
- (194 Bytes) Downloaded 188 times
-
- 709.Parcel.csv
- (76 Bytes) Downloaded 172 times
Filtering Data
That does me no good.Aleksey wrote:Hello,
Please see the sample report in attachment.
Thank you.
While I appreciate the effort, our version of Stimulsoft is embedded into an application. I don't have a way to open .mrt files, nor do I have a way to link report to any other data source.
Filtering Data
Hello,
- in After Print of Parcel band (master band)
- in empty band recon (first detail)
And in Condition of DataBand Recon (second detail) add the following expression:
and uncheck "Component Enabled"
Thank you.
Please set the "Print if Detail Empty" property of the Parcel DataBand to false.MikeC wrote:1. If a parcel in the Parcel table has no recon codes in the recon table I DO NOT want it to be displayed.
Please add variable CountCode98 and add the following code in next events:MikeC wrote:2. If a parcel in the Parcel table has ONLY a recon code of 98 in the recon table I DO NOT want it to be displayed.
3. If a parcel in the Parcel table has more than one recon code, including 98, I DO want it to be displayed.
- in After Print of Parcel band (master band)
Code: Select all
CountCode98 = 0;
Code: Select all
if (Recon.Code == 98)
{
CountCode98++;
}
Code: Select all
Count(DataBand3) == CountCode98
Thank you.