Solved

How to pass a SSRS variable to a PHP url.

Posted on 2014-04-03
12
501 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
ID: 39991346
need help. anyone ? Thanks
0
 
LVL 42

Expert Comment

by:Rob Jurd, EE MVE
ID: 39995447
Hi,

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

Rob
0
 

Author Comment

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

Expert Comment

by:Rob Jurd, EE MVE
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:zcfyhome
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
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
LVL 42

Expert Comment

by:Rob Jurd, EE MVE
ID: 40002868
Ah then try putting the variable outside the string

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

Author Comment

by:zcfyhome
ID: 40007221
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
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:zcfyhome
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:zcfyhome
ID: 40012696
Thank you very much. It works
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to select a spread of rows in SQL 8 54
What is format f12.8 for a CSV file 6 40
MS SQL Inner Join - Multiple Join Parameters 2 19
SQL Server stored proc 2 12
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

910 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

18 Experts available now in Live!

Get 1:1 Help Now