Help get this topic noticed by sharing it on Twitter, Facebook, or email.

HOW TO: Multiple Custom Report using 1 Grid Link

I have set up 2 views and created custom reports.

I want to put 1 link on the Grid1 ... menu, but have it choose the report based on a field value, if the record is Type 1, i want it to open Report A, if the record is Type 2, I want it to open Report B.

I added an Action to Grid
Command Name: Report (PDF)
Header Text: Download PDF to Print
check Causes Validation

with the following code, but i don't think this is an accurate way to do this...


if @BrazosTypeID = 1
BEGIN
_controller=VPersonnelReqCustomRepO
_view=grid1
_template=VPersonnelReqCustomRepO_editForm1.rdlc
ReqID=ReqID
END

if @BrazosTypeID = 2
BEGIN
_controller=VPersonnelReqCustomRepO
_view=grid1
_template=VPersonnelReqCustomRepO_editForm1.rdlc
ReqID=ReqID
END
1 person has
this question
+1
Reply