Passing multiple parameter values to a detail report.  How?

Help!
I have a Summary report and a Detail report.
Summary report has a parameter that may have multiple values (ie returning an array).
I need to pass these values to the Detail report.
Anybody has managed to do it?
Thanks in advance...
Inga

Thank you for your reply Sunil...
The problem is as follows:
I have a report portlet that has a parameter with multiple values. Ie I would have two status values passed into this Summary report that shows, say total sum for those statuses. I have a link from this report to a detail report, and i need to pass both of these values into the detail report.
I have tried adding a parameter (p_status_param) in the SQL query that would be a part of link by building it in "PL/SQL after header section" and doing the parameter replace.
SQL query:
select
'<a href="./RTS.RPT_OPEN_CALLS_BY_ASSIGNEE_01.SHOW?p_arg_names=p_assigned_user_id&p_arg_values='||cr.assigned_user_id||''||:p_status_param||'''><font class=portletText1>'||s.user_name||'</font></a>' full_name,
  cr.assigned_user_id,
  count(*) total_calls
from 
  trts_call_request cr,
  trts_security s
where
  cr.assigned_user_id = s.user_id
  and cr.current_status_id in :p_status
  and cr.assigned_user_id in :p_assigned_user_id)
group by
  s.user_name,
  assigned_user_id
PL/SQL:
declare
    v_return    varchar2(32767) := '';
begin
    for i in 1..l_arg_names.count loop
        if l_arg_names(i) = p_reference_path||'.p_status' then
            v_return := v_return || '&p_arg_names=p_status&p_arg_values='||l_arg_values(i);
        end if;
    end loop;
     myats30.wwv_name_value.replace_value(l_arg_names, l_arg_values, 'p_status_param',myats30.wwv_standard_util.string_to_table2(v_return) );
htp.p(v_return);
end;
However, when you run the report, this is what you get (see what the parameter has been replaced with):
ORA-00907: missing right parenthesis (WWV-11230)
Failed to parse as RTS - select '<a href=./RTS.RPT_OPEN_CALLS_BY_ASSIGNEE_01.SHOW?p_arg_names=p_assigned_user_id&p_arg_values='||cr.assigned_user_id||''|| ( :zz21, :zz22, :zz23 ) _param||''"><font class=portletText1>'||s.user_name||'</font></a>' full_name, cr.assigned_user_id, count(*) total_calls from trts_call_request cr, trts_security s where cr.assigned_user_id = s.user_id and cr.current_status_id in ( :zz21, :zz22, :zz23 ) and cr.assigned_user_id in :p_assigned_user_id) group by s.user_name, assigned_user_id order by ASSIGNED_USER_ID ASC (WWV-08300)
Any ideas how I could build this link programatically???
Thank you...

Similar Messages

  • Passing multiple character values from parameter form to PL/SQL

    Hi,
    I am passing multiple character values from parametr form into
    the report query and a PL/SQL procedure. It works fine with the
    query, when I use &variable. But, it doesn't compile in PL/SQL,
    so I just used the :variable, but not getting any records in the
    PL/SQL procedure. Any suggestions?
    sincerely,
    gj

    gj / Fedro,
    Only using the &referecne, you can pas a string / multiple character values and this would work for query only.
    The bind parameter in PL/SQL wouls support only single value
    Thanks
    The Oracle Reports Team

  • Passing multiple integer values as parameter in SSRS

    Hello,
    I am trying to pass a comma separated multiple integer value parameter in SSRS report and it errors out complaining that it is not able to convert the nvarchar value to datatype int. But it works fine when I pass a single value. Here is the code I am using
    for the report and I am stuck at passing multiple values.
    SELECT
    id,count(*) as cnt
    from table
    and ID in (@id) group by id
    eg: if I pass 10,20,30 then I would get error however if I pass 10 then it works fine
    Is there a different method to pass multiple integer values?
    Thanks for your help.

    A comma is, of course, a textual character and not an integer, thus the error you are getting. Multi-value parameters can be used for this.
    Select "Allow multiple values"and set data type to Integer. Multi-value parameters deliver the values as an array. The query interface is smart enough to convert them to the proper syntax (comma-delimited) automatically so a statement like:
    WHERE Field IN (@id)
    where the parameter has an array of values {1, 2, and 3} is interpreted as:
    WHERE Field IN (1,2,3)
    You do not need to manually convert it in a transact SQL query. That is not the case for displaying the value array in your report. If you wish to display the array (described above) in your report as "1, 2, 3", you will need to use a join expression:
    =Join(@id, ", ")
    As DJ described, the other part to a multivalue parameter is the Available values. These can be set explicitly but given your example, I think it would be best to create a new dataset that retrieves a distinct list of the IDs that can be retrieved, perhaps
    something like:
    SELECT DISTINCT GroupName, GroupID
    FROM table
    WHERE [criteria]
    Set the available values to use this query with GroupName (or whatever user-friendly field you choose for your dataset) as the label and the id as the value. The label field should be something the the target report user can easily identify the correct group
    using.
    If you don't want to or can't use a multivalue parameter for some reason then you will need to manipulate your parameter value prior to consuming it in your query. When you add the parameter to the TSql query and save the dataset, SSRS adds it to the Parameters
    property of the dataset. Open the dataset properties and select the parameters tab. You should see your parameter in the list. click the expression builder (fx) button next to the value and enter this expression:
    =Split(@id,",")
    Note that the second element of the expression is the delimiter. If your text input has comma-space as a delimiter (1, 2, 3 vs 1,2,3) then that element must include ", ". My example just has comma so if you use that with a string "1, 2, 3"then
    the resulting array will still have 3 elements but the 2nd and 3rd elements of the array will have a preceding space which will cause your dataset to error with the same error. As long as there are no non-numeric characters in any of the elements, the split6
    will create the text array, SSRS will dynamically generate the correct "IN"syntax (comma separated) and SQL will convert the elements from VARCHAR to INT on the fly.
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • How can we pass the master report value in to detail  report

    Hi All,
    My question is how can I pass the master report value in to detail (Child) report filter?
    I mean I have one master report if I click on employee name then I have to pass the employee id in to details report filter. Then detail report will display data for that particular employee.
    How can I achieve this one in OBIEE?
    Please help me to resolve this issue. Thanks in advance for your time and support.

    In that case, you should look at using Go Url. In your column formula for the employee name, create a hyperlink to the detail report and pass the employee id.
    Take a look at this post: Re: Dyanmic display of the Image Link URL
    Thanks!

  • Hierarchal Columns and Passing Values to a Detail Report (Action Links)

    I have a question in OBIEE 11.1.1.5 around Hierarchal Columns and passing the values to a detail report. I have create a report with a Hierarchal column (Two Levels only), Month Column and a metric.
    I created a detail report and see both columns used in the hierarchy to "is Prompted" as well as the Month column.
    On the Summary report I put an Action Link on the Metric to navigate to this Detail Report. When I select the metric I see that the Month value gets passed to the Detail Report but none of the Hierarchal columns have been passed at all.
    When I replace the hierarchal column with just the two columns, the values get passed fine.
    Is this a known issue with Hierarchal columns? Is this functionality even available?
    Thanks

    I am assuming then that no one has attempted this on the forum?

  • Passing parameter from Summary to Detail report

    Hi,
    I have a summary report that has ID. Clicking on ID leads ot detail report. However, the parameter stays on the detail report. I also want to enable stand alone viewing of the detail rpeort. How can that be achieved?
    Regards

    User,
    What is your name?
    You could move the parameter/item to the detail page. Perhaps change it from a hidden item (if it is) to a visible item that users could select from. Then all you're doing when you come from the summary to the detail is setting that item's value.
    Note that if the item changes pages you'll want to change the name of the item and therefore any references to it. To make sure you don't miss anything you'll want to run the app though Patrick's APEX Essentials: http://www.inside-oracle-apex.com/apex-essentials/ (this will be integrated in APEX 4)
    Regards,
    Dan
    Blog: http://DanielMcGhan.us/
    Work: http://SkillBuilders.com/apex/

  • How to Pass multiple parameter into single store procedure

    How to Pass multiple parameter into single store procedure
    like a one to many relationship.
    it is possible then reply me immediatly

    you mean like this .....
    CREATE OR REPLACE procedure display_me(in_param in varchar2,in_default in varchar2 := 'Default') is
    BEGIN
    DBMS_OUTPUT.put_line ('Values is .....'||in_param || '....'||in_default);
    END display_me;
    CREATE OR REPLACE procedure display_me_2 as
    cnt integer :=0;
    BEGIN
    For c1_rec In (SELECT empno,deptno FROM test_emp) Loop
         display_me(in_param => c1_rec.empno);
         cnt := cnt+1;
         end loop;
         DBMS_OUTPUT.put_line('Total record count is ....'||cnt);
    END display_me_2;
    SQL > exec display_me_2
    Values is .....9999....Default
    Values is .....4567....Default
    Values is .....2345....Default
    Values is .....7369....Default
    Values is .....7499....Default
    Values is .....7521....Default
    Values is .....7566....Default
    Values is .....7654....Default
    Values is .....7698....Default
    Values is .....7782....Default
    Values is .....7788....Default
    Values is .....7839....Default
    Values is .....7844....Default
    Values is .....7876....Default
    Values is .....7900....Default
    Values is .....7902....Default
    Values is .....7934....Default
    Values is .....1234....Default
    Total record count is ....18

  • Passing Multiple Single Values from Sender Query to Receiver Query in RRI

    Dear All.
    We have 2 - Bex Reports ZBEX_1 & ZBEX_2
    1. In ZBEX_1 having the fileds data like the below.
    Account Doc. Number - Clearing Document --- Amount
    12345                  -  65432                --- 100
    12346                  -  54321               ---  50
    2. In ZBEX_2 having the following data.
    Account Doc.Number -- Amount
    45342                     - 10
    66666                        -  100
    65432                       -   10
    54321                      - 5
    3. I am Traying to create RRI Between ZBEX_1 & ZBEX_2 , with Sender query as ZBEX_1 and Receiver query as ZBEX_2
    If I drilldown from ZBEX_1 need to show the following output in the ZBEX_2
    Account Doc. Number  -  Amount
    65432                       -     10
    54321                      -     5
    i.e If Clearing Documnet in the ZBEX_1 is same as Account Doc. Number in ZBEX_2 those Account Doc. Numbers I have to show in the output of ZBEX_2 RRI Report.
    Both the records I have to show at a time.
    So please suggest me
    1. How to pass Multiple Single Values to Next Query using RRI
    2. How to Map Clearing Document to Account Doc. Number in RRI.
    NOTE: Account Doc. Num length is same as Clearing Document
    Please suggest me.
    Thanks & Regards,
    Kiran Manyam

    Your scenario of passing values from multiple records in Source does not suit well for RRI Jumps.
    In ZBEX_2 query, create a Replacement path variable on Clearing Document. In that Replacement path variable, use the Replacement with query option and choose the ZBEX_1 as the underlying query source.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/bd/589b3c494d8e15e10000000a114084/frameset.htm
    When you execute ZBEX_2, what ever clearing document values that ZBEX_1 has will be passed through the replacement path variable as a filter to the ZBEX_2
    Hope it helps!
    Uday Pothireddy

  • Is it possible to pass a formula value from a sub-report to a main report

    Hi there,
    Im trying to pass a formula value from a Sub-report back upto into my Main report but the value doesnt seem to be getting passed up. Ive tried it the other way around, that is, passing a value from the main report to the sub-report and that works fine.
    Below is an example of what I am trying to do but it is not working. In my sub-report Ive declared a formula variable as,
    formula name=main_subIntRatePageCount
    Shared NumberVar subIntRatePageCount := TotalPageCount;
    and in the Main report Ive declared the formula variable as,
    formula name=subIntRatePageCount
    Shared NumberVar subIntRatePageCount;
    subIntRatePageCount;
    I want the value assigned to "subIntRatePageCount" in my Sub-Report to be available to my Main report.
    The problem I am trying to solve is that the sub-report is spilling over onto two pages, and I need a way of updating the page display on the main report to reflect this. The page display is of format, "displaying page 1 of  3", but its not taking into account the extra page produced by the sub-report, so it should say "displaying page 1 of 4".

    Also thanks Raghavendra, Asha,
    I've tried adding the "whileprintingrecords" statement but that doesnt seem to make any difference.
    I notice that the subReport is being called from my the GroupFooter section of the main report, and I am trying to reference the variable in the main repot in the Page Footer section. Could it be that the variable hasnt been calculated in the Page Footer by the time I calculate it in sub-Report? I thought Crystal Reports does at least 5 passes over the report evaluating all the formulas before it prints the report?
    The problem Im trying to solve is I need to know how many pages my report will have before its completed, so that i can print the statement "displaying page 1 of X", and X is currently not being calculated correctly because the sub-report is printing onto 2 pages and not 1 so the report thinks I have 1 of X pages and not X+1.
    Regards
    Robert.

  • Passing multiple single values to a Planning Sequence

    Hi All,
          We are using BEx Analyzer for  planning. We  are passing multiple single values for a single variable , to a IP-planning sequence.  Planning sequence is only taking the last value passed and ignoring the rest.
    Multiple variable values are passed as below:
    Name                            Index                 Value
    VAR_NAME_1     1     ZCC
    VAR_LINES     1     5
    VAR_VALUE_1     1     A10000001
    VAR_VALUE_1     1     A10000002
    VAR_VALUE_1     1     A10000003
    VAR_VALUE_1     1     A10000004
    VAR_VALUE_1     1     A10000005
    These cell references are passed to "command button" through the "Command Range" property.
    The values are calculated correctly but for only one Cost center (last one in the list) , In this case only data for the Cost Center "A10000005"  is processed and rest of the cost centers are ignored.
    What am I missing here? I appreciate your help.
    Patch Levels:
    SAP GUI  7.10 (Patch 16)
    BEx Analyzer 7.X SP 12
    Thank you,
    Math

    Hi Indu Sharma  - I have tried several combinations, but did not work.
    VAR_VALUE_1         
    VAR_VALUE_2         
    VAR_VALUE_3         
    VAR_VALUE_4         
    VAR_VALUE_5 
    VAR_VALUE_1        
    VAR_VALUE_1     
    VAR_VALUE_1        
    VAR_VALUE_1        
    VAR_VALUE_1  
    VAR_VALUE_EXT_1         
    VAR_VALUE_EXT_2         
    VAR_VALUE_EXT_3         
    VAR_VALUE_EXT_4         
    VAR_VALUE_EXT_5 
    Thank you,
    Math

  • Passing multiple single values in Customer Exit Variables

    Hi,
    I have one requirement to Pass multiple single values in Customer Exit Variable.
    If the user gives 2010 i need to get value previous fisacal year(2009),if its 2009, we need to get 2009.
    Just requirement is like how to pass multiple single values?
    Thanks.

    Hi..
    For this create a variable- Types of variable= Characteristics Value> Processing type as Customer Exit-->Reference Char as Fiscal year..
    Try this code..
        when 'xxxx'.
          DATA: lv_zp0003_month(2) TYPE n,
                  lv_zp0003_year(4) TYPE n.
          CLEAR: lv_zp0003_month, lv_zp0003_year.
          lv_zp0003_month = sy-datum+4(2).
          lv_zp0003_year = sy-datum(4).
    If the month is January the year is set to previous year
          IF lv_zp0003_month = '01'.
            lv_zp0003_year = lv_zp0003_year - 1.
           l_s_range-low = lv_zp0003_year.
    Else the year is set to actual
          ELSE.
            l_s_range-low = lv_zp0003_year.
          ENDIF.
          IF l_s_range-low = l_s_range-high.
            l_s_range-opt = 'EQ'.
          ELSEIF l_s_range-high IS INITIAL.
            l_s_range-opt = 'EQ'.
          ELSEIF l_s_range-low LT l_s_range-high.
            l_s_range-opt = 'BT'.
          ENDIF.
          l_s_range-sign = 'I'.
          APPEND l_s_range TO e_t_range.
    Hope this helps.
    Regards.
    AKG

  • Passing Multiple Single values in User Exits

    Hello All,
    I have a requirement where in, a user could enter either a single value, multiple single values or a combination of a range and single values.
    This set of values need to be passed on to a variable with in a user exit. I have been able to get either one single value to pass or one single range. I am unable to pass on multiple single values or a combo of a range and single value from the user entry.
    I would appreciate if anyone could help me with the structure of the code to pass multiple single values or combo.
    I was wondering if I would need to pass the values into an internal table first and then pass it to the user exit variable. However, as I am not a strong ABAP resource, I am struggling.
    Any and all help is deeply appreciated.
    Warm regards
    Sunil

    Hello Marc,
    There are two requirements which I was trying to address.
    1. IN few queries, the users enter either a range of profit centers or multiple single values in the pop-up window. I need to pass those values from that variable to an variable of type USer Exit to derive partner profit center values with in the query.
    For this I have been able to pass values for either a single value or a single range. I am unable to pass on values for multiple single values or a combo of a range and single values.
    2. I am trying to create a query for the top 5 customers to be used in the Corporate Performance Monitor. However, when I am trying to use the variable of type "replacement path", the system does not allow me to release it for OLE DB for OLAP.
    To obviate this problem, I was hoping to create a variable of typeUSer Exit" and then pass the values from the variable of type "replacement path" to this variable.
    Is it a workable solution? I was hoping that the method to pass the values in both the above scenarios might be similar.
    Please guide me.
    Warm regards
    Sunil

  • How to pass multiple MDX values for a single parameter into a drill-through report?

    I'm thinking this will be an easy question for any experienced SSRS/MDX developers, at least I hope so!  I've created a report that gives the user the option to choose viewing data for the current/active week, or YTD.  Depending on which link the
    user selects, the report simply calls itself and needs to pass in the parameter value for Active week.  If it's active week, the parameter value will simply be "true".  If it's YTD, the parameter value needs to be both "True" and "False" so the current
    week's data is accounted for as well.  I've set everything up except for the final step, and I have no idea what to type into the Value field below.  I've tried different things: false, as you see below (it errors saying I'm missing the parameter
    value), the value in MDX format: =[School Dates].[Active Week].&[True] (it said I was missing a bracket), a 1 instead of the word true (again, missing a parameter value).  Nothing is working.
    So my question is kindof two-fold: 1) how do you pass in the value at all and 2) more specifically, how do you pass in multiple values (both true & false) ??

    I'm sorry for being so dense, but I'm not quite following, although what I've tried makes me think if I can follow you, it will work :)
    To answer your initial questions, you are correct with both your assumptions:
    1) detailType is the parameter that specificies YTD/Weekly, this is a "report defined" parameter that I am using to determine which Row Group to display (either YTD or Weekly)
    2) SchoolDaysActiveWeek is the parameter that is being set to either true or false -- this is a field in the cube that states whether that record is for the current week or not
    So in following your instructions, well that's the problem I'm not quite following :)
    1) When you say Delete the SchoolDaysActiveWeek parameter from the report only, do you mean to mark the parameter as Hidden?  If so, I've done this.
    2) I'm not quite sure where to use the statement you provided me.  You said to put it in the dataset, but I don't know which dataset.  I assume you mean the "main" dataset (as opposed to the hidden dataset that gets generated when you mark a field
    as a parameter).  If this is the case, the only place I could see that would allow you to use such a statement is in the Filter section of the properties.  I tried this, and it did not generate any errors, but it also kept my report groups from displaying
    -- it just showed a blank report, so I think it probably wasn't bringing back any rows to populate them with.
    I also tried going into the Expression section for the SchoolDaysActiveWeek parameter in the second screenshot and placing the statement there.  When I did this and ran the report, I would get the following error:
    The 'SchoolDaysActiveWeek' parameter is missing a value
    So what am I missing!? 
    Also, thanks for taking the time to respond!!

  • Pass querystring parameter value to crystal report

    Post Author: hani1426
    CA Forum: .NET
    Hi all,
    I am new in using crystal reports
    I want to print an invoice with it's items in a crystal report,I have aseparated page which contains a GridView of invoices and it has a hyperlink field column which parse the ID of the invoice to the page of the crystal report
    In my crystal report I am using "Microsoft OLE DB Provider for SQL Server" Connection which connects to my local instance of SQL server express edition and then add a "command" to obtain the invoice details
    BUT: when adding a parameter to my command it gives an error which description is: "Must declare the scalar variable @ID"
    please how can I add this parameter
    thanks for any help
    bye

    I responded to your other thread:
    pass parameters from vb.net to crystal report
    Please do not cross post. See the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]
    Closing and locking this thread.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Print Multiple Parameter Value in Crystal Report 2008

    Hello and Hi
    i want to select multiple warehouse  in a pramater , i select and report working but parameter print only first parameter  value on report.how can print all selected values on report

    Hi
    I am assuming you select warehouses  WH1,WH2,WH3,.......
    You have to create a formula in Crystal
    It should look like this
    Join({?YourParamaterName},",")
    Place the formula on your report.
    The last Part of the formula is the "notation break"  between every parameter returned. In this case a >   ,   <
    Return would be WH1,WH2,WH3,.......
    Join({?YourParamaterName},"#")  would return  WH1#WH2#WH3#.......
    Hope you get the idea
    If this solution helps, please rate me.
    Regards
    Burger

Maybe you are looking for

  • Two different main windows in one form?

    Hello - I have a requirement to print a list at the end of an invoice printout.  The invoice can cover multiple pages, and the secondary list can also cover multiple pages, one page per material.  So essentially I need two different definitions of a

  • How to emabed BI Publisher report  to a different application using GO URL

    Hi all, How to emabed BI Publisher report to a different application using GO URL. I put the BI Publisher report in dashboard and create a go url but the problem is it is showing top header and all dashboard names present in my dashboard. I want to s

  • Links in PDF don't work on Mac conversion?

    I am working with Word 2011 on a Mac. My document has linked TOC and many internal links and cross references. When I convert to PDF, NONE of the work, whether I use "Save As PDF," Distiller, or Acrobat XI Pro... Is this a known limitation? Is there

  • Issue with Removing the Patch Set Software 9.2.0.8

    Hi experts, I have issue with removing the patch set software 9.2.0.8 I'm working on solaris box recently ugraded to 9.2.0.8 from 9.2.0.7. however i want to downgrade now. I have followed the document 4547809 mentioned. Now the real issue is when i r

  • Random and frequent reboots

    Hi, I pre-ordered a N900 two months ago. I finally got it yesterday, and since then I've been experiencing random and frequent reboots of the device. I don't have to do anything fancy, it simply reboots from time to time without warning. It's a real