Passing multiple values at the request of the State (no status page)

Hello

[APEX 4.2.4.00.08 on the 11.2.0.3 database]

I didn't know how to explain briefly what I need in the title of the discussion, that's why I added the song "(non page rapport)". "  I met a lot of threads associated with passing of selections multiple values from one page to another, or via a URL from one page to another.  I know how to do this.  The problem I have right now is trying to pass the commas of the values contained in an application to a report query element.  Here's where the "(rapport non page) ' comes into play."  I refer to the report query at the level of the application (i.e. shared components-> report queries).  I wish really it had another name for it.  "Report on the application of queries", perhaps?

In any case, my report query has a bind variable, AI_ID_NUMBERS, that is defined correctly in the shared-> components report queries. However, when this item application has multiple values such that AI_ID_NUMBERS = 4, 5, 6, 7 etc., my URL looks like this:

myapexsite.com/f? p = 456:2:1234567890:PRINT_REPORT = report_1:AI_ID_NUMBERS:4, 5, 6, 7

So, this returns only one record for the report where the identification number is 4, one.  I tried a string parameter of Substitution of Application (URL_REPORT_1) with the two following variants (for which both return only a single record):

Substitution string = URL_REPORT_1 and Substitution value = f? p = & APP_ID.:0 : & SESSION. : PRINT_REPORT = report_1:AI_ID_NUMBERS: & AI_ID_NUMBERS.

Substitution string = URL_REPORT_1 and Substitution value = f? p = & APP_ID.:0 : & SESSION. : PRINT_REPORT = report_1:AI_ID_NUMBERS:-& AI_ID_NUMBERS. \

returns...

myapexsite.com/f? p = 456:2:1234567890:PRINT_REPORT = report_1:AI_ID_NUMBERS:4, 5, 6, 7

myapexsite.com/f?p=456:2:1234567890:PRINT_REPORT=report_1:::AI_ID_NUMBERS:\4,5,6,7\

.. .respectively

I really thought that the backslashes would have solved the problem.  Any ideas why my report request (PDF) returns only one line?

Thank you

-Seth.

Well, too bad. I realized the mistake I did.

When you work with 'request report queries', there is an option to include variable bind, for example the application or page elements.  I had already done that, but for some reason, thought that I also had to pass the parameter and its values in the URL.  This is not necessary since the report query query already has the issue of the application/page related to it.  The following URL works fine:

myapexsite.com/f? p = 456:2:1234567890:PRINT_REPORT = report_1

And, Yes, it's the URL that is provided when you set up a "application report query.  I was thinking too hard.

-Seth.

Tags: Database

Similar Questions

  • a problem in passing multiple values in the loop settings for

    Hi all

    I am facing a problem in passing multiple values in the loop settings for.


    EX:

    CREATE or REPLACE PROCEDURE (pr_id OUT NUMBER) HAVE


    tab type is table of NUMBER;

    TEMP_TAB TAB;

    BEGIN

    Select the COLLECT LOOSE pr temp_tab pr_id;

    I'm in 1.TEMP_TAB. loop of COUNTING

    PR_ID: = temp_tab (i);

    end loop;

    END TEST;

    OUTPUT:-

    pr_id = 234578


    in the example above, I'm only a value as an out parameter. but I send you PR_ID of the loop.
    why I don't get all the values that the parameters.please offer a solution for me.

    Thank you my friend.

    More clarification, let's look at your code...

    -- create a procedure and have a single numeric out variable
    CREATE OR REPLACE PROCEDURE TEST ( pr_id OUT NUMBER ) AS
      -- declare a type as an array of numbers
      type tab is table of NUMBER;
      -- declare a varianble of that array type
      TEMP_TAB TAB;
    BEGIN
      -- query all the values from the table into the array
      select pr_id BULK COLLECT INTO temp_tab from pr;
      -- loop through each value in the array
      for i in 1..TEMP_TAB.COUNT loop
        -- set the value of the single OUT parameter, OVERWRITING any previous value it has
        PR_ID := temp_tab(i);
        -- loop around to the next value
      end loop;
      -- end the procedure with the final value of PR_ID
    END TEST;
    
  • Passing multiple values to the report

    Hello
    I have a form of parameter. One of the field will have at least one value. When there are multiple values, the values will be separated by a comma and pass on to the State. Please tell me how to separate them and put them in the citation in the report query.
    EX: values are: PO, DR
    There will be in the where condition as: where code in ('OP', 'DR');
    Thank you in advance.

    PS. I use 10g

    Published by: 945599 on 10 July 2012 14:04

    Hello

    I sent the unit test by mail.
    Please note that there are some hardcoded values when you use run_report_object (name of report server and host name).

    Kind regards
    Alex

    Published by: AlexDiniasi on 19.07.2012 17:14

  • passing multiple values of the column to a variable in unix

    sqlplus -s $USER_ID@$SID/$PWD<<EOF>sql_1.txt
    set feedback off
    set heading off
    select  114032 as c_1 from dual ;
    
    
    EOF
    
    
    
    
    for i in `cat sql_1.txt`
    do
    
    
    sh script_1.sh  $i 
    

    Currently I am passing a column value to the single unix variable.

    How can I pass values of 2 columns

    sqlplus -s $USER_ID@$SID/$PWD<<EOF>sql_1.txt
    set feedback off
    set heading off
    select  114032 as c_1 ,sysdate c_2  from dual ;
    
    
    EOF
    
    
    
    
    sh script_1.sh $col_1_value  $col_2_value 
    

    I'm on SUNOS

    You can concatenate the columns in SQL by a delimiter, and then use the cut (for example) under Unix to analyze the production line in chips for the script.

  • passing multiple values from the query in the select statement of the procedure

    I am collecting IDS to select education agreement from the date of rental values and then I would pass the result of the query in the statement select to get the result.
    data type for the contract id is of type varchar and date of rental there is more than one id to contract for most of the time. Help, please. Thank you

    CREATE OR REPLACE PROCEDURE abstract_menu (p_letting   IN     VARCHAR2,
                                               p_results      OUT SYS_REFCURSOR)
    IS
       v_contractId   VARCHAR2 (40);
    
    SELECT lcontid
      INTO v_contractId
      FROM letprop
     WHERE datestat IS NOT NULL AND letting = p_letting AND letstat <> 'R';
    
    
    BEGIN
       OPEN p_results FOR
            SELECT DISTINCT
                      SUBSTR (l.letting, 3, 2)
                   || '-'
                   || SUBSTR (l.letting, 5, 2)
                   || '-'
                   || SUBSTR (l.letting, 1, 2)
                      lettingdate,
                   l.lcontid contractid,
                   SUBSTR (q.cprojnum, 1, 10) projectnumber,
                   DECODE (TRIM (MIN (j.route)), NULL, 'N/A', TRIM (MIN (j.route)))
                      routenumber,
                   L.DATESTAT statusdate,
                   L.LETSTAT lettingstatus,
                   (q.cdescr) jobdescription,
                   INITCAP (q.clocat1 || q.clocat2) LOCATION
              FROM vendor v,
                   vendaddr r,
                   letprop l,
                   planhold p,
                   proposal q,
                   project j,
                   propproj k,
                   bidlet bd
             WHERE     v.vendor = r.vendor
                   AND k.contid = q.contid
                   AND k.pcn = j.pcn
                   AND l.lcontid = k.contid
                   AND p.vendor = v.vendor
                   AND l.letting = p.letting
                   AND l.lcontid IN v_contactid  "**************This is where I would like to pass the contract id from the above select statement***********'"
                   AND l.CALL = p.CALL
                   AND r.addrnum = p.billto
                   AND bd.letting = l.letting
          GROUP BY q.cdescr,
                   q.clocat1,
                   q.clocat2,
                   bd.letting,
                   l.letting,
                   l.lcontid,
                   q.cprojnum,
                   L.LETSTAT,
                   L.DATESTAT
          ORDER BY lettingdate;
    
    end;

    user9196150 wrote:
    AND l.lcontid IN v_contactid ' * this is where I would like to pass the id of the select statement above contract * ""»

    CREATE OR REPLACE PROCEDURE abstract_menu (p_letting   IN     VARCHAR2,
                                               p_results      OUT SYS_REFCURSOR)
    IS
    BEGIN
       OPEN p_results FOR
            SELECT DISTINCT
                      SUBSTR (l.letting, 3, 2)
                   || '-'
                   || SUBSTR (l.letting, 5, 2)
                   || '-'
                   || SUBSTR (l.letting, 1, 2)
                      lettingdate,
                   l.lcontid contractid,
                   SUBSTR (q.cprojnum, 1, 10) projectnumber,
                   DECODE (TRIM (MIN (j.route)), NULL, 'N/A', TRIM (MIN (j.route)))
                      routenumber,
                   L.DATESTAT statusdate,
                   L.LETSTAT lettingstatus,
                   (q.cdescr) jobdescription,
                   INITCAP (q.clocat1 || q.clocat2) LOCATION
              FROM vendor v,
                   vendaddr r,
                   letprop l,
                   planhold p,
                   proposal q,
                   project j,
                   propproj k,
                   bidlet bd
             WHERE     v.vendor = r.vendor
                   AND k.contid = q.contid
                   AND k.pcn = j.pcn
                   AND l.lcontid = k.contid
                   AND p.vendor = v.vendor
                   AND l.letting = p.letting
                   AND l.lcontid IN (
                                     SELECT  ll.lcontid
                                       FROM  letprop ll
                                       WHERE ll.datestat IS NOT NULL AND ll.letting = p_letting AND ll.letstat  'R'
                                    )
                   AND l.CALL = p.CALL
                   AND r.addrnum = p.billto
                   AND bd.letting = l.letting
          GROUP BY q.cdescr,
                   q.clocat1,
                   q.clocat2,
                   bd.letting,
                   l.letting,
                   l.lcontid,
                   q.cprojnum,
                   L.LETSTAT,
                   L.DATESTAT
          ORDER BY lettingdate;
    
    end;
    /
    

    SY.

  • How to pass multiple values of payload through the contextual event - jdev 11.1.2.3

    Hello:

    How to configure contextual events publish several values of payload?

    On click of a button, I'm declaritively publish a contextual event, which works very well when a single value is passed to the event handler.

    My event handler method has the signature of:
    eventHandler (String)

    But now I also have an oracle.jbo.domain.Number, so my new eventHandler looks like this:
    eventHandler (Number, String)

    How to pass two values during editing of the event and how to place the payload with multiple values for the new eventHandler?

    All article or code would be greatly appreciated.

    Thanks for the help.

    You define a bean holding your values and pass an instance of the bean as a payload...

    Timo

  • spend multiple values on the interaction of click value

    Hi gurus:

    I have a requirement where I need to display a report of the first (a table or a PivotTable), with the type Cust_ID, recipes, etc. Cust_id is a unique dimension. Most of the stuff is made.

    And then the user wants to select 4 different values of Cust_ID and run another report of detailed comparison of the attributes of these clients.

    Now, the solution I proposed one or the other was a copy and paste in the new edition box prompt, or multiple selection on cust_id on new page.

    But the 'expert' user interface wants something like boxes to tick next to all ranks and press a button that automatically starts a comparison report.

    I know that we can pass a value to the other report using the value interaction. But how I spend 4 different values to the click?
    Or is there no other way?

    Please help me.

    V

    Sorry there not be useful. I think that the solution works and book it that the user needs. Article is that sometimes we spend too much time trying to satisfy a user wants and brings us to spend our valuable time that could be spent more productively. Well...

    Good luck, however, Vinay!

  • Passing the value of the element of a page to the other

    I have the following requirements.

    Page 1: Register Username (form)
    -Insert the user name in A Table
    -Redirect to the new page
    Page 2: Collect modules (form)
    -Insert the info collected in table B
    -User name of Page 1 is the primary key

    My problem:
    I can't understand how to use the value of the username (Item1) from Page 1 to Page 2.

    What I tried:
    (A) Item2 created in Page 2
    -After that treatment direction Page 1 value with the value of Item1 Item2
    -no value not transferred (failure)
    (B) source edited Item2 on Page 2 for:
    -Used: Always, replacing an existing value in session state
    -Type: point
    -Session State: per session
    -Value of source: P1_ITEM1
    & Several combinations of the two

    My question:
    Passing a value of item from a page to another seems to be a relatively basic operation.
    Am I trying to do something that APEX isn't designed to handle?
    Is there a practical way more traditional or better to deal with these issues?

    Any comments I can get would be great

    Thank you
    Dan

    Published by: 903485 on December 20, 2011 06:26

    If the value of the item has been saved in session state (it is generally except if you explicitly Apex to not save the value in session state), then you can reference any element in your application to any other page or another process. So in other words you have a process on page 2 that runs before your page content (FRONT header, AFTER the header or BEFORE REGIONS) that does something like this:

    :P2_ITEM := :P1_ITEM;
    

    If you do that, then should have recorded the value on your other section of the page. This can also be done with calculations. It can also be done with the attribute of the SOURCE of your page, article, and there is probably some other ways to do it as well. One of these should be able to meet your need. Good luck.

    Earl

  • Passing DB values to the text based on the Select Value box

    Hello

    I'm very big thing back to the Oracle APEX. In my project, I have a requirement in which I need to pass different values for the corresponding text boxes on a different page based on the value I select in the item "Select Value".

    I tried using processes calling for demand, but could not get the desired result.

    Please suggest!

    Hello

    Can you repeat your scenario on apex.oracle.com? It will be easier to fix it this way.

    Kind regards

  • I want to pass multiple values method AM controller

    Hi all

    Can someone tell me please how to pass multiple values of AM method to the controller.

    Thank you

    You can make use of the ArrayList

    In CO

    OAApplicationModlue am = pageContext.getApplicationModule(webBean);
    ArrayList values = (ArrayList) am.invokeMethod("PassArray");
    

    In AM

    public ArrayList PassArray
    {
    ArrayList values = new ArrayList();
    values.add("value")
    values.trimToSize();
    return values;
    }
    

    Thank you
    AJ

  • passing multiple values of variable presentation to go the url in dashboard

    Hi all

    I use go url in dashboard in the area of text using html file mark up. We have a guest area which saves the values in the variable of presentation P_REGION. The link to the dashboard works well when we choose to value as a single region. She passes the parameter. However, if we choose multiple values, it fails. Do we need to modify the code below in support of more than the presentation variable value to pass to the report.


    <a href="http://nqrc.cci.edu:7001/analytics/saw.dll?PortalGo&path=%2Fusers%2Faron%2FActionLink%2Fname&Action=Navigate&P0=1&P1=eq&P2=%22Employee%22.%22Region%22&P3=@{variables.P_REGION}">Drill Report</a>
    Thank you

    Sushil

    Before you go to the link, I would say to understand how the variable takes values.
    Try to use the link as ay of the column expression in the criteria to see the full url with multiple values.

    http://nqrc.cci.edu:7001/analytics/saw.dll?PortalGo&path=%2Fusers%2Faron%2FActionLink%2Fname&Action=Navigate&P0=1&P1=eq&P2=%22Employee%22.%22Region%22&P3=@{variables. P_REGION}

    If my assumption is not wrong valiables holds as "one, two."

    This will give you some ideas to work on.
    If need more help to share the url with multiple values.

    BTW: I don't think that it works with multiple values, give a try, as said.

    So much sense mark :)

  • Multiple values in the dashboard application application database Direct

    Hello

    I created a direct request from the database that accepts input from a prompt by a variable of presentation, either placed in request of db query. I realized in the process that I had to give a default input to the variable of the presentation of the petition. The input variables passed from the dashboard quick came in the right format, only if they are placed in quotation marks, Eg: "Input_Var".

    After all this, I came across a problem when multiple values are entered, the query is generated with an incorrect format. Here is the example:

    Select col1, col2

    of TabXX

    where username IN "Acct_Nm1", "Acct_Nm2"; ')}

    Is there anyway to solve this problem. Thanks in advance.

    Hi all

    I used the sequence next to convert the string separated by commas, received XML from the dash prompt.

    "Select XXX".

    movies XXX

    where the value

    in (SELECT )

    EXCERPT (VALUE (d), ' / / row/text () ") .getstringval)

    Of

    (SELECT XMLTYPE ('' |)) REPLACE ('VALUEOF (NQ_SESSION.req_var)', ';', ''). ') AS xmlval

    The DOUBLE) x,.

    ( TABLE (XMLSEQUENCE (EXTRAIT (x.xmlval, '/ lignes/ligne'))) d)"

    Create a query variable 'req_var' in the prompt to serve in "VALUEOF (NQ_SESSION.req_var)" and pass it to the report. It will be useful.

    Thank you.

  • display multiple values at the completion point

    All,

    IAM create multiple entries for autopopulate point as shown in this jquery plugin link below but iam trying to change that, then values from the query to the table. How can I achieve even using web services apex 4.1.1 but iam trying NOT to use remote url or external file?

    http://jQueryUI.com/AutoComplete/#multiple

    concerning

    All,

    I'm still digging around and looking everywhere but this blog below how I can pass the valueset returned to my jquery as variable below.

    sample:

    http://ORA-00001.blogspot.com/2010/02/ref-cursor-to-JSON.html

    var availableTags is ['data1', 'data2', 'data3'];.

    concerning

  • Passing of value of the load capacity of the human task to query ADF VO BPM

    Hello world

    faced with the variable binding in the VO.

    This is the scenario:

    I have a page of the ADF in my BPM process that uses the variable in the flow of payload in variable display object related task.

    My VO has this query:

    Select FULL_NAME, user_name

    of ROLE_TEAM

    where in('IO-UB','AGG-CST-UB') role

    and cdc =: sector

    I need to pass the variable to link called 'sector' to it.

    In my office, I have the variable called 'sector' but I don't know how to switch to the VO.

    With the help of Jdev 11.1.1.7

    Can you help me?

    Thank you.

    Fairlie

    Well it should work, but it's a little more complicated that it should probably be.  ( Dan Atwood accessories to be creative!)

    You must call the method "ExecuteWithParams" on your view object before loading the page.  This can be done during the loading of the page, or in the taskflow (a bit easier to explain).

    First of all, as you described, create your SQL VO query with your variable binding "and cdc =: sector ' make sure 'sector' is a variable binding is set to be updated.

    Then, create the link to your payload BPM 'sector' value (we'll call it SectorPayload) on your page (just drag as a text of output so that ADF automatically creates the link).

    Now go to the taskflow which has your page that you are trying to view and expand the data control / view the object you want.  The "ExecuteWithParams" method (in the folder of your VO in the DataControl operations) drag the taskflow.  You will be prompted with an Assistant "Change the binding Action" which will have your listed parameter.  Its 'value' uses the phrase EL editor develop "links ADF-> data-> of the page that you have created SectorPayload on (com_company_pagePageDef)-> variable-> inputValue. SectorPayload.  The resulting expression should look like:

    "#{data.com_avioconsulting_demos_showMyPayloadPageDef.SectorPayload.inputValue}".

    Right-click activity and go to the activity of the brand-> by default (it runs everything first and highlights its green).  Then draw a line from this activity to your view.

    The view object should now be filtered according to your variable binding.

    HTH!

    -Kevin King

  • How to pass a value to the form defined in the context of security file name?

    Hi all

    Yet to learn JavaScript... I have a JavaScript script, save a copy of my pdf to a location on my machine. Got the privileges of working well as well.

    How I spend in the field values for the file name? Right, the created pdf copy is now called .pdf [object scope]. Instead, I want to use dynamic values of in the form itself.

    Then this.documentFileName gets me the name of the file (Code record trust)...

    var mySaveDoc = app.trustedFunction (function (doc, subName) {}

    app.beginPriv ();
    var myPath = "/ c/SubInspectionForms /" + this.documentFileName + ".pdf";

    saveAs is the only privileged code that should be placed
    with beginPriv/endPriv
    doc.saveAs ({cPath: myPath,})
    bCopy: true,
    ({bPromptToOverwrite: true});
    app.endPriv ();

    });

    this.getField("INSPECTION_Location") doesn't the value of a field:

    var mySaveDoc = app.trustedFunction (function (doc, subName) {}

    app.beginPriv ();
    var myPath = "/ c/SubInspectionForms /" + this.getField("INSPECTION_Location") + ".pdf";

    saveAs is the only privileged code that should be placed
    with beginPriv/endPriv
    doc.saveAs ({cPath: myPath,})
    bCopy: true,
    ({bPromptToOverwrite: true});
    app.endPriv ();

    });

    The script on my SaveACopy button is:


    subName var = this.getField ("INSPECTION_Location");

    mySaveDoc (this, subName);

    I need the value of the field in the function?

    It is easy to think 'this. GetField"is a universal thing you can still use, but it is not. Read carefully the description of the object "Thi". It is set in some contexts, and I don't think this is allowed when using it. You must pass it as a parameter in a context where it is defined.

Maybe you are looking for

  • Various bugs to info of the song in iTunes and iPhone library

    I have two problems that are probably related. 1. in the opinion of 'Artist' of my iTunes library, I have an artists songs divided into three labels of the artist, all who say "Thumpmonks. I've rechecked for added spaces. These songs share the same a

  • Graphic selection of WPF controls

    Is it possible now to know when the user clicks on the marker or annotation? It did not work in v.2012.

  • Keyboard not typing special symbols above the number keys online, but works fine otherwise

    Original title: keyboard problem Keyboard not hitting that special symbols above the number keys online, but works fine otherwise. When the shift button is held and you press a number key he type the last letter, which was typed any symbol, you try t

  • FrostWire - bad Image and can not download Limewire

    Original title : frostwire I just downloaded the windows version of frost wire. However, after its installation, windows blocks it opens a window which describes as follows title of window - FrostWire.exe - Bad Image. Pop - up window - C:\Program bod

  • Microsoft Live Mail settings?

    When I first came to this computer, I have install Windows Live Mail but anyway all the news wiped out and because I have Yahoo as my ISP, there is no pop3.etc. info which can be provided in the e-mail configuration because a) you don't pay for it, s