Solved

How to pass a SSRS variable to a PHP url.

Posted on 2014-04-03
12
485 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:zcfyhome
  • 6
  • 4
12 Comments
 

Author Comment

by:zcfyhome
Comment Utility
need help. anyone ? Thanks
0
 
LVL 42

Expert Comment

by:Rob Jurd, EE MVE
Comment Utility
Hi,

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

Rob
0
 

Author Comment

by:zcfyhome
Comment Utility
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
 
LVL 42

Expert Comment

by:Rob Jurd, EE MVE
Comment Utility
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:zcfyhome
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 42

Expert Comment

by:Rob Jurd, EE MVE
Comment Utility
Ah then try putting the variable outside the string

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

Author Comment

by:zcfyhome
Comment Utility
Hi:

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

Thanks
0
 
LVL 42

Accepted Solution

by:
Rob Jurd, EE MVE earned 500 total points
Comment Utility
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:zcfyhome
Comment Utility
="//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:zcfyhome
Comment Utility
Thank you very much. It works
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Viewers will learn how the fundamental information of how to create a table.

772 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now