Reporting - Pass value on url (Querystring)

Has anyone out there had success passing values into Configmgr 2012 SSRS reports through "QueryString?" 
I'd like to be able to email clients a report (either that I create or canned) that I can pass a variable in the http url and it presents that data.  That way the report can be dynamic - but allow us to email the exact data we want to the client.
I have read several posts it is possible, but I have not been able to successfully do this with any of the existing SCCM reports.
Any ideas or thoughts? 

So I sort of stumbled upon a bit of the solution after doing a bit of research on the SSRS technet articles.  It appears that it matters how you access your reports. 
There appears to be a different report engine if you go to ReportServer and ReportViewer.aspx instead of Reports and Report.aspx.  The ReportViewer.aspx must give you access to querystring and other command options you pass in including the rs:.
SO - other folks with more SSRS experience may be able to explain with greater details the real reasons this works but if you need to do this - simply change your URL to the following:
http://<ServerName>/ReportServer/Pages/ReportViewer.aspx?%2f<SSRS-Folder>%2f<ReportHTTPName>&rs:Command=Render&variable=<VariableValue>
So a real example would be:  http://<ServerName>/ReportServer/Pages/ReportViewer.aspx?%2f<SSRS-Folder>%2fHardware+-+Memory%2fMemory+information+for+a+specific+computer&rs:Command=Render&variable=Computer1
The two keys I saw are:
rs:Command (this forces the report to run and execute and not just load up and ask you for a value)
variable=xxx - this is the name of the parameter in the SSRS report.  So you need to edit the report and then determine the name of the actual variable.  Also - this appears to be case sensitive.
If someone out there is a report expert and wants to clarify my statement - please feel free to do so.  Hopefully this helps out someone else who needs this!
We have requests for data from clients who want a "live report" - but explaining the values in the fiels (or getting them not to type computer names incorrectly) is a pain - so this will help me significantly in day to day reporting for clients! 
We also have a report for App Dev folks to see their distributions (pie-charts) - and I can now send them a dynamic report of their specific app w/out having to filter down and remember what I named their package or application.  Direct link to their
data!
Thanks again if anyone wants to add to my "solution here" and clarify the technicalities of SSRS and Querystring.

Similar Messages

  • Unable to pass report column value to url in select statement. Please help

    Hi all,
    I am trying to pass the report column value as follows:
    select key, num,
    case when Attachmentcnt(KEY) != 0 then
    'f?p=&APP_ID.:91:&SESSION.:'' '':NO::P91_KEY,P91NUM,P91_PREVPG:'And I am passing values as follows:
    {noformat}
    '#KEY#,'#NUM#','9' ELSE null
    END Attachment
    from tableA
    {noformat}
    But, I am not able to figure out correct sysntax to pass these column values. Can anyone give me some help. I appreciate it.
    rgds,
    Suma.
    Edited by: sumak on Jun 23, 2009 12:11 PM
    Edited by: sumak on Jun 23, 2009 12:22 PM

    Suma,
    If you're trying to generate a column with a URL, try something like the following:
    select key, num,
    case when Attachmentcnt(KEY) != 0 then
    'f?p=&APP_ID.:91:&SESSION.:'' '':NO::P91_KEY,P91NUM,P91_PREVPG:'
    || tableA.key || ',' || tableA.num || ',' || :P91_PREVPG
    else NULL
    end
    FROM tableA;
    But the best way to pass these would include checksum values against the values of your parameters (to make sure a user doesn't hack them). You'll need to check the Apex User manual for details - See "Understanding Session State Protection".
    Good luck,
    Stew

  • Pass value through URL without setting local page item

    Folks,
    I have a table where I have created a dummy column with a hyperlink on it to go to another page in the application which runs a report passing through columns on the table
    As I am doing this several times (for different pages in my application) - Is there a way of passing a variable through a URL to a report without setting a local variable
    i.e.
    Click Here
    Here I am assigning a local variable on Page 25 which is hidden called P25_TEST1
    What I would like to do is pass the value straight to page 25 (which runs the report) without the need to create hidden items on the report pages all the while
    Thanks
    Gareth

    You have a plain HTML page that loads with a url with something like ?field=value
    And you want "value" to show on your page, correct?
    <html>
    <body>
    <script>
    var qsParm = new Array();
    function qs() {
    var query = window.location.search.substring(1);
    var parms = query.split('&');
    for (var i=0; i<parms.length; i++) {
       var pos = parms<i>.indexOf('=');
       if (pos > 0) {
          var key = parms<i>.substring(0,pos);
          var val = parms<i>.substring(pos+1);
          qsParm[key] = val;
    qsParm['field'] = null;
    qs();
    if (qsParm['field'])
         document.write('You selected ' + qsParm['field'] );
    </script> 
    </body>
    </html>
    Call that as test.html?field=Hello
    Here's a nice link that explains it in detail: http://www.eggheadcafe.com/articles/20020107.asp

  • Report: passing values to item page

    on Apex 3.2
    Hi,
    I need help.
    Does anyone knows a way to pass values from a report to a page item?
    This is what i want: when i run a report i want to fill a page item with the value from an item report.
    Thanks,

    Hi Austin,
    Thank you for your reply.
    I've writen a query that gives me the accounting movements.
    In this query the user can pass the rownum because there are about 1million records in the partitioned table.
    But the diference between credit and debit must considered all the movements that are not closed.
    I'm using analitics functions to do that, so for each line the value is already calculated.
    With one report region: If i group and break the report it takes about 13 seconds to display the information.
    If two report regions: One for the movements other for the "Debit: Credit: and Total:". It takes about 6 seconds to display the info.
    Its more fast, but i have to run the query twice. The idea is to run only once.
    The values that i want to pass from report to page items, Debit: Credit: and Total:.
    Is there a way?
    Thanks,

  • Can't pass value on URL in PS (querystring)

    I have an HTML object in my portal with a relative hardcoded link:
    ../../PSFT_HR/c/SLD_SERVICE.C_CSM_CANDIDATES.GBL?PAGE=C_CSM_CANDIDATES
    This works fine and, when clicked, takes me to where I want to go in the portal.
    But I need to copy that link so I go to the same page, but with a name-value pair appended to the URL (sometimes called a querystring), like this:
    ../../PSFT_HR/c/SLD_SERVICE.C_CSM_CANDIDATES.GBL?PAGE=C_CSM_CANDIDATES&foo=bar (notice the appended "&foo=bar")
    When I click the link with the value appended, I am brought to the correct page, but my content is all jacked up. The styles are wrong and the menus are gone. I believe that some kind of internal error is occurring in which PS chokes on that appended value. What am I doing wrong, and how can I make this work?
    Important: It won't work to use global variables or other approaches because I need to know which of the 2 links were clicked. The only way to know which link was clicked (since they're both the same url aside from the appended value) is to check the appended value in peoplecode of the receiving page. Please help.

    Working. I discovered that normally appending name-value pairs (querystring) on a PS url works. It didn't work in my case because of duplicate/ambiguous content ref entries. Something got tangled.
    Edited by: 994623 on Mar 29, 2013 8:28 AM

  • How MSS Report passes values to R/3 report using PNP logical db

    Heloo Gurus,
    I am having some trouble where in i have added a new custom(Z) report in the MSS ->My Staff -> Reporting under report category -> Time Management (MSS). I am not able to find how the value of org unit which is selected on portal screen is passed to report in R/3 which is using PNP logical db.
    I tested in debugging but selection screen parameter PNPORGEH contains nothing.
    Many Thanks in advance for the help.

    Anyone ?
    plz update.

  • Passing Values to URL Parameters in HTTP Connection SCOT

    Hi ,
    I have created a new node in SCOT as HTTP. In that i am using one URL as HTTP Connection , for that URL have to pass some input values ( eg: User name , password ). Right now i am hardcoding these values in the URL, But i need to pass these input values to the URL dynamically. Is there any way to pass the values to the URL parameters .
    Regards
    Bala..

    Hi Bala,
    Did you ever get this resolved? I have a similar requirement but still cant find a way to do it. I even thought about creating an RFC Destination of type H and entering the user name and pwd in the logon details. But the problem wih this is that the URL for the RFC destination is static and cant really be changed.
    Be interested to hear your thoughts.
    Alon

  • Js-confirm box with request and passing value: incorrect url

    Hi folks!
    Scenario: User clicks on link-column field in tablular form, Confirm box pops up with a confirmation message, with "OK" generates a request and should pass a value from the form into an item for further processing.
    The URL in the column link as of now looks like that:
    javascript: apex.confirm("message goes here...", {request:"EQDONE", set:{"P2100_X": "#EQMID#"}});For some reason just nothing happens. When I omit the "javascript:", I get an unvalid-url error message. But if I change the procedure name, shoudln't I get some error message also?
    Please tell me what's wrong. Thank you! :)

    Hmm... Ok, makes sense... a little.
    The use of (in my case) #EQMID# works, if the target is not URL but "Page in App", and you use the Column Link Dialog fields "Name" and "Value", but maybe because at this point it gets renderes into html and not when called from a javaScript function? Thats how I understand it now.
    However: I have just looked into the html-sourcecode. The java Script call IS actually fully rendered with the corrosponding IDs.
    This is a sample of one table row:
    <tr class="even"><td  align="left" headers="Erfasst">13.08.2012</td><td  align="left" headers="KundenNr">4784668</td><td  align="left"
    headers="Kontrolle">XML-Abrechnung - Abrechnungsart überprüfen bei KundenNr: 4784668</td><td  align="left" headers="Details">TD, STEWEAGSTEG_LF:
    Papier+Archiv (GK)</td><td  align="left" headers="Ausnahme bis">-</td><td  align="left" headers="bearbeitet von">-</td><td  align="center" headers=
    "'ERLEDIGT'"><a href="javascript: apex.confirm("message goes here...", {request:"EQDONE", set:{"P2100_X": "34"}});" ><img src="wwv_flow_file_mgr.get_file?
    p_security_group_id=6519817386341009&p_flow_id=150&p_fname=ausnahmeBtn_check.png" alt="" title="Fehlerhaften Verrechnungstyp im SDK-PS ausbessern
    und Eintrag als erledigt kennzeichnen."></a></td><td  align="center" headers="'AUSNAHMEREGELUNG'"><a href="f?p=150:2100:1212226464451606:EINGAU
    SNAHME:NO::P2100_KUNU_AUSNAHME,P2100_EQMID,P2100_DATEPICK_AUSN:4784668,34," ><img src="wwv_flow_file_mgr.get_file?p_security_group_id=
    6519817386341009&p_flow_id=150&p_fname=ausnahmeBtn.jpg" alt="" title="Diesen Kunden als Ausnahmeregelung bis zu vorgegebenem Datum deklarieren.">
    </a></td></tr>The set statement containe the correct ID in each row! Here 34.
    So, according to http://docs.oracle.com/cd/E17556_01/doc/apirefs.40/e15519/javascript_api.htm#AEAPI274 , it should work.
    Anyway, I will try your suggestion using the fnn array.
    Edited by: tpetri on 16.08.2012 08:34

  • Report-Report Passing Values with SMOD_RSR00004

    Hi,
    I operated the BADI SMOD_RSR00004 which suppose to help in mapping values from a sender report to a receiver report.
    I didn't succeed to see in a debug mode the sender query's time characteristic value I used.
    I mean that all the rows/columns characteristics of the sender query are available on the BADI method in a debug mode, but the column time characteristic of the sender query is not.
    Also, does anyone know how should I enter the values I mapped to the export parameters in the method.
    I found a good documentation here:
    RS_BBS_BADI documentation,
    But my problems I presented here has no solution mentioned there.
    Best Regards,
    Shani Bashkin

    Hi again,
    Does anyone have any idea for solving this problem???
    Thanks,
    Shani Bashkin

  • How to pass values of the prompt through Action Link - URL in 11g

    Hi All,
    I am in OBIEE 11g v6.
    Let's say, I have two dashbaord pages P1 and P2.
    P1 page contains
    1. Prompt PR1 - containing a single column EmpName
    2. Report R1
    P2 page contains
    1. Prompt PR2 - containing a single column EmpName (same column as in PR1)
    2. Report R2
    Requirement :
    Let's say a user select a value = David from the EmpName column in prompt PR1. In the Report R1, on one the measure columns 'Sales', I am using an action link - Navigate to URL ( I can't use Navigate to BI Content for some reasons). In the URL, I am giving the URL to page P2. Can I pass the selected value (which is David) to the EmpName column of the Prompt PR2 of Page P2 so that Report R2 is automatically limited by David when I land on that page through the URL?
    Few things to consider are, I can't use EmpName column in my report R1 on page P1, I just want to pass the value of a common column from one prompt on Page1 to another prompt on Page2. Is that possible. Can anybody please help?
    Thanks,
    Ronny

    Hmm can you give a try one more time with
    Add EmpName name and hide it on report R1 on page P1
    and set EmpName as Is Prompted on report R2 on page P2 and with my earlier steps should work.
    Other option is read this doc once that helps you how to pass value thru url.
    http://docs.oracle.com/cd/E21043_01/bi.1111/e16364/apiwebintegrate.htm#z1005224
    You need to have a EmpName as Is Prompted on report R2 on page P2
    If helps pls mark

  • Passing value from JSP to JApplet

    Hello,
    I am stuck up with a problem, can anyone please tell me how do i pass a value from a JSP page
    to a JApplet,
    and the parameter passed through JSP should be displaed in the JTextArea.
    It would be kindful if any of you could help.
    Thanks
    Sanam

    hello,
    thanks for reply.
    I know how to pass parameters from html,
    I want to pass values from jsp page,
    and i dono how to do it, may be we cann pass values through url connection but i dono how.
    if anone knows plz help me in solving this.
    i hvae posted my applet code.
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.JToolBar;
    import javax.swing.JButton;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JTextArea;
    import javax.swing.JScrollPane;
    import javax.swing.JPanel;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    import java.sql.*;
    <applet code = "DocApplet" width = 500 height =5000>
    </applet>
    public class DocApplet extends JApplet
         private JPanel jp;
         private Container cp;
         private JTextArea jt;
         private JToolBar tb;     
         private JScrollPane sp;
         private String annotation;
         private String url;
         private Connection con;
         private Statement stmt;
         public void init()
              jp = new JPanel();
              cp = getContentPane();
              jt = new JTextArea();
              tb = new JToolBar();
              sp = new JScrollPane(jt);
              repaint();
         public void start()
              jp.setLayout(new BorderLayout());
              jp.add(tb, BorderLayout.NORTH);
              jp.add(sp, BorderLayout.CENTER);
              jt.setBackground(Color.BLACK);
              jt.setForeground(Color.WHITE);
              setContentPane(jp);
              addButtons(tb);
              repaint();
         public void run()
              repaint();
         public void paint()
         private void addButtons(JToolBar tb)
              JButton button = null;
              button = new JButton("Save");
              button.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent e)
              tb.add(button);
    }

  • How to Pass values between one webdynpro application to another

    Hi ,
        I know How to Pass Values Between the Application by URL But For My Requirement NO need The Pass in URL Rather Than That Please any one TEll me How to GEt VAlues BEtween the application......
    Thanks
    ANANTH.

    If you dont want to pass values through URL, then you must have to use component Usage with interface node.
    Or you can try like this,
    by appending field value to url,
    Data w_url type string,
    w_value type string.
    get the url of calling aplication
    call method cl_Wd_utilities->construct_wd_url
    exporting application name = name of second application( to which u want to pass parameter )
    importing out_absolute_url = w_url.
    ***Make the value type compatible that has to passed with url.
    w_string = lv_pernr
    ***Now attach the parameter and its value with url that have to passed to 2nd application
    call method cl_http_Server=>append_field_url
    exporting name = 'pernr'
    value = ' w_value'
    changing url = w_url.
    then popup window for 2nd application with above url
    lo_window = lo_window_manager->create_external_application ( url = w_url ).
    lo_window -> open( ).
    ***now in wddoinit of 2nd application
    data lv_param type string
    lv_param = wdr_task=>client_window->get_parameter( ' pernr ').
    Now you can use lv_param in 2nd application.
    Regards
    srinivas

  • Passing values w/special characters in URL into an interactive report

    Hello,
    I have a problem and Ive been all over these forums and reading/trying everything I can to get something to work. I have a page that has a field called Name Search. The field is a TextField with autocomplete type. If I select a company name that contains special characters, like 'Blue Shield of California Life *&* Health Insurance Company', when I click go button (using a branch), it is supposed to pass this value into the URL to populate IR_COMPANY_NAME on the interactive report page to create the report filter. However, when it goes to the IR page, it actually filters on 'Blue Shield of California Life *& amp;* Health Insurance Company' with 'amp;' instead of & and doesnt find any matches. In the page source it is actually 'value="Blue Shield of California Life *& amp; amp ;* Health Insurance Company." Here is the URL that it produces:
    http://webtest2:7775/apex/f?p=102:IRCompanyList:995769774353901::NO:5,RIR:IR_COMPANY_NAME,P5_COMPANY_NAME:Blue%20Shield%20of%20California%20Life%20%26amp%3B%20Health%20Insurance%20Company,Blue%20Shield%20of%20California%20Life%20%26amp%3B%20Health%20Insurance%20Company
    The interesting thing is that I have another page that has a clasic report that lists all compnaies by name and the company_name is a link that passes the company name into the exact same IR and it works fine. In the page source it is value="Blue Shield of California Life *&amp;* Health Insurance Company" Here is the URL that this page produces:
    http://webtest2:7775/apex/f?p=102:5:995769774353901::NO:4,RIR:IR_COMPANY_NAME,P5_COMPANY_NAME:Blue%20Shield%20of%20California%20Life%20%26%20Health%20Insurance%20Company,Blue%20Shield%20of%20California%20Life%20%26%20Health%20Insurance%20Company
    I have modified every field involved changing between encoding, no encoding, changing display types (Standard Report Column, Remove HTML and escape special characters, etc). I have also attempted to encode the value myself prior to sending it to the next page. I have tried variations of the htf.escape_sc etc. I have also tried adding \&P2_COMPANY_NAME.\. I have also tried adding pl/sql to create a collection to store the values and then pl/sql to fill the values on the report page. It gives me the success message I setup, but it never actually fills the value.
    I am also having problems with another field that has a comma in it. I will wait to address that one to see if I can fix this first with hopes that it can be resolved by whatever I do to fix this issue.
    Any suggestions? I appreciate any feedback!
    Jen
    Edited by: J-Lig on Jul 13, 2012 10:20 AM
    Edited by: J-Lig on Jul 13, 2012 10:21 AM

    Thank you for your feedback!
    Yes, I forgot to mention that. It does come from a table, but company_name is not unique in that table. Meaning, it wouldnt know which ID to pass. Perhaps I should seperate the name out into another table and then I could pass the id. I was just hoping to get this to work programatically since the links from classic reports actually work correctly. I am starting to think this is a bug. This issue appears to have been addressed to make the links from reports pass the & correctly, but not in the branching?
    I have attempted to replace and then re-replace but I couldnt get it to work with IR_ fields as the filter fields are generated by the Interactive Report region. Do you have any insight working with those? Are there any tricks to it that I might be missing?

  • Passing value to multi value parameter from SSIS using Report server webservice

    Hi
    I am triggering SSRS report from SSIS(Script task). I am passing parameter values from SSIS package.
    So far working fine. Now, I have a report which has 2 parameters. One is single value parameter and the other is multi value parameter.
    No issue assigning value to single value parameter. But how can I pass multi value to multi value parameter?
    My code as below
    ReportExecutionService rs = new ReportExecutionService()
    rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
    rs.Url = _webserviceURL;
    rs.LoadReport(_reportPath, null);
    ParameterValue[] paramval = new ParameterValue[2];
                            paramval[0] = new ParameterValue();
                            paramval[0].Name = "CountryCode";
                            paramval[0].Value = _countryNames;
                            **paramval[1] = new ParameterValue();
                            paramval[1].Name = "BusinessCode";
                            paramval[1].Value = _businessCode;****
                            rs.SetExecutionParameters(paramval, "en-us");
    I am not sure how to pass value to BusinessCode(Multi value parameter)

    Hi Rajkm,
    In order to pass a multi-value parameter through the Reporting Services Web services, you need to define the same numbers of ParameterValue objects as the number of the values of the multi-value parameter being past into the report. The Name property
    of these ParameterValue objects must be specified same to the parameter name.
    I found a good FAQ article for this scenario:
    How do I pass a multi-value parameter into a report with Reporting Services Web service API?:
    http://blogs.msdn.com/b/sqlforum/archive/2010/12/21/faq-how-do-i-pass-a-multi-value-parameter-into-a-report-with-sql-server-reporting-services-ssrs-web-services-api.aspx
    Hope this helps.
    Elvis Long
    TechNet Community Support

  • Pass Select list value to URL as a parameter

    I am trying to pass the selected value from a select list via a button to a URL.
    &P_VALUE=&P_VALUE.
    P_VALUE is set to USER SESSION.
    It shows as prevous session value. If I show the the session value is not set to the selected value.
    If I call a PDF report via a button, it displays the correct value and the session values is correct.
    If I select the button for the URL again, is shows the previous value.
    When I go back to the form and call select the button again, the correct parameter is passed to the URL.
    Any Ideas?
    Thanks,
    Jerry

    If you use substitution at the time, the button gets generated, you don't have the new value - the button is generated with the rest of the page, and then later the user changes value of the select list. You have two choices:
    1)Use Select list with submit - and transfer the user to second page using branch (which get's calculated after submit when select list has already the new value)
    2)Use Javascript to catch the onChange/onClick event of SelectList, read the current value and do the redirect from JavaScript.

Maybe you are looking for