Display multiple parameters in report header

i am attempting to display a multiple parameter selection in my report header
i user
join({?parameter},",")
in the stored proc it is a varchar
in the formula editor i receive this error
a string array is required here
what do i need to do to display the selected parameter values
i have used this function before with varchars and have had no problems

i used the following syntax in my sp which produced the correct results. i just placed the parameter in the header without using the join function and it works like a charm.
ALTER   PROCEDURE [dbo].[Pr_orn_whse_rcpts]          
     (@From_Crt_Dte     datetime ,
      @To_Crt_Dte     datetime,
     @whse          varchar(90))
AS          
CREATE TABLE #T_Localwhs
     warehouse varchar(6) null
DECLARE
     @var     varchar(6),
     @i     numeric,
     @whs     varchar(6),
     @chk     numeric
SET @i = 1
SET @var = (charindex(',',@whse))
IF @var <> 0
     BEGIN
     WHILE (@i < @var)
          BEGIN
               --SET @var = (CHARINDEX(',',@whse))
               SET @whs = LTRIM(LEFT(@whse, (@var-1)))
               INSERT #T_Localwhs (warehouse) VALUES (@whs)
               SET @whse = RIGHT(@whse, (LEN(@whse)-@var))
               SET @var = (CHARINDEX(',',@whse))
          END
     INSERT #T_Localwhs (warehouse) VALUES (LTRIM(@whse))
     END
ELSE
     BEGIN
     INSERT #T_Localwhs (warehouse) VALUES (LTRIM(@whse))
     END
then you add a nested query to join it to the sp. as below. above your where statement.
JOIN     
          SELECT DISTINCT
               Warehouse
          FROM      #T_Localwhs
          ) TW
     ON     in_wthdr_tbl.in_wthdr_frwhs = TW.warehouse
WHERE

Similar Messages

  • Displaying Date Parameters in Report Heading

    Post Author: Jim-1003
    CA Forum: Formula
    Hello,
    I am new to Crystal Reports, and I am trying to improve an existing report definition so that the beginning and end dates selected by the user are displayed as part of the report heading.  I saw something similar in the report samples, but the sample uses custom functions that apply only to that report -- cdFormatDateRange and cdSpecialDateRange.  I have not found any documentation on how those functions were created or how to use them. Any help you can give me would be greatly appreciated!
    Thanks,
    Jim

    Post Author: Jim-1003
    CA Forum: Formula
    After some digging, I did find out more.  First of all, in the options for my Parameter, the option to allow multiple entries was set to true, so I didn't really have a range, but an array of ranges, which confused the editor.
    Second, I finally did find the source code for cdFormatDateRange, which allowed me to reuse it by copying it into the clipboard and pasting it into my report. 

  • Show multiple parameters on report

    Hi, most of the reports I make have multiple parameters, for example, I want to show the number of calls received for accounts and technical combined. I tried using the join function like this Join ({?Workgroup},',')   but it just doesn't work. I get an error saying "A String array is required here".
    Any ideas on how I can get this working? I've never worked with arrays before.
    Thanks
    Paul

    Try this
    local stringvar output;
    local numbervar x;
    for x := 1 to ubound({?Filter})
    do
    output := output+totext({?Filter}[x])+","
    output
    Regards,
    Raghavendra

  • How to display multiple column in report

    Hi Abaper,
    I have client requirment to develop new report for sim hotel.
    The requirment is we have select multiple hotel , based on hotel selection the report will display, the report layout like:
    Hotel1               |Hotel2               |Hotel 3          
    Day     |Month     |Year     |Day     |Month     |Year     |Day     |Month     |Year
    Please any one can give me idea  how to develop same layout for this requirment.
    Thanks in Advance.
    Regards,
    Sourav

    Hi,
    U can use write statement like below
    write:/ 'Day 1'.
    write:20 'Year 1'.
    This will leave 20 spaces between Day 1 and Year 1.
    For more information u can go to transaction 'ABAPDOCU' and in Keyword help type 'Write' u will get all options u can use with write statement.
    Let me know further.
    Cheers,
    Parth Parikh

  • Problem  to display multiple images in report!

    Hi,
    I have 3 tables, in each table i have a column with an image "blob"!
    I have creat a view with this 3 tables and a report of this view.
    My problem is that when i try to show one image column in report, "there is no problem", but when i try to show two or tree column´s with images, it display's only the last image that i call in report!
    select     "V_VIEW"."ID_STATE" as "ID_STATE",
         "V_VIEW"."STATE" as "STATE",
         "V_VIEW"."ID_TABLE" as "ID_TABLE",
         "V_VIEW"."NAME" as "NAME",
         "V_VIEW"."ID_PRIORI" as "ID_PRIORI",
         "V_VIEW"."PRIORI" as "PRIORI",
         "V_VIEW"."ID_PRODUCT" as "ID_PRODUCT",
         "V_VIEW"."PRODUCT" as "PRODUCT" ,
    dbms_lob.getlength("V_VIEW"."IMAGE") IMAGEPRODUCT,
    dbms_lob.getlength("V_VIEW"."IMAGEPRIORI") IMAGEPRIORI,
    dbms_lob.getlength("V_VIEW"."IMAGESTATE") IMAGESTATE
    from     "V_VIEW" "V_VIEW"
    Using normal standart report with in report atributes column:
    IMAGE:T_STATES:IMAGESTATE:ID_STATE::::::inline:
    What are i making wrong, in this case he does only make the last dbms_lob.getlength and shows only dbms_lob.getlength(IMAGESTATE) IMAGESTATE;
    If i change the order of the report and put in the end of the code:
    dbms_lob.getlength(IMAGETYPE) IMAGETYPE, the he shows this last image!
    I have try to make a demonstration of my problem on this forum, so i have creat an example on apex.oracle.com and there it works just fine, showing all the images of report.
    i am using apex 3.1.0.00.32
    Why doesn't the same example work in my aplication.
    If someone can have a look at working example:
    http://apex.oracle.com/pls/otn/f?p=53120:1:1299118515377853:::::
    pepe
    pepe
    pepe25
    Thank's in advance;
    Pepe

    Pepe,
    Is the first report on the page working correctly? I think so. So I don't see an example of what you described.
    I do see that there are no images in the second report, but that's not the same as the first problem you described, is it?
    Scott

  • How to send multiple parameters to reports with REPORT_DESTYPE,FILE

    Dear members,
    I have the following code which call a REPORT from a FORM, and send the REPORT to printer:
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'xtran_id='||:tran_id||' paramform=no');in the following line I want to send 2 parameters.
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'xtran_id='||:tran_id||' &p_user='||:user||' paramform=no');here i have added the 2nd parameter, but its not printed on report.
    where am I wrong?
    Regards:
    Edited by: user2040934 on Jan 17, 2013 3:50 PM

    user2040934 wrote:
    Dear AlexDiniasi ,
    thanks for you reply.
    here my code:
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'xtran_id='||:ws_sale_m.tran_id||' '||'p_username='||:dummy.user||' paramform=no');but didn't find / show the 2nd parameter on report p_username, how to debug? where am I wrong?Hi,
    Add the following line at DECLARE Section
    QT VARCHAR2(10) :='''';then try the following line instead of u'r line
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no xtran_id='||QT||:ws_sale_m.tran_id||QT||' p_username='||QT||:dummy.user||QT);Hope this works...
    Hamid
    If someone's response is helpful or correct, please mark it accordingly.*

  • Passing multiple parameters to report using  run_report_object

    Can someone give an example of passing more than 1 parameter from a form to a report using run_report_object.
    Thanks

    otn.oracle.com/products/forms --> collateral
    A Reports integration whitepaper exists for all releases of Oracle Forms, also containing this information.
    Frank

  • SSRS - Is there a multi thread safe way of displaying information from a DataSet in a Report Header?

     In order to dynamically display data in the Report Header based in the current record of the Dataset, we started using Shared Variables, we initially used ReportItems!SomeTextbox.Value, but we noticed that when SomeTextbox was not rendered in the body
    (usually because a comment section grow to occupy most of the page if not more than one page), then the ReportItem printed a blank/null value.
    So, a method was defined in the Code section of the report that would set the value to the shared variable:
    public shared Params as String
    public shared Function SetValues(Param as String ) as String
    Params = Param
    Return Params 
    End Function
    Which would be called in the detail section of the tablix, then in the header a textbox would hold the following expression:
    =Code.Params
    This worked beautifully since, it now didn't mattered that the body section didn't had the SetValues call, the variable persited and the Header displayed the correct value. Our problem now is that when the report is being called in different threads with
    different data, the variable being shared/static gets modified by all the reports being run at the same time. 
    So far I've tried several things:
    - The variables need to be shared, otherwise the value set in the Body can't be seen by the header.
    - Using Hashtables behaves exactly like the ReportItem option.
    - Using a C# DLL with non static variables to take care of this, didn't work because apparently when the DLL is being called by the Body generates a different instance of the DLL than when it's called from the header.
    So is there a way to deal with this issue in a multi thread safe way?
    Thanks in advance!
     

    Hi Angel,
    Per my understanding that you want to dynamic display the group data in the report header, you have set page break based on the group, so when click to the next page, the report hearder will change according to the value in the group, when you are using
    the shared variables you got the multiple thread safe problem, right?
    I have tested on my local environment and can reproduce the issue, according to the multiple safe problem the better way is to use the harshtable behaves in the custom code,  you have mentioned that you have tryied touse the harshtable but finally got
    the same result as using the ReportItem!TextBox.Value, the problem can be cuased by the logic of the code that not works fine.
    Please reference to the custom code below which works fine and can get all the expect value display on every page:
    Shared ht As System.Collections.Hashtable = New System.Collections.Hashtable
    Public Function SetGroupHeader( ByVal group As Object _
    ,ByRef groupName As String _
    ,ByRef userID As String) As String
    Dim key As String = groupName & userID
    If Not group Is Nothing Then
    Dim g As String = CType(group, String)
    If Not (ht.ContainsKey(key)) Then
    ' must be the first pass so set the current group to group
    ht.Add(key, g)
    Else
    If Not (ht(key).Equals(g)) Then
    ht(key) = g
    End If
    End If
    End If
    Return ht(key)
    End Function
    Using this exprssion in the textbox of the reportheader:
    =Code.SetGroupHeader(ReportItems!Language.Value,"GroupName", User!UserID)
    Links belowe about the hashtable and the mutiple threads safe problem for your reference:
    http://stackoverflow.com/questions/2067537/ssrs-code-shared-variables-and-simultaneous-report-execution
    http://sqlserverbiblog.wordpress.com/2011/10/10/using-custom-code-functions-in-reporting-services-reports/
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu

  • How to create multiple report header line?

    Dear Experts!
    I am creating a report, which needs multiple lines for report header e.g. First row should have Report Name in bold. Then next line should have the month for which the report was executed and last line should have the person, who executed it.
    I know that I can get the text of these values by text variable but the problem is to format it and to put the text in different report header lines.
    Please help!
    Thank you,
    Tyagi

    Dear Tyagi,
    Are you using BEx Report Designer?
    You can use drag-and-drop for moving the fields. Just click on the cell and as the buttons appear, move it to your destination cell.
    Regards, Karol - SAP BI Development

  • Logo on   Report  Header

    Hi  Guru's
    i am new to obiee i just started report devlopment could you please let me know how to display logo in my report header.

    Place your Desired logo n the below locations,
    Drive:\Oracle\Middleware\Oracle_BI1\bifoundation\web\app\res\s_blafp\images
    Drive:\Oracle\Middleware\user_projects\domains\bifoundation_domain\servers\AdminServer\tmp\.appmergegen_1291264099332\analytics.ear\ukjjdc\res\s_blafp\images
    Drive:\Oracle\Middleware\user_projects\domains\bifoundation_domain\servers\bi_server1\tmp\_WL_user\analytics_11.1.1\7dezjl\war\res\s_blafp\images
    After placing the image restart the BI Services.
    In Logo of Title View the format is like:- fmap:Images/yourimage.jpg
    Mark if helps,
    Do let me know if you need any help on this.
    Thanks,

  • Need help showing multiple parameters in a report header

    Post Author: Annette
    CA Forum: Formula
    hi-- i am new to this and i have created a report where the person picks one or more items (they are different hospital suites) and i need for them to print on the report header all of the selections that they chose. right now it only prints the name of the first one they choose..
    any help would be good..
    i do know it's a string value....
    thank-you for anything you can help me with....
    basically if 1 is picked then it needs to state that name, if 2 or more are picked id like it to say Name, name, name, etx...

    Post Author: Annette
    CA Forum: Formula
    the actual parameter is a number, but what im trying to populate on the heading is the name of the number..
    for example... when you choose the resource unit of 31 when you refresh i want it to show the name of it which is ORA Surgery.... but if they choose 31 & 53 then id like it to show ORA Surgery, ORD Surgery.... right now it just pulls the first name choosen.. does that make sense..
    so the parameter is a number, but the name(the one i want populated)  is a string
    and oh gosh,, thanks for your quick responses..

  • Date range to be displayed  & Displaying multiple values on the report

    Hi,
    I have date range parameters, but I also need it to be displayed it on the report. Is there any way I can display it. E.G If a parameter is created one can drag and drop it on the report if it needs to be displayed on the report, I tried to do the same for the date range parameter but it does not work.
    Also If a parameter is created by selecting the option 'Allow Multiple Values', and if you drag and drop it on the report only the first value is displayed and the rest does not show. Has anyone tried this before and been successful in displaying multiple values in the report.
    Thanks in advance.

    Hi,
    A multi-value parameter is actually treated as an array in Crystal Reports.
    To display the values selected in the parameter, create a formula from the Field Explorer and type this code:
    Join({?ParameterName},",");
    Place this formula on the header or the footer sections of the report.
    Regarding the date range issue, please follow Sastry's advice and it should work fine.
    Make sure you're using the parameter in the Minimum and Maximum functions. For eg: If I was to create a date range parameter called OrderDate, my formula to show the start date would look like this:
    Minimum({?OrderDate})
    -Abhilash

  • How to display multiple reports at the same time

    Hi,
    I'm trying to display multiple reports at the same time, each one in separates tabs or windows using Forms 11g 11.1.1.6
    I have a button which has a call to a procedure which makes use of rp2rro library to show the specific reports, for example:
    call_report('report1');
    call_report('report2');
    call_report('report3');
    call_report('report4');
    The main problem is that, just the last report is been displayed.
    Is there some way to display report1, report2 etc in separate tabs or windows ??
    Regards
    Carlos

    You shouldn't have a problem calling different reports at once. As long as you're using Forms 11g they show up in different windows.
    The question is how you are calling the report.
    Here is how I manipulate it.
    After I pass parameters with the ADD_PARAMETER built-in I set some key values (destype, desformat, desname) with the RP2RRO's procedures.
    Finally calling RP2RRO.RP2RRO_RUN_PRODUCT and then WEB.SHOW_DOCUMENT passing the correct procedure parameters the report comes up in a window. If you repeat the above changing the appropriate variables (the report_name in the RP2RRO_RUN_PRODUCT and so on) you can get multiple reports in different windows.

  • Passing multiple parameters between two report portlets on the same page

    Hi,
    I want to pass multiple parameters between two report portlets on the same page.
    I have been succussful passing a single parameter between two portlets. The
    following are the steps :
    (1) Created first report based on the query
    SELECT htf.anchor('http://192.168.0.84:7778/servlet/page?&_pageid=97&_dad=portal30&_schema=portal30&_mode=3&dept_code='||DEPTNO,DEPTNO) Department, ename FROM EMP;
    (2) Created 2nd report
    select * from EMP where DEPTNO = :dept_code
    (3) Added pl/sql code before display page on the 2nd report
    portal30.wwv_name_value.replace_value(
    l_arg_names, l_arg_values,
    p_reference_path||'.dept_code',portal30.wwv_standard_util.string_to_table2(nvl(g
    et_value('dept_code'),10)));
    (4) Created a page and added these reports as portlets.
    Sofar it works fine for one parameter (deptno) . Now I want to add one more
    parameter say empno to my first report query and would like to pass both the
    parameters deptno and empno to the 2nd report. Please tell me how to pass multiple parameters ?
    Thanks
    Asim

    Hi,
    You will have to do the same thing
    The select will be like this
    SELECT htf.anchor('http://toolsweb.us.oracle.com:2000/servlet/page?_pageid=97&_dad=mb&_schema=mybugs&_mode=3&dept_code='||DEPTNO||'&empno='||empno,DEPTNO) Department,ename
    FROM EMP
    In the additional plsql code do the same for empno like this
    mybugs.wwv_name_value.replace_value(l_arg_names,l_arg_values, p_reference_path||'.dept_code',mybugs.wwv_standard_util.string_to_table2(nvl(get_value('dept_code'),10)));
    mybugs.wwv_name_value.replace_value(l_arg_names,l_arg_values, p_reference_path||'.empno',mybugs.wwv_standard_util.string_to_table2(get_value('empno')));
    Thanks,
    Sharmila

  • Display multiple records as sub-sections in the same report.

    I am using Crystal Reports (VS-2005).
    In a report, I have various sub-sections in the Details section. Each section represents a category and is connected with SQL command which uses LEFT OUTER JOIN.
    The first section is the main section and the subsequent sections are the child sections.
    Sometimes, a sub-section (other than the first main sub-section) picks multiple records of that category. In this case the report extends to multiple pages. Each report displays one record of this sub-section.
    I want to show the the same sub-section multiple times in the same report as opposed to multiple reports that are now automatically generated by Crystal Reports.
    How to handle this issue?

    This is a .NET programming forum related to Crystal Reports. Your question is best suited for our report design forum below. Also, when you post your question it will be helpful if you use report design terminology. We have elements like Report Header, Page Header, Groups, and Details sections. Just mentioning "sections" doesn't give us a good idea about what you are attempting to do.
    Check out the grouping options and see if it helps. You might need to create a formula to help you with your grouping though.
    If you like, I can move this to the design forum.
    [SAP Crystal Reports Design|SAP Crystal Reports;

Maybe you are looking for

  • Can't Send Email from Iphone Using Pop Account

    I have check our host names, ports, user name, passwords etc (all the account mail settings are OK) for incoming and outgoing servers. I can receive email fine but can't send them back out through the outgoing server. I am using the identical setting

  • I bought Songs from the Store but they did not show up in my library

    I bought two american idol performances today, when they finished downloading, they didn't show up in my library. I checked for available downloads and it said that everything has been downloaded. Of course i was billed for these items in my purchase

  • How to add a total at the end of a characteristic column

    Hi All, There is a report where sales document number(0doc_number)is displayed in one of the columns, now There is a requirement where I need to add a total count of those doc numbers at the end of that column. I am not able to find a suitable way to

  • How to install a tcl file.

    I am using a corpus and installing the software has been a pain. I have unzipped a compressed file and sent it to a location on the C drive. The instructions tell me that I need to hit the install.tcl folder. When I do I get an error message from Rea

  • Safari unstable after update

    A little over a week ago I updated Safari to 4.0.4. Since then I have noticed that Safari crashes on websites that use a lot of flash. The spinning beach balls comes up and I end up having to force quit. I've tried uninstalling and reinstalling flash