How to pass a multivalue string parameter separated by comma in SSRS

i m using a parameter @paraBatchid which is a String (eg:test-3,test-4,test-5)
when i pass only one value it works fine .eg(test-3)
Now i have to use the values from Excel which will be copy pasted by the user concatenating the values with , and pasted in the textbox for batch Id.
i have used the join but it does not work for multivalue paramaters for some reason eg: Join(Parameters!paraBATCHID.Value,"','")
SELECT     RT.INVENTBATCHID, RT.ITEMID, RT.DATAAREAID, RT.GROSSWT, RT.NETMETALWT, RT.NETSTONEWT, RT.NETACCESSORIESWT, RT.DATE,
                      RT.QTY AS BatchQty, II.FILEPATH, CASE ITS.ITEMTYPE WHEN 3 THEN 'Accessories' ELSE RLSUBT.ITEMSUBTYPE END AS ITEMSUBTYPE,
                      RLSUBT.QTY, RLSUBT.QTYPERBATCHQTY, RLSUBT.DUALQTY, RLSUBT.DUALQTYPERBATCHQTY, RLSUBT.UNITID, RLSUBT.DUALUNITID,
                      ITS.DATAAREAID AS Expr1
FROM         ITEMIMAGES AS II RIGHT OUTER JOIN
                      REGISTRATIONTABLE AS RT INNER JOIN
                      REGISTRATIONLINESUBTYPE AS RLSUBT ON RT.INVENTBATCHID = RLSUBT.INVENTBATCHID AND
                      RT.DATAAREAID = RLSUBT.DATAAREAID RIGHT OUTER JOIN
                      ITEMTYPESETUP AS ITS ON RLSUBT.ITEMSUBTYPE = ITS.ITEMSUBTYPE ON II.ITEMID = RT.ITEMID AND II.MAINIMAGE = 1
WHERE     (RT.DATAAREAID = @paradataareaid) AND (RT.INVENTBATCHID IN (@parabatchid)) AND (ITS.DATAAREAID = 'vri')
NOW
WHERE     (RT.DATAAREAID = @paradataareaid) AND (RT.INVENTBATCHID IN ('test-3','test-4','test-5')) AND (ITS.DATAAREAID = 'vri')
the above Query Works fine in ..SQL but when these values is given to the parameter textbox in SSRS it does not work..

Hai
When you are sending the multi value parameter to the SQL it will be sent as (‘Value1,Value2,Value3’) but not as (‘Value1’,’Value2’,’Value3’) there is the problem for it.
We have to do this using the dynamic query.
Here I am providing you the SQL qr=uery can you check it, whether it is the requried one.
Here is the Query:
DECLARE @Query    NVARCHAR(4000)
SET @parabatchid = Char(39) + Replace(@parabatchid,',',Char(39)+','+Char(39)) + Char(39)
SET @Query = 'SELECT     RT.INVENTBATCHID
                                    , RT.ITEMID
                                    , RT.DATAAREAID
                                    , RT.GROSSWT
                                    , RT.NETMETALWT
                                    , RT.NETSTONEWT
                                    , RT.NETACCESSORIESWT
                                    , RT.DATE
                                    , RT.QTY AS BatchQty
                                    , II.FILEPATH
                                    , CASE ITS.ITEMTYPE WHEN 3 THEN ''Accessories'' ELSE RLSUBT.ITEMSUBTYPE END AS ITEMSUBTYPE
                                    , RLSUBT.QTY
                                    , RLSUBT.QTYPERBATCHQTY
                                    , RLSUBT.DUALQTY
                                    , RLSUBT.DUALQTYPERBATCHQTY
                                    , RLSUBT.UNITID
                                    , RLSUBT.DUALUNITID
                                    , ITS.DATAAREAID AS Expr1
FROM         PWC_ITEMIMAGES AS II
RIGHT OUTER JOIN    PWC_REGISTRATIONTABLE AS RT
INNER JOIN            PWC_REGISTRATIONLINESUBTYPE AS RLSUBT
      ON RT.INVENTBATCHID = RLSUBT.INVENTBATCHID
            AND RT.DATAAREAID = RLSUBT.DATAAREAID
RIGHT OUTER JOIN      PWC_ITEMTYPESETUP AS ITS
      ON RLSUBT.ITEMSUBTYPE = ITS.ITEMSUBTYPE
      ON II.ITEMID = RT.ITEMID AND II.MAINIMAGE = 1
WHERE     (RT.DATAAREAID = ' + @paradataareaid + ')
      AND (RT.INVENTBATCHID IN ( '+ @parabatchid + '))
      AND (ITS.DATAAREAID = ''vri'')'
PRINT 'QUERY : ' + ISNULL(@Query,'NULL')
Exec (@Query)

Similar Messages

  • How to pass more than one parameter

    Hello,
    This is my code.
    How to pass more than one parameter:
    SELECT:responsibility_name responsibility_name,
    LPAD(' ', 6*(LEVEL-1))
      || menu_entry.entry_sequence sequence ,
      LPAD(' ', 6*(LEVEL-1))
      || menu.user_menu_name SubMenu_Description ,
      LPAD(' ', 6*(LEVEL-1))
      || func.user_function_name Function_Description ,
      LPAD(' ', 6*(LEVEL-1))
      || menu_entry.prompt prompt
      ,menu.menu_id ,
      func.function_id
      --menu_entry.grant_flag Grant_Flag ,
      --DECODE( menu_entry.sub_menu_id , NULL, 'FUNCTION' , DECODE( menu_entry.function_id , NULL, 'SUBMENU' , 'BOTH') ) Type
    FROM fnd_menu_entries_vl menu_entry ,
      fnd_menus_tl menu ,
      fnd_form_functions_tl func
    WHERE menu_entry.sub_menu_id    = menu.menu_id(+)
    AND menu_entry.function_id      = func.function_id(+)
    AND MENU.LANGUAGE(+) = 'US'
    AND FUNC.LANGUAGE(+) = 'US'
    --AND func.user_function_name LIKE '%Primary Care Providers%'
    AND grant_flag                  = 'Y'
      START WITH menu_entry.menu_id =
      (SELECT menu2.menu_id
      FROM fnd_menus_tl menu2,apps.fnd_responsibility_vl resp
      WHERE menu2.menu_id=resp.menu_id
      and resp.responsibility_name= :responsibility_name
      --and menu2.user_menu_name = ('ATCO HR INQ USER'
      AND LANGUAGE = 'US'
      CONNECT BY MENU_ENTRY.MENU_ID = PRIOR MENU_ENTRY.SUB_MENU_ID
       and menu_entry.function_id not in (select func.function_id
                                       from --fnd_form_functions_vl fnc,
                                       apps.fnd_resp_functions exc,
                                       apps.fnd_responsibility_vl res
                                      where func.function_id = exc.action_id
                                      and res.responsibility_name =:responsibility_name
                                      and res.responsibility_id=exc.responsibility_id)
      and menu_entry.sub_menu_id  not in (select menu.menu_id
                                       from --fnd_menus_vl imn,
                                       apps.fnd_resp_functions exc,
                                       apps.fnd_responsibility_vl res
                                       where menu.menu_id = exc.action_id
                                       and res.responsibility_name =:responsibility_name
                                      and res.responsibility_id=exc.responsibility_id)
    ORDER SIBLINGS BY menu_entry.entry_sequence;
    Thank you for your help
    Shuishenming

    Hi, Ming,
    One way is to put the "parameters" in a table, and join to that table in your query.  If you make it a Global Temporary Table, then multiple sessions can run the query at the same time, and each can be seeing different responsibilities.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.  Since this problem involves parameters, you should give a couple of different sets of parameters, and the results you want from the same sample data for each set.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • How to pass this multi-value parameter via GoURL?

    Currency is equal to / is in 'USD', 'GBR', 'RUR'. How to pass such multi-value parameter via GoURL?
    P0=1&P1=eq&P2=Measures.Currency&P3=?

    Found. P0=1&P1=eq&P2=Measures.Currency&P3=3+USD+GBR+RUR

  • How to pass a combo box parameter on reporting services?

    How to pass a combo box parameter on reporting services?
    For example, a report has a parameter which is a combo box, its items came from a database query.
    Looks like the combo box didn't got populated and greyed out if I didn't pass the parameter.

    Hi LAScorpion,
    In Reporting Services, if we want to pass a combo box parameter (means signal-parameter) from one report (main report) to another report (subreport), we can enable an action with “Go to report” or “Go to URL” option to achieve the requirement. For more details,
    please see:
    Method1: Go to report
    Right-click a report item to open the properties dialog in subreport, click Action in the left pane.
    Enable Go to report action, then select the main report name in the drop-down list.
    Add a parameter as below:
    Select ID (a parameter name from main report) in the drop-down list of Name, and select [ID] (a field name from subreport) in the drop-down list of Value.
    Method2: Go to URL
    Right-click a report item to open the properties dialog in subreport, click Action in the left pane.
    Enable Go to URL action, the URL below is for your reference:
    ="javascript:void(window.open('http://server_name/ReportServer/Pages/ReportViewer.aspx?%2ffolder_name%2fmain_report_name&rs:Command=Render&parameter_name="& Parameters!parameter_name.Value &"'))"
    Besides, if the parameter’s values are based on other parameters, then the combo-box got greyed out when we haven’t select values in preceding parameters. For more details, please see:
    Cascading Parameters
    If there are any misunderstanding, please elaborate the issue for further investigation.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to pass multi value selection parameter to SAP Function Module?

    Hi ,
    Anyone know how to pass CR multi value parameter - array to SAP Function module ?
    eg  multi selection of customer in CR
    and then pass to Function module
    in SAP FM,  the SQL select these customer only
    How should the import parameter / table of SAP Function module designed?
    and how should CR pass the data to SAP FM
    thx
    John

    Moved to Integration Kit forum

  • How to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part

    Hi,
    I want to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part like mentioned below:
    http://server/pages/Default.aspx?Title=Arup&Title=Ratan
    But it always return those items whose "Title" value is "Arup". It is not returned any items whose "Title" is "Ratan".
    I have followed the
    http://office.microsoft.com/en-us/sharepointserver/HA102509991033.aspx#1
    Please suggest me.
    Thanks | Arup
    THanks! Arup R(MCTS)
    SucCeSS DoEs NOT MatTer.

    Hi DH, sorry for not being clear.
    It works when I create the connection from that web part that you want to be connected with the Query String Filter Web part. So let's say you created a web part page. Then you could connect a parameterized Excel Workbook to an Excel Web Access Web Part
    (or a Performance Point Dashboard etc.) and you insert it into your page and add
    a Query String Filter Web Part . Then you can connect them by editing the Query String Filter Web Part but also by editing the Excel Web Access Web Part. And only when I created from the latter it worked
    with multiple values for one parameter. If you have any more questions let me know. See you, Ingo

  • How to pass Visa Resoure Name parameter to labview dll in labwindows​​/cvi

    Hi, everyone
    I build a dll from labview, the prototype is : double  getchannelpower(double f, uintptr_t *VISAResourceName);
    I don't know how to pass VISAResourceName to this function.How can I get the VISAResourceName of this type(uintptr_t *)?
    Is it related to the paremeter ViPSession in function viOpen(ViSession sesn,ViRsrc rn,ViAccessMode am,ViUInt32 ti,ViPSession vi)?
    BRs,
    lotusky

    1. uintptr_t *VISAResourceName in the labview dll is connected to viOpen function as input parameter internally.
    2.I can call the labview dll in labview via CLF Node, when the VISAResourceName parameter is set  to Numeric(32-bit int or 32-bit usigned int) OR Adapt to data(Handle by Value). And I got the value of the VISAResourceName parameter, which is 0; When I directly connect 0 to the dll, it still works. But in labwindows, when  I pass 0 to the VISAResourceName parameter of the dll function, I got a FATAL RUN-TIME ERROR: The program has caused a 'General Protection' fault.
    mkossmann 已写:
    Could you check what exactly uintptr_t *VISAResourceName in your labview dll does.Might it be that it is connected to the labviews Dll internal ViOpen() ViSession output parameter ?.   And the name VISAResourceName is misleading.
    Another idea would be that Labview uses 32bit Unicode for the ResourceName. And you have to convert the C String to that Unicode first.

  • How to pass varchar2 in as parameter in SP

    I have a sp which takes dname as parameter (see below code), I
    tried 'ACCOUNTING', ''ACCOUNTING'' (2 single 's)
    and "ACCOUNTING" none of them worked. Could you tell me how to
    pass this in ( from pl/SQL and Java)?
    This is my code:
    CREATE OR REPLACE PACKAGE BODY testpkg1 AS
    procedure test(
    sum_cv IN OUT NOCOPY sumCur,
    name IN VARCHAR2 ) AS
    sql_statement VARCHAR2(100);
    where_statement VARCHAR2(100);
    BEGIN
    if name = ' ' then
    where_statement := ' ';
    else
    where_statement := ' AND d.dname = name ';
    end if;
    sql_statement :='SELECT e.* from emp e, dept d where d.deptno =
    e.deptno ' ||where_statement ;
    OPEN sum_cv FOR sql_statement ;
    END test;
    END;
    and this is how I execute:
         VARIABLE CV REFCURSOR
         EXECUTE testpkg1.test(:cv, 'ACCOUNTING' )
    Thanks

    The problem is in your where_statement; You left out the quotes
    on either side of name.  If you want your code to get executed
    like:
    OPEN   sum_cv
    FOR
    SELECT e.*
    FROM   emp e, dept d
    WHERE  d.deptno = e.deptno
    AND    d.dname = 'ACCOUNTING';
    then, in order to preserve the quotes around ACCOUNTING, your
    sql_statement must look something like:
    'SELECT e.*
    FROM   emp e, dept d
    WHERE  d.deptno = e.deptno '
    || ' AND    d.dname = ''' || name || ''''
    So, in order for the sql_statement to end up as above, the
    where_statement must look something like:
    ' AND d.dname = ''' || name || ''''
    It is a good practice to use DBMS_OUTPUT.PUT_LINE to display the
    sql_statement that you are trying to execute; It can make
    debugging a lot easier.  Please see suggested code below:
    SQL> EDIT testpkg1
    CREATE OR REPLACE PACKAGE testpkg1
    AS
      TYPE sumcur IS REF CURSOR;
      PROCEDURE test
        (sum_cv IN OUT NOCOPY sumcur,
         name   IN     VARCHAR2 DEFAULT NULL);
    END testpkg1;
    CREATE OR REPLACE PACKAGE BODY testpkg1
    AS
      PROCEDURE test
        (sum_cv IN OUT NOCOPY sumcur,
         name   IN     VARCHAR2 DEFAULT NULL)
      AS
        sql_statement VARCHAR2(100);
        where_statement VARCHAR2(100);
      BEGIN
        IF name IS NULL
        THEN
          where_statement := NULL;
        ELSE
    --NOTE THE ADDED SETS OF SINGLE QUOTES IN THE LINE BELOW:
          where_statement := ' AND d.dname = ''' || name || '''';
        END IF;
        sql_statement := 'SELECT e.* FROM emp e, dept d WHERE
    d.deptno = e.deptno '
        || where_statement;
        DBMS_OUTPUT.PUT_LINE (sql_statement);
        OPEN sum_cv FOR sql_statement;
      END test;
    END testpkg1;
    SQL> START testpkg1
    Package created.
    Package body created.
    To execute it from SQL*Plus, you would do just what you have
    been doing:
    SQL> VARIABLE cv REFCURSOR
    SQL> SET SERVEROUTPUT ON
    SQL> EXECUTE testpkg1.test (:cv, 'ACCOUNTING')
    SQL> PRINT cv
    SELECT e.* FROM emp e, dept d WHERE d.deptno = e.deptno  AND
    d.dname =
    'ACCOUNTING'
    PL/SQL procedure successfully completed.
         EMPNO ENAME      JOB              MGR HIREDATE        
    SAL       COMM
        DEPTNO STARS
          7782 CLARK      MANAGER         7839 09-JUN-81       2450
            10
          7839 KING       PRESIDENT            17-NOV-81       5000
            10
          7934 MILLER     CLERK           7782 23-JAN-82       1300
            10 *************

  • How to pass file name as parameter into url: or fo:external-graphic src

    Hello gurus,
    In my rtf I want to dynamically get the name of the image file and display the image in the report. If use hard coded image file name it works but if I try to get the name into a variable and pass that variable it is not working.
    Basically my client is having different logos for each operating unit. in the OA_MEDIA directory there are separate logos for each OU. during run time based on OU name we need to display the corresponding image. If I can get this entire path($OA_MEDIA/logo.jpg') in XML field<?CF_OU_LOGO?> then I'm able to print the logo using url:{CF_OU_LOGO}
    But I'm using seeded data source and I cant modify the data source, I need to handle this in RTF only. I could able to get the file name into a variable but not sure how to pass to url.
    could some one help me on this. I tried the following options
    <fo:external-graphic src="url($ln)" />
    url:{$ln} in web etc...
    here 'ln' is the variable which holds '$OA_MEDIA/logo.jpg'. ln is defined as <xsl:variable name="ln" select=".//CF_OPERATING_UNIT" />
    later I set the values as <?xdoxslt:set_variable($_XDOCTX, 'ln',translate( concat('${OA_MEDIA}/','Logo',.//CF_OPERATING_UNIT,'.jpg'),' ',''))?><?xdoxslt:get_variable($_XDOCTX, 'ln')?>
    thanks,
    Vijay

    Vijay
    What version of EBS is the customer running? I read somewhere that in R12 all of the concurrent parameters are passed to the XMLP template. I have not tried this but if true. You could create a conc program parameter that would hold the location of the image. You could either have the user pick the image or maybe derive it from the other parameter choices.
    Lets assume the token name is DLOGO you can reference that in your template.
    <?param:DLOGO?>
    this needs to be at the top of the template. Then where you need to embed the image just reference the value using
    $DLOGO
    You can embed this in the external graphic field
    As I mentioned I have not tested it yet, hopefully its there, if not there are ways around it. Try it first.
    Tim

  • How to pass more than one parameter using common...

    Hi,
    I am using ODP.NET with my 2005 VB
    I want to create function from where I can pass more than one parameter to execute SP, or query just like i created for SQL SERVER as below
    Public shared Function CreateParameter(ByVal paramname As String, ByVal paramvalue As Object) As DbParameter
    Dim param As DbParameter
    param = New SqlParameter
    param.ParameterName = paramname
    param.Value = paramvalue
    Return param
    End Function
    Public Shared Function ExecuteQuery(ByVal sql As String, ByVal commtype As CommandType, ByVal ParamArray parameter As DbParameter())
    Dim cmd As DbCommand = New SqlCommand()
    cmd.Connection = OpenConnection()
    cmd.CommandType = commtype
    cmd.CommandText = sql
    cmd.Parameters.AddRange(parameter)
    Dim RetVal As Integer = cmd.ExecuteNonQuery()
    Return RetVal
    End Function
    specially part is in bold to be converted
    I tried like but oracleCommand.parameters doesnt support AddRange
    please help me out
    Regards

    Hello,
    I used the following way:
    pCommand.CommandText = "Update " + sDataTable + " set "
    + sColumnName + " = :1 ";
    pCommand.Parameters.Add("ValueToDb",
    this.DefaultDbType,
    this.m_Value,
    System.Data.ParameterDirection.Input);
    Of course, you can add :2,... to your command text, too.
    The way back is:
    sEndOfTheClause += " RETURNING " + sDataTable + "." + sColName + " INTO :iNewValue";
    pCommand.CommandText = ... + sEndOfTheClause;
    pCommand.Parameters.Add("iNewValue", this.DefaultDbType,
    ParameterDirection.Output);
    bool bReturn = (pCommand.ExecuteNonQuery() != 0);
    if ((bReturn == true) && (pCommand.Parameters.Count > 0))
    this.Value = DataService.Convert<DATA_TYPE>(pCommand.Parameters[0].Value);
    ....

  • How to pass multi-value input parameter to SQL command

    I'm having trouble following the threads related to passing multi-value parameters to a SQL command.
    I need more details on the work-around that exists for using a dummy main report to GET the input parameters and pass them to a subreport parameter that uses the input parameters in its sql command WHERE clause.
    So far the main report prompts user to enter badge numbers into a multi-value string type parameter field called badgeNumber.
    The main report getRequesters command executes the following SQL:
    SELECT requester FROM lawprod.requester WHERE lawprod.requester.requester IN  '{?badgeNumber}'
    order by requester
    The main report also contains a formula called requesterList that concatenates the input parameters and separates the values with commas:  (Join ({?badgeNumber}, ", ")  
    So if user enters badge numbers 1 and 2 and 3 the value of requesterList is 1, 2, 3
    From the main report I've used the Insert Subreport command to choose an existing report, and used the link tab to link @requesterList to ?requester; where ?requester is a multi-value parameter that is used in the subreport's SQL query as shown below:
    WHERE (lawprod.ictrans.update_date <=  {?endDate} AND
           lawprod.ictrans.update_date >= {?startDate} AND
           lawprod.ictrans.doc_type = 'IS' AND
           lawprod.ictrans.system_cd = 'RQ' AND
           lawprod.mmdist.posting_type = 'O1')
          AND
          (lawprod.ictrans.company = lawprod.mmdist.company AND 
           lawprod.ictrans.system_cd = lawprod.mmdist.system_cd AND
           lawprod.ictrans.location = lawprod.mmdist.location AND
           lawprod.ictrans.doc_type = lawprod.mmdist.doc_type AND
           lawprod.ictrans.document = lawprod.mmdist.doc_number AND
           lawprod.ictrans.shipment_nbr = lawprod.mmdist.doc_nbr_num AND
           lawprod.ictrans.line_nbr = lawprod.mmdist.line_nbr AND
           lawprod.ictrans.component_seq = lawprod.mmdist.component_seq)
          AND
          (lawprod.ictrans.company = lawprod.reqline.company AND 
           lawprod.ictrans.document = lawprod.reqline.req_number_a AND
           lawprod.ictrans.line_nbr = lawprod.reqline.line_nbr AND
           lawprod.reqline.company = lawprod.reqheader.company AND
           lawprod.reqline.req_number = lawprod.reqheader.req_number)
           AND
           (lawprod.reqheader.requester in '{?requester}')
    Following execution of the main report, Crystal appears to prompt for three values as expected: badge numbers for the main report, and start and end dates needed by the subreport.   I can't figure out why Crystal XI returns no data. Can anyone explain what I'm missing?
    Edited by: Patricia Sims on Sep 21, 2009 9:30 PM

    The reason no data is returned is that the multiple values are not (properly?) passed to the main report's SQL.  The main report's SQL should be (MS SQL):
    select 1 as dummy
    This causes exactly one record to be returned, which will basically be ignored (except the fact that it will drive the subreport; any query that returns only 1 record will suffice...).
    Change the concatenation of the selected values to be (basic syntax):
    formula = "|" + join({?badgeNumber}, "|") + "|"
    The leading and trailing vertical bars are important (otherwise a database value of 1 might match a selection of 123).
    Pass the concatenated string as the parameter value to the subreport.  In your subreport, select records on (basic syntax):
    formula = (instr({?sr-badgeParam}, "|"+cstr({requester},"0") + "|") > 0)
    (assumes is numeric in the database, and is integer; modify or eliminate cstr() if otherwise...)
    Put your subreport on the detail format of the main report, and you're all set...
    HTH,
    Carl

  • How to pass refcursor as input parameter to a procedure in a package

    Hi there
    Please can anybody explain me with an small example for
    passing a procedure output(output should be a refcursor) and pass that refcursor values into a procedure in a package as input parameter and this value i want to use as join condition in my procedure ie. ename=refcursor.ename like this).That my exact question is how to pass refcursor values as in parameter
    Pls suggest me with some example statements
    thanks in advance
    prasanth a.s.

    I am giving you a generic example.
    SQL> variable v_out REFCURSOR
    SQL> r
      1  DECLARE
      2  PROCEDURE TEST1(p_out OUT SYS_REFCURSOR) IS
      3  BEGIN
      4  OPEN p_out FOR SELECT EMPNO,ENAME FROM SCOTT.EMP;
      5  END;
      6  PROCEDURE TEST2(p_in IN SYS_REFCURSOR) IS
      7  v_empno NUMBER(10);
      8  v_ename VARCHAR2(30);
      9  BEGIN
    10  LOOP
    11  FETCH p_in INTO v_empno,v_ename;
    12  EXIT WHEN p_in%NOTFOUND;
    13  DBMS_OUTPUT.PUT_LINE(v_ename);
    14  END LOOP;
    15  NULL;
    16  END;
    17  BEGIN
    18     TEST1(:v_out);
    19     TEST2(:v_out);
    20* END;
    SMITH
    ALLEN
    WARD
    JONES
    MARTIN
    BLAKE
    CLARK
    SCOTT
    KING
    TURNER
    ADAMS
    JAMES
    FORD
    MILLER
    PL/SQL procedure successfully completed.

  • How to pass any number of parameter in a sequence call

    Hi,
    I have a sequence that aims to do the same job for one or several same elements typed. eg:
    subsequenceA : 
    foreach element in (all elements array)
     //do the job
    endfor
    now in my caller I would like to call subsequenceA in several ways :
    subsequenceA(firstElement)
    subsequenceA(firstElement, secondElement)
    subsequenceA(firstElement, secondElement, .... , lastElement)
    Is it possible ?
    Another question : is it possible to do a call of subsequence in a pre-expression ?
    Solved!
    Go to Solution.

    Yes, build an array of strings and pass them as string-array. Maybe you want to add a numeric parameter "array size", but that is optional as the subsequence can easily get that information from the array itself.
    Norbert
    PS: Don't mark an answer as solution as long as you have questions left on that topic.
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How to Pass a multi-select parameter in BI to a PL/SQL Program

    I am trying to pass a BI report parameter which is multi-select enabled in BI Enterprise Stand-Alone reporting tool. eg. it comes out in the data model like this: <P_CLASS_CODE>[DISABLED_VETERAN_OWNED, HUB_ZONE, LARGE_BUSINESS]</P_CLASS_CODE>
    to a pl/sql stored procedure. (this is some kind of record set)
    This works when passing the parameter as bind variable being passed to and IN CLAUSE. However, In my case I need a little bit more flexibilty with the programming so I need to get the value into PL/SQL so I can work with the individual values in the record set.
    I am trying to figure out which collection type or record type I can use in pl/sql to be able to parse out the elements in the collection from within a stored procedure so I can loop through the elements.
    I am trying to call the BI before report trigger in the data template like this:
    <dataTrigger name="beforeReportTrigger" source="XXAPRPT03_SUPPLIER_DIVERSITY.before_report_trigger(:p_class_code)"/>
    this call refers to the default package
    I get this error: 'Invalid column type'
    what type should I be using in my procedure definition to support the multi-selection record set which my parameter is passing from BI.

    Hi,
    Okie :) please feel free to post any problem :)
    Please apply the patch that has the fix for this issue:
    [Patch 9791839|https://updates.oracle.com/ARULink/PatchDetails/process_form?patch_num=9791839]
    The above link worked fine for me .
    Ideally, you should pick up the latest patch, which is [ Patch 11846804|https://updates.oracle.com/ARULink/PatchDetails/process_form?patch_num=11846804]
    Click on View Read me for install instructions. Let me know if you find any problem with patch install.
    Regards,
    Ajay Kumar

  • How to separate part of string using separator in java

    Hi
    I want to separate a part of a string having separator (/)
    FirstName / MiddleName / LastName
    Please help me

    MayureshJoshi wrote:
    Hi
    I want to separate a part of a string having separator (/)
    FirstName / MiddleName / LastName
    Please help meString.split(...)

Maybe you are looking for

  • Upgrading RAM on MacBook Pro 13" to 1 Slot of 4Gb RAM

    Please help, I want to upgrade my MacBook Pro's RAM. Currently I have 2Gb of RAM, one 1Gb on the top slot and another one 1Gb in the bottom slot. I want to upgrade to 4Gb of RAM so that I only use one 4Gb on the top slot. TechSpecs: Model Name: MacBo

  • Do i need a magic mouse ?

    hi all, i have a few quid burning a hole in my pocket  LOL. I continue to be amazed at all the clever stuff that is built into my Mac Book Pro, particularly the Track Pad, until i looked in the Apple Shop and saw a Bluetooth Mouse which looks to be M

  • Sales office not Assigned

    HI Experts, for some co-pa records sales office not assigned. i checked in R/3 COPA data there also its not there. user says they entered sales office in the transactions. Can you please tell where i have to look for these details. provide Tcodes and

  • ITunes Region-Changing Problem

    Hi, I am a Windows-running iTunes 10 user in the US. I only make my iTunes store purchases from the US store, but oftentimes there are things not available in the store that are only available in other countries' stores. I can't buy the music since m

  • How to write a file locally coming as SOAP attachment from webservice

    Hi I have a scenario at my current implementation wherein the PDF file is obtained as an Attachment. When I use the SOAP UI to test the service, it appears as a separate attachment but, when I make a call from SOA, the same pdf is received in a base6