Solved

Microsoft Reporting Services

Posted on 2007-03-21
11
568 Views
Last Modified: 2012-05-05
Hi Experts,
I want to build a URL like the one shown:  I am using Microsoft Reporting Services 2000
http://nfwd.battelle.org/bclscrpt/ats/Action.aspx?assmnt_id=34'&cond_id=1&actn_id=1
The value 34 comes from my report 'Fields!Assessment.Value'
The value 1 comes from 'Fields!CondId.Value'
The last value of 1 comes from 'Fields!ActId.Value'

How can I construct this URL and use it in a Jump To URL?

0
Comment
Question by:Mohlerp1942
11 Comments
 
LVL 21

Accepted Solution

by:
Yurich earned 200 total points
ID: 18766945
left click the cell or texbox that you want to have as the one containing URL, select properties, navigation.

select jump to URL, click fx (formula), in the formula enter the following:

="http://nfwd.battelle.org/bclscrpt/ats/Action.aspx?assmnt_id=" &
 Fields!Assessment.Value & "'&cond_id=" & Fields!CondIdValue & "&actn_id=" & Fields!ActId.Value

be careful with quote marks, especially with the one you have after your 34 (if it's not a typo) in your example

good luck,
yurich
0
 
LVL 14

Expert Comment

by:simon_kirk
ID: 18767021
Hi.
Try just concatenating the URL together from the fields and then use in the Jump To URL:

="javascript:void(window.open('http://nfwd.battelle.org/bclscrpt/ats/Action.aspx?assmnt_id=" & Fields!Assessment.Value.ToString() & "cond_id=" & Fields!CondId.Value.ToString() & "actn_id=" & Fields!ActId.Value.ToString() & "','_blank'))"

0
 
LVL 1

Assisted Solution

by:MayaP
MayaP earned 50 total points
ID: 18775123
or you can write a function inside of Report Code called GetUrl where you pass these parameters. the function will retun you a url string that you'll build dynamically in code.

then, in your Jump to URL you just say: = Code.GetUrl( Fields!CondId.Value.ToString(),... other params)

this way if your main URL changes, you will have to make a change in only one place, the Report Code!
0
 
LVL 21

Expert Comment

by:Yurich
ID: 18776923
hmm... 2Maya - if his/her main URL changes, he/she needs to change it in one place anyway - in the Jump to URL formula... I think having a function for this is overdoing.

2simon - why do you need to use javascript and javascript syntax? what's wrong with streight forward strings?
0
 

Author Comment

by:Mohlerp1942
ID: 18778865
Hi to all,
These solutions are good to know about and could come in handy for different situations. For now I Yurich's solution works. I will try MayaP solution just for the experience of knowing how to do it. I could not get 2Simon's solution to work, I assume I have a syntax error.

Thanks All
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 21

Expert Comment

by:Yurich
ID: 18821869
I'm sorry, I din't get it... If my solution works and you used it, why you didn't accept my answer??
0
 

Author Comment

by:Mohlerp1942
ID: 18822596
Sorry, I want to accept your answer but I got all these multiple choices and accepted wrong choice.
0
 

Author Comment

by:Mohlerp1942
ID: 18822608
Is it to late to give you points. If not how do I give you points?
0
 
LVL 21

Expert Comment

by:Yurich
ID: 18822822
go to ask a new question, select a community support area -> genarl, and explain what happened - they will re-open the question and un-accept the previous solution that has been accepted. if you have problems, let me know and I think I can do it for you...
0
 

Author Comment

by:Mohlerp1942
ID: 18823016
Will you fix the point problem. I tried to follow your instructions but it said I have to assign points. Can't be 0. Not sure were I wnet wrong. Thanks
0

Featured Post

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

Join & Write a Comment

1. Set up your parameter at the report level as usual, check the box Multi-value, and set the Data Type to String 2. Set the Stored Procedure Parameter to varchar(max)  --<---- This part here is the key to it's success Example:    @cst_key var…
I recently went through setting up a JasperReports Server using the AWS EC2 instance, and this article will cover some basic administration tasks I had to perform.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

757 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

16 Experts available now in Live!

Get 1:1 Help Now