we have a little question concerning SQL in Stimulsoft Reports.Net.
First of all we created a new datasource based on a SQL statement like the following one:
Code: Select all
SELECT DISTINCT [tSoftwareCache].[SoftwareCacheID], [tSoftwareCache].[SoftwareName], [tSoftwareCache].[SoftwarePublisher], [tSoftwareCache].[SoftwareVersion], [tSoftwareCache].[OSType]
FROM [tSoftwareCache], [tSoftwareKeywords], [tSoftwareProducts], [tSoftwareGroups]
WHERE [tSoftwareCache].[SoftwareName] LIKE [tSoftwareKeywords].[SoftwareName]
AND [tSoftwareCache].[SoftwareVersion] LIKE [tSoftwareKeywords].[SoftwareVersion]
AND [tSoftwareCache].[SoftwarePublisher] LIKE [tSoftwareKeywords].[SoftwarePublisher]
AND [tSoftwareProducts].[SoftwareID] =? AND [tSoftwareGroups].[GroupID] = [tSoftwareProducts].[GroupID]
AND [tSoftwareGroups].[AccountID] = [tSoftwareCache].[AccountID]
AND [tSoftwareKeywords].[KeywordType] = 0
AND [tSoftwareKeywords].[SoftwareID] =?
...
The specific problem now is that the SQL statement from above is only executed at the compiling time of the report. Our report has the following design.
Code: Select all
...
Group: [tSoftwarePorducts].[SoftwareID]
Virtual Table: SQL statement from above with current [tSoftwareProducts].[SoftwareID]
...
Group Footer
...
Thanks in advance. :feelgood: