Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to pass a SSRS variable to a PHP url.

Posted on 2014-04-03
12
Medium Priority
?
578 Views
Last Modified: 2014-04-21
In SSRS.
I would like use the out site url to the report link.
How can I transfer the value to the url?

"//myserver/report.php?mater=<SSRS_value>".

For instance matter_code is the value in SSRS report. How do we pass the matter_code variable so that the out site PHP report renders the info for that specific matter.

Sql server Report service
Thanks
0
Comment
Question by:Tim
  • 6
  • 4
10 Comments
 

Author Comment

by:Tim
ID: 39991346
need help. anyone ? Thanks
0
 
LVL 43

Expert Comment

by:Rob
ID: 39995447
Hi,

It looks like it should work.  What's not working for you?

Rob
0
 

Author Comment

by:Tim
ID: 39998974
Thanks for answer.
I try to put  "//myserver/report.php?mater=<matter_code>"
When I click the link, it just give me "//myserver/report.php?mater=<matter_code>"
I try to put  "//myserver/report.php?mater=@matter_code"
When I click the link, it just give me "//myserver/report.php?mater=@matter_code"

I need the SSRS variable( "matter_code" ) can transfer.
Like "//myserver/report.php?mater=5555"

Please help.

Thanks
0
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 
LVL 43

Expert Comment

by:Rob
ID: 40000698
try the Fx button to add the variable that way.

I know php and other BI reporting tools but I'm not up on SSRS.  I'll help any way I can though ok?
0
 

Author Comment

by:Tim
ID: 40002292
Putting the variable using the FX option, makes no difference.
I try to put  "//myserver/report.php?mater=Fields!matter_code.Value"
When I click the link, it just give me "//myserver/report.php?mater=Fields!matter_code.Value"


Everything after the = sign is passed as text not as a variable

Please help
0
 
LVL 43

Expert Comment

by:Rob
ID: 40002868
Ah then try putting the variable outside the string

"//myserver/report.php?mater=" & Fields!matter_code.Value
0
 

Author Comment

by:Tim
ID: 40007221
Hi:

it is still same as text , do not pass the variable.

Thanks
0
 
LVL 43

Accepted Solution

by:
Rob earned 2000 total points
ID: 40007799
Is there another way to edit the link, like viewing the code behind the report? You may be abbr to remove the quotes that way?
0
 

Author Comment

by:Tim
ID: 40012692
="//myserver/report.php?mater=" & Fields!matter_code.Value

Yea. It works, try to put "=" before the string.
Now works.
Thank you very much.
0
 

Author Closing Comment

by:Tim
ID: 40012696
Thank you very much. It works
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Viewers will learn how the fundamental information of how to create a table.

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question