Passing list of values as a parameter to repot through form

hi,
i am trying to passing parameters to report through form by
using ADD_PARAMETER_LIST and RUN_PRODUCT .but i am not able to
pass list of values to report.For example if use select state_id
from the list box,it has to give all details of that state
report.how to do this?
please help me.
thanks in adv
rao
null

rao (guest) wrote:
: hi,
: i am trying to passing parameters to report through form by
: using ADD_PARAMETER_LIST and RUN_PRODUCT .but i am not able
to
: pass list of values to report.For example if use select
state_id
: from the list box,it has to give all details of that state
: report.how to do this?
: please help me.
: thanks in adv
: rao
there are at least two path to do that:
1. for each detail item mak a parameter in reports and add it to
paramlist
2. pass only stade_id as parameter and in reports query other
details
hope this helps
null

Similar Messages

  • Pass list of values to DB adapter from BPEL process

    We want to pass a list of values (length of list and values to be passed will be dynamically determined by the input to this invocation)
    How do we pass the input as a list of values to a db adapter where the list of values will form a part of input query where clause.
    say eg
    select date from tablea where columna in (List1,list2,lsit3) etc
    Thanks

    This will help you
    http://soa-howto.blogspot.com/2009/05/how-to-use-sql-query-having-in-clause.html

  • SQL Query: How to pass list of values to the IN operator

    Hi,
    I'm trying to pass a list of values to the WHERE <a> IN <list>
    I dont want to use dynamic cursors (REF CURSOR). Is this possible using Oracle SQL?
    Please let me know.
    My program:
    DECLARE
    list_of_ids := '10, 20, 30';
    SELECT MAX(sal) INTO max_sal FROM employee WHERE emp_id IN (list_of_ids);
    END;
    Thanks in Advance,
    Niko

    You do not want to pass a comma separated list. You want to pass a collection. So
    CREATE TYPE num_tbl
    AS
    TABLE OF NUMBER;
    DECLARE
      l_list_of_ids num_tbl := num_tbl( 10, 20, 30 );
    BEGIN
      SELECT max(sal)
        INTO max_sal
        FROM employee
       WHERE emp_id IN (SELECT * FROM TABLE( l_list_of_ids ));
    END;
    /Justin

  • How to pass a large value to a parameter of a service

    Hi Everyone,
    I need to execute service GET_SEARCH_RESULTS and want to provide values to its parameter QueryText. I am calling the service in the following manner:
    http://localhost/idc/idcplg?IdcService=GET_SEARCH_RESULTS&QueryText=<$keyTagID$>&ftx=&AdvSearch=True&SortField=xAvgRating&ResultCount=5
    hence passing <$keyTagID$> to QueryText. Now in my case, this variable <$keyTagID$> is becoming very large consequently making the whole of above URL very big. Its crossing the permissible limit of 2038 characters by Internet Explorer. Thus error 'URL too large' comes when I am executing the service.
    Please suggest me how to execute the service 'GET_SEARCH_RESULTS', so that I can provide a large value to the parameter QueryText. I thought of making use IdocScript function 'executeService', but so far as I know this function accepts only one argument which is service name. Thus how to provide values to parameters of a service with 'executeService' function?
    Thanks & Regards,
    Ashish Gupta

    Hi,
    To send large arguments over HTTP you have to post them, basically setting up a form similar to this:
    <form action="<$HttpCgiPath$>" method="POST">
    <input type="hidden" name="IdcService" value="GET_SEARCH_RESULTS"/>
    <input type="hidden" name="QueryText" value="<$keyTagId$>"/>
    <input type="hidden" name="ftx" value=""/>
    <input type="hidden" name="AdvSearch" value="True"/>
    <input type="hidden" name="SortField" value="xAvgRating"/>
    <input type="hidden" name="ResultCount" value="5"/>
    <input type="submit" name="submit" value="submit"/>
    </form>
    I'm not sure how much that helps if your users are currently just clicking a link. You could hide the form somewhere and have your link execute a javascript function which then posts the form.
    David

  • How to pass VO1 return value to VO2 parameter?

    Hi Friends,
    I have two VO's, in a page.
    In the First VO1 i am pass 2 parameters then this vo return one single value ex: 1234
    Now my Second VO2 i want to pass Parameter , first VO1 result value.
    How to achieve this.
    But i don't want to capture VO1 result value in the form.
    Could you please any body Explain how to achieve this Requirement.
    Thank Advance.
    Rkrao.

    Ramu,
    //Modify the code as per your requirement
       String position = null;
       //First VO
       OAViewObject vo = (OAViewObject)findViewObject("EmployeeVO1");
       if(vo!=null)
                     vo.executeQuery();
                     OARow row = (OARow)vo.first();
                     position = (String)row.getAttribute("PositionCode");
    //Pass the same value to the new VO as your value returned will be into position variable
       OAViewObject vo = (OAViewObject)findViewObject("ManagerVO1");
       if(vo!=null)
                     vo.setWhereClauseParam(0,position );
                     vo.executeQuery();
       Regards,
    Gyan
    Edited by: Gyan on Feb 23, 2011 1:30 AM

  • Passing list of values to a function

    As what type list of values multiple selections, e.g. resulting in (1,2,3), are represented in function parameters?
    for example i have lov that results in (1,2,3) and dataset query is select myfunction(:mylov) from dual.
    Variable of what type I must declare in function definition?

    when i hadthe same situation , i used cursor query to resolve .
    eg.
    select myfunction(cursor(select field1 from table1 where field1=:parameter1)) from dual
    In the PL sql function get all thee parameters from the cursor variable and pass into the looping statement for furthur processing

  • Required Dependent List of Values in Reports Parameter Form

    Dear All,
    These days I am facing a problem in Oracle Reports(ver. 2.5). I have develope a report. In the parameter form of this report, I want a list of value (LOV) on the second field which should be dependent on the first field value.
    For Example, In The Employee Details report, I have a Parameter form in which there are 2 Parameter fields, 1 is Deptno and the other is Empno. I want to attach a LOV on the Empno field but in this LOV I want to display only those empno's which should be dependent on the Deptno field.
    Thanks
    Vipin

    Hi,
    its already online: http://thepeninsulasedge.com/frank_nimphius/2008/04/08/adf-faces-building-adf-dependent-list-boxes-in-adf-faces-table/
    Frank

  • Is it possible to pass table type values as input parameter for con prg?

    Hi All,
    Could you please confirm that is it possible to pass table type value as input to concurrent program?
    If possible how to achive this?
    If not possible whether we have any ora doc which is confirming this.
    Any hel will be great.
    Thanks,

    Hi student;
    Please check (http://apps2fusion.com/at/45-as/241-enablingdisabling-concurrent-program-parameters)
    Hope it helps
    Regard
    Helios

  • How to pass wild card '%'  value from the parameter to the query

    Hello everyone,
    I have following 2 problems
    1) I was trying to do some thing like below
    select * from emp
    where ename like 'J%'
    for this i have used the following code
    select * from emp
    where ename like :P_ENAME
    and before running the query in the parameter box i entered J%. But my report returns an error which says INVALID PARAMETERS REQUESTED.
    2) I have a req of passing both comma separated and wild card for the same parameter. If we take the same example as above,
    user should be able to enter
    a) JASON, SMITH, JOHN OR b) J%
    I have used comma separated value option of the parameter for the csv values and its working fine, but i need to add the wild card feature also to the same parameter.
    Can anyone please help me with these things?????
    Thanks in advance!!
    Raghu

    Hi Raghu,
    I guess you are in older version, You have to get into latest version to use %, it should work well
    you should use where ( ename like :P_ENAME ) or ( ename in (:P_ENAME)) for both the condition to satisfy.

  • Pass list of structure as input parameter to visual composer iview

    Hi
    In my application, I need to create an iview which has a table view. Start point has same structure as table columns. Now I deployed this iview and assign to every user core role. Now i am using in in my GP. It is getting a list of structure as input but it is showing only one row in the table.
    Anyone has idea about this.
    Regards
    Saurabh Garg

    Hi Saurabh,
    How did you do for passing at least one row ?
    Can you explain that ?
    Thanks a lot
    btw, Did you succeed to pass several rows ?

  • Pass list of values in an array to the IN statement of SELECT in Oracle 10g

    Hi,
    This is what I have done so far...
    I have loaded the main array array_number_1 using BULK Collect. Within the loop I am filtering the data from this array and writing to another array array_number_2.
    I want to use the values from array_number_2 in the SELECT statement.
    Eg: SELECT sum(x_amount) charges
    FROM x_table
    WHERE id IN (array_number_2).
    Could you provide a solution to this preferrably with an example.
    thanks

    I'm not entirely following you, Visakh, but I have a SQL Task setup in which I have an expression that makes a call to a db2 database such as the abbreviated set example below.  The list of IDs in the IN statement must come from another  SQL Server
    database.   In the past I have  gotten the list of IDs, put them in a recordset and then put that in a for loop to iterate and make one call to db2 for each and every ID.   The single ID example can literally take days to run for 100,000 IDs.
     Therefore, I want to pull the entire set of results back at one time via a single (or at least fewer calls than there are IDs) DB2 call using 'in' instead.  Maybe I am overlooking something but I don't quite see how your example will get me where
    I want to go.  
    Set Example
    SELECT 
       A,
       B
    FROM 
        Table 1, 
        Table 2, 
    WHERE 
        Joins   
        AND PRSNEUP.ID in  ( This is where I want a list of IDs )
    Single ID Example
    SELECT     A,  
     B
    FROM   
      Table 1,      Table 2, 
    WHERE     
    Joins        AND PRSNEUP.ID =  ( VariableContainingASingleID

  • How to pass list of values to REF CURSOR?

    Hi there,
    I have a package for ref cursor return as following:
    <pre>
    create or replace package p_mypkg as
    type t_ref_cur is REF CURSOR;
    function f_t_refcur (strsql varchar2) return t_ref_cur;
    end;
    create or replace package body p_mypkg as
    function f_t_refcur(strsql varchar2) return t_ref_cur as
         cur t_ref_cur;
    sql_stmt varchar2(1000);
         begin
    sql_stmt:='select object_name,object_type from user_objects where object_type in (:j)';
              open cur for sql_stmt using strsql;
              return cur;
         end;
    end;
    var results refcursor
    begin
    :results:=p_mypkg.f_t_refcur('TABLE');
    end;
    print results
    var results refcursor
    begin
    :results:=p_mypkg.f_t_refcur('INDEX');
    end;
    print results
    I got the result sets using just one value.
    But I got nothing when use two values as input.
    Any idea?
    var results refcursor
    begin
    :results:=p_mypkg.f_t_refcur('''TABLE'',''INDEX''');
    end;
    print results
    SQL>
    no rows selected
    Thanks,
    SZ

    You can also use ...from table(... :
    create or replace type numbertype
    as object
    (nr number(20,10) )
    create or replace type number_table
    as table of numbertype
    create or replace procedure tableselect
    ( p_numbers in number_table
    , p_ref_result out sys_refcursor)
    is
    begin
      open p_ref_result for
        select *
        from employees , (select /*+ cardinality(tab 10) */ tab.nr from table(p_numbers) tab) tbnrs
        where id = tbnrs.nr;
    end;
    /

  • Passing a variable value into a parameter

    Here's a general example (not all of the code):
    _global.xPosition = function(whichMc:MovieClip,
    xStart:Number, xEnd:Number):Void {
    new Tween (whichMc, "_x", Strong.easeOut, xStart, xEnd, 1,
    true);
    function loadFunction(success:Boolean):Void {
    if (success) {
    var image01ClosedPosition:Number =
    this.firstChild.childNodes[0].attributes.imageChangeX;
    hit01.onRollOver = function() {
    xPosition(img01,image01ClosedPosition,0);
    In the XML file, the value I'm pulling in is -29.
    If I do a trace of imag01ClosedPosition, I get the correct
    value of -29.
    If I change the call to the function to read
    xPosition(img01,-29,0); this also works
    I just cant seem to get it to work the way I have it above.
    (I know I left a lot out, but just wanted to give an idea of
    the part that's not working.)

    Thanks, kglad. I was wondering about that. I thought that
    putting a variable data type of :Number would have made it a
    number, but I never got an error in the debugger so I thought it
    was ok. I traced the data type and figured out it was actually a
    string and changed the line like follows which turned the string to
    an integer and made it work:
    var image01ClosedPosition:Number =
    parseInt(RootNode1.attributes.imageChangeX);

  • Entering data as a List of value associated to a field in the form that I created.

    There are 300 values that I need to upload to this drop down field  called  OFFICE LOCATION on my form.
    Is there any easier way of doing it other than manually uploading them?
    Also I have another field called REGION. Can I build a relation between the two field?

    Hi;
    There is no method to import the data into the field.
    We do have a "Feature Request" form where you can vote on popular existing ideas or add a new one of your own:
    https://adobeformscentral.com/?f=XnF-KJVCovcEVQz9tZHYPQ
    As to building a relationship, it depends on what you need to do.  FormsCentral has "Show/Hide" logic where you can show or hide items based on the selection/s of other field/s.  There are both "Page Skip logic" and "Show/Hide" logic, this tutorial shows how to use the Skip logic and doesn't really cover show/hide logic but you should get the idea: https://www.acrobat.com/formscentral/en/library/skip.html
    Thanks,
    Josh

  • Passing multiple values to a parameter in report

    Can anyone help me how to pass multiple parameters to a parameter in my report.
    As user is able to select multiple values from list of values , can I pass the selected values to calling function.
    Suppose if User selects Value1,Value2,Value3 from list of values of a parameter P_Org,
    I need to pass all these values to parameter P_Org in my Before Trigger Function in Discoverer reproting tool.
    Thanks in advance

    I have a Before trigger Function to which the parameters will be passed.
    Suppose if User selects multiple values for a parameter then how to pass these multiple Values to that parameter?
    eg:In first Workbook Before Trigger is fired and the paramters for the trigger are
    'par1','par2','par3' etc.
    If User selects multiple values for a parameter 'par1' from the list of values displayed then how to pass all these values to 'par1' in Function?
    After firing the trigger rows are inserted in a temp_table .My second Workbook will
    fetch the rows inserted in this Temp Table.
    I hope u understood what my requirement is...
    Thanks in advance

Maybe you are looking for

  • Recreating User GW Account

    Hello All, A little background... we have one user who has had GroupWise issues since she started with our company about two years ago. These issues have manifested as random crashes and lock ups in the GroupWise client. Sometimes it's related to cli

  • 'User failed to respond' (error -8) - a serious issue that needs attention

    Based on the various posts here it is becoming increasingly apparent that, in most cases, this is not a user defined issue related to incorrect router settings/port configurations etc.. There also appears to be a fairly conspicuous correlation betwee

  • Surplusmeter - what type of connection do I have?

    I have a high-speed internet "stick", it plugs into my USB port. My service provider (telus) has a 5GB monthly cap for data transfer. I've downloaded a free program called SurplusMeter, that monitors internet usage. I don't have a router or anything

  • Click, tween n respond tantrum

    Hi I have one more small problem that I dont know how to fix !!, I have created several tweens on roll ons and roll offs. I also created a longer tween that brings out my mc into the middle of the screen on a click, there is a mc inside this mc to cl

  • Help with the dw interface

    I somehow accidentally clicked on something when dropping my mouse, and my screen now looks like the image below for every html file I open.  What did I click on and how can I get it back to normal.  the content is not directly editable in this mode.