October 24, 2005 at 11:55 pm
How to replace report's Dataset query at runtime, i.e.
Report have query embedded:
SELECT EmpID AS , FirstName AS [TITLE], LastName AS [OTHER] FROM Emp
Now at runtime we want to replace it
SELECT DeptID AS , DeptName AS [TITLE], NULL AS [OTHER] FROM Dept
This way we easily have 1 report for such similar simple reports.
Thanks,
Govind.
October 25, 2005 at 9:18 am
Ok, I'm sure there might be other ways, but the way I do it is like:
=IIF(Parameters!param.Value=0, "EXEC rspEMP", "EXEC rspDEPT")
(Note: Make sure Command Type is TEXT)
Hope this will help!
October 30, 2005 at 1:46 am
Hello Asim,
Sorry boss for this late reply.
This is a nice trick to resolve this but SQLRS must have some native way to achieve the same. I think we can anything (i.e. changing report behavior at runtime but substituting its Proxy classes like QueryDefinition... but i've to check) Anyways, thanks for the reply.
Regards,
Govind
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply