How to make a multiple numeric value to another page

Dear Experts,

Apex 4.1

Oracle 11g

I would like to pass multiple numeric value to another page, as below:

P1_ID = (11,22,33) POINT Page1 depend on what users chose

P2 SQL: SELECT * FROM TABLE WHERE ID IN (11,22,33), ID is numeric fields.

but the PAGE 2 to show the error invalid number, how to fix, please help me.

Thanks and greetings

Yong Huang wrote:

Dear Experts,

Apex 4.1

Oracle 11g

I would like to pass multiple numeric value to another page, as below:

P1_ID = (11,22,33) POINT Page1 depend on what users chose

P2 SQL: SELECT * FROM TABLE WHERE ID IN (11,22,33), ID is numeric fields.

but the PAGE 2 to show the error invalid number, how to fix, please help me.

This is the classic problem 'variable IN the list' (I have no idea why this misunderstanding is so widespread. Always seemed obvious to me that it doesn't). In

select * from table where columnvalue in (7788, 7839, 7876)

(7788, 7839, 7876)is a list of expressions and the predicate is evaluated as a membership condition.

In

select * from table where columnvalue in :P1_X

:P1_Xis a scalar string, unable to contain multiple values.

In a report of type APEX, a source report of the body of the PL/SQL function returning a SQL query with lexical substitution can be used to produce a "variable list:

return 'select * from table where columnvalue in (' || :P1_X || ')';

where P1_X contains less than 1000 values, has been disinfected to code SQL injectionand string values are properly cited.

Some people suggest the following approach, that will work also in interactive APEX reports:

select * from table where instr(':' || :P1_X || ':', ':' || columnvalue || ':') > 0

However, it is underperforming because it eliminates the possibility of using the index optimizer or the size of the partition in the execution plan.

See various elements in the list to ask Tom and imitating the channel to the table using sql features for effective solutions.

Tags: Database

Similar Questions

  • How to make more than 3 elements to another page via a column binding?

    I know this is a simple question, but I don't see it covered in the manual.

    I have a report on page 1, when the user clicks on a link in the column, I spend 4 elements to the page that is called.
    The column binding box allows you to specify 3 elements. How people normally accomplish this?
    Somehow use page zero? Do you use elements of Application for this?

    Also, can anyone recommend a good book APEX to complete manuals?

    Thank you

    You can enter several point names/point-values separated by a ',' in these areas

    As

    P1_x, P1_y for element names

    23,24 for values of tea plant

    CITY

  • How do you get the numeric value of an image

    How do you get the numeric value of an image

    This in a small example

    var Red = ' \u00FF\u00D8\u00FF\u00E1\x05oExif\x00\x00MM\ '.



    Here is a link to a script open source that generates a string that represents the data of a file binary, especially useful to integrate a small image in a script or file patterns in a JSON structure, for example:

    Get the data from binary string

    HTH,

    Domestic-

  • My navigation bar collapsed onto the gallery page not working gas not star tutorial - how to make and style of a sensitive web page

    Hello

    I made the tutorial how to make and style of a sensitive web page. This is the tutorial of Star Gazer. My Gallery with the images of the planets page works well until I reduce the size of the browser and displays the "sandwich" of the navigation bar icon collapsed, when I click on this icon, nothing happens. Could someone please tell me what is the problem with my HTML or otherwise I you have filled the gallery page and it works could you please paste your code in the response. Any help is much appreciated, thank you.

    Vincent

    < title > Stargazer / < /title >
    <!-"bootstrap"->
    "< link href="css/bootstrap.css" rel="stylesheet">" "
    "" < link href= "css/styles.css" rel= "stylesheet" type= "text/css" > ".
    <! - HTML5 shim and Respond.js for IE8 take in charge of the HTML5 elements and questions from the media - >
    <!-WARNING: Respond.js does not work if you view the page via file://-->
    <!-[if lt IE 9] >
    " < script src =" https://OSS.MaxCDN.com/html5shiv/3.7.2/html5shiv.min.js "> < / script > .
    " < script src =" https://OSS.MaxCDN.com/respond/1.4.2/respond.min.js "> < / script > .
    <! [endif]-->
    < / head >
    < body >
    "< div class="container-fluid" id="wrapper">" "
    "< nav class="navbar, navbar - default">".
    "< div class="container">".
    <
    ! - Brand and toggle get grouped together for better mobile display->"< div class="navigation-head bar' > '."" < button type= "button" class= "navbar toggle collapsed" data-toggle= "collapse" data-target= "#defaultNavbar1" > < span class= "only sr" > toggle thenavigation / </span >< span class= "toolbar" ></span >< span class= "toolbar" ></span >< span class= 'toolbar' ></span > </ button > """< a class="brand navigation bar" href="index.html"> Stargazer< /a >< / div > " "<!-collect the nav links, forms, and other content to alternate->"< div class="navbar-collapse collapse" id="defaultNavbar1">" ""< ul class="navbar-nav right navbar nav">".< li > <a href="#"> On< /a > </li >< li > <a href="#"> Gallery< /a > </li >< li > " < a href="http://www.nasa.gov"> ". NASA< /a > </li >< /ul >< / div ><!-/ .navbar-collapse->< / div ><!-/ .container-fluid->< / nav >"< idarticle = 'main' > '.< h1 > Close to the Sun. < / h1 >< p > Lorem ipsum dolor sit amet, adipiscing elit computer. CRAs gravida, ligula libero sem, condimentum mauris risus vitae orci sold computer and elementum tristique, felis. Nulla justo nisl, ut ut felis, tempus dapibus purus vestibule. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos inceptos. Donec lectus vel lacinia dolor quis massa mollis nisi. Phasellus at pretium ipsum. Surpassing vestibule risus vitae. Surpassing fringilla tempus lacus, vitae elementum felis efficitur. < /p >< / item >"< div class="container">"."< div class="row">"."< div class="col-md-4">".«"< div class="thumbnail"> < img src="images/gallery/gallery-thumbnail-1.jpg" alt="Thumbnail Image 1" class="thumb"> »"< div class="caption">".< h3 > Mercury< / h3 >< p > In libero non ultricies rutrum lacus feugiat. Etiam dignissim, massa and vestibule molestie nibh nisl ante, vitae city eros nec dui aliquet magna. Aenean egestas diam, pretium nisl, ullamcorper felis vitae. Suspendisse blandit lorem turpis, non tempus imperdiet aliquet leo. < /p >< / div >< / div >< / div >"< div class="col-md-4">".«"< div class="thumbnail"> < img src="images/gallery/gallery-thumbnail-2.jpg" alt="Thumbnail Image 1" class="thumb"> »"< div class="caption">".< h3 > Mariner< / h3 >< p > In libero non ultricies rutrum lacus feugiat. Etiam dignissim, massa and vestibule molestie nibh nisl ante, vitae city eros nec dui aliquet magna. Aenean egestas diam vitae ullamcorper, pretium nisl felis. Suspendisse blandit lorem turpis, non tempus imperdiet aliquet leo. < /p >< / div >< / div >< / div >"< div class="col-md-4">".«"< div class="thumbnail"> < img src="images/gallery/gallery-thumbnail-3.jpg" alt="Thumbnail Image 1" class="thumb"> »"< div class="caption">".< h3 > Messenger< / h3 >< p > In libero non ultricies rutrum lacus feugiat. Etiam dignissim, massa and vestibule molestie nibh nisl ante, vitae city eros nec dui aliquet magna. Aenean egestas diam, pretium nisl, ullamcorper felis vitae. Suspendisse blandit lorem turpis, non tempus imperdiet aliquet leo. < /p >< / div >< / div >< / div >< / div >< / div >"< div class="container">"."< div class="row">"."< div class="col-md-4">".«"< div class="thumbnail"> < img src="images/gallery/gallery-thumbnail-4.jpg" alt="Thumbnail Image 1" class="thumb"> »"< div class="caption">".< h3 > Magnetic< / h3 >< p > In libero non ultricies rutrum lacus feugiat. Etiam dignissim, massa and vestibule molestie nibh nisl ante, vitae city eros nec dui aliquet magna. Aenean egestas diam vitae ullamcorper, pretium nisl felis. Suspendisse blandit lorem turpis, non tempus imperdiet aliquet leo. < /p >< / div >< / div >< / div >"< div class="col-md-4">".«"< div class="thumbnail"> < img src="images/gallery/gallery-thumbnail-5.jpg" alt="Thumbnail Image 1" class="thumb"> »"< div class="caption">".< h3 > Microwave< / h3 >< p > In libero non ultricies rutrum lacus feugiat. Etiam dignissim, massa and vestibule molestie nibh nisl ante, vitae city eros nec dui aliquet magna. Aenean egestas diam, pretium nisl, ullamcorper felis vitae. Suspendisse blandit lorem turpis, non tempus imperdiet aliquet leo. < /p >< / div >< / div >< / div >"< div class="col-md-4">".«"< div class="thumbnail"> < img src="images/gallery/gallery-thumbnail-6.jpg" alt="Thumbnail Image 1" class="thumb"> »"< div class="caption">".< h3 > Mapping < / h3 >< p > In libero non ultricies rutrum lacus feugiat. Etiam dignissim, massa and vestibule molestie nibh nisl ante, vitae city eros nec dui aliquet magna. Aenean egestas diam vitae ullamcorper, pretium nisl felis. Suspendisse blandit lorem turpis, non tempus imperdiet aliquet leo. < /p >< / div >< / div >< / div >< / div >< / div >< footer >& copy; 2015 stargazer< / footer >< / div ><! - jQuery (necessary to Bootstrap JavaScript plugins) - >" < script src="js/jquery-1.11.2.min.js"> ". < /script ><! - Include compiled all the plugins (see below), or individual files as needed-->" < script src="js/bootstrap.js"> ". < /script >< / body >< / html >

    The cause of the problem is not attached jQuery library.

    Make sure that jquery - 1.11.2.min.js is located in the subdirectory js as in

  • Cannot access textfield value in another page

    Hello, I thought it would be simple and straightforward, but I hit a wall.

    I can't access the values from another page in a script.

    I'm trying to set a value of a text field to the value of a text field which is in another page.

    I have the click event (just to test):

    eApp.ENB - 7-07 - CAGAIN_Page_5.a3z_data_AdditionalInfo::click - (JavaScript, client)

    this.rawValue = eApp.ENB - 7-07 - CAGAIN_Page_4.AccountNumber.rawValue;

    He does not get the value.

    But if I copy create a field on the same page (page 5 here) with the same information, I can access

    with this.parent.AccountNumber.rawValue;

    I can make it work, by copying the textfields on the page and in hiding, then using their value.

    but it seems dirty and useless.

    I just want to be able to access the fields on another page, I thought it would be as easy as form.page4.accessthisvalue

    Any help is VERY appreciated, been banging my head for a moment loong.

    Hello

    It should not be a problem doing this, you can reference a field anywhere on the form.  You get script errors?  My first guess would be to rename the ENB-7-07-CAGAIN_Page_4 field so that it doesn't have the dash inside character, he might try to subtract 7 variable he thinks is called BNB.

    Concerning

    Bruce

  • JavaScript: to pass values to another page

    Hi all

    I HAV an interactive report. If I clik on a particular line, who has the rank of values must be sent to another page (via javascript)

    I found this forum https://forums.oracle.com/thread/2467579 in which they hav used to send mail.

    but I wanted to pass those values to another page throug javascript bz, I HAV installed a nd wrking her under right clik plugin.

    my javascript function is,

    function func (action, el, pos)

    {

    Window.Location ="http://apex.oracle.com/pls/apex/f?p=71510:2: & SESSION.: 2:P2_X, P2_X2:'+ $(el).children('td[headers="EMPNO"]').text () + ',' + $(el).children('td[headers="ENAME"]').text ()";

    }

    Here I HAV it redirected to page 2 and on the 2nd page I HAV 2 elements used to get these values.

    $(el).children('td[headers="EMPNO"]').text () + -> is to fetch the empno of that particular line and the same for the name.

    But if I click on the right button clik, no action that happens...

    but his work well, if I use the function as,

    function func (action, el, pos)

    {

    Window.Location ="http://apex.oracle.com/pls/apex/f?p=71510:2: & SESSION. » ;

    }

    so somewhere will not passing the values in the URL, I guess...

    and I HAV used al d above things in

    http://Apex.Oracle.com/pls/Apex/f?p=71510:1 (username: test / paswrd: pex14gm)

    pls help me...

    Thanks in advance

    Try like this.

    function func (action, el, pos) {}

    var empNum = $(el).children('td[headers="EMPNO"]').text ();

    eName var = $(el).children('td[headers="ENAME"]').text ();

    Window.Location = "http://apex.oracle.com/pls/apex/f?p=71510:2: & SESSION.: 2:P2_X, P2_X2:" + empNum + ','+ eName; "

    }

    It looks simple and neat.

    If you still get no view me details of the workspace.

  • How to check if a numeric value is around or not?

    Hello

    A form in LiveCycle Designer ES4, how to check (at the exit of field), if a numeric value is around or not?

    Hello

    You can verify if the rawValue contains a ', 'or'. ' using indexOf

    like the following

    If (NumericField1.rawValue.toString (.indexOf(","))! = - 1 |) NumericField1.rawValue.toString (.indexOf("."))! = -1) {}

    This is not an integer

    }

    Hope this will help you

  • How can I get the numeric value of a reference?

    I would like to get the numeric value of a reference.  If I look at any reference with a probe, I can see it has value, i.e. F280006B.  I would like to enter this value in a digital indicator for some troubleshooting I do. but running a Ref directly in a digital indicator introduced the code. Somehow the probe's work, it must be accessible. All advice out there?

    Type caster in U32.

    Lynn

  • How to make an anchor link also refresh the page?

    I'm trying new things with some widgets (compositions) and I would like to make some anchor links also refresh my page (on the mobile version of my site). I tried to put the link in full instead of simply select my anchor (#myanchor .com/mypage) but who works as the first (perhaps because the user is already on .com / my page #myanchor?)

    A bit of googling found me a way to do this:

    window.location.href = 'mypagetoreload.htm#jumptosection1';
    window.location.reload(true);

    but I don't know how to use it in Muse...

    Thanks in advance!

    OK, I think I understand what you're trying to do. You can use the scroll for this movement options as then your page reload. Feel free to post a link or send me a link in private message so I can see if I'm wrong in what I believe you are trying to do. But I'm sure if I understand that by using the movement of scrolling options should stop for you.

  • How to change the value from another page

    I'm filtering province in my application based on a province selected in the home page (P16), however the user can submit a form that has a province that and after that, all the content must be filtered according to the selected province 'new '. So I'm in the P7 and after submitting the form, I would need to change the P16_PROVINCE - which belong to another page (P16).

    but do not know how,
    Any help?

    Mehrdad says:
    Thanks, VC, but I need to have a trigger to change the P16_PROVINCE after submitting the form, so that one must be changed according to what the user does on a form...
    After he submit the form, I have my game P7_PROVINCE, which is fine, but AFTER the selection, I need to change the P16_PROVINCE (which is used as a global variable to filter my records...)

    Add a plsql page 7 page process and submit the game it runs - as below

    //assign the value of P7_PROVINCE into P16_PROVINCE
    :P16_PROVINCE := :P7_PROVINCE;
    

    See http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/concept_ses_val.htm#HTMDB03012

  • How to create a process to redirect to another page?

    Hi all

    I have a selection list, and when I select a value from this list, I want to redirect to another page. This means that I need to create a process, but I don't know how to write it, please help me!

    Hello

    Selection list can also submit the page and redirect to the page.

    Page under settings attribute selection list Action when the value is modified.

    If you submit the page, you can then create for example a branch that brings you to the target page.

    Kind regards
    Jari

  • Passing values to another page

    Hi all

    I created a search page and a page update.
    In the results of advanced table Variable name is a link and set the Destination URI of property as

    {& varId={@VariableId} & retainAM = Y'

    Now when I click on the link to the name of the Variable to a single row in the results table, it navigates to the Update Page but displays all rows in the table of results.

    How to get a data row on the next Page?

    I tried the exploration to the exercise of the deatisl downwards, but still not solved.

    Thank you
    SK

    Hi Patricia

    Went through your page. The error was that unique selection of the Update Page results Table was the link with XXLCVariablesVO while rest all columns of the table were attached with XXLCUpdVariablesVO.I have created selected under this VO and attached to single selection. This solves the problem.

    I hope that helps!

    Thank you
    AJ

  • How to make text retains its value...

    Hello world

    I currently have difficulties with the text entry fields. I have a flash file that begins with a form for the user to enter text. Once they have their input text they click a button to continue and user is now displayed a results page include text that they come to enter. What I managed to do it.

    However, when you click on the "back button" to return to the form, possibly to correct a mistake they could, it seems that the text that they had registered previously has now disappeared, and text entry fields are returned in their original condition.

    Did someone knows how can I let my users come back to the form to make changes to text and have the form to remember what text was the registration of the user and do not wipe the text fields empty?

    Your help with this would be greatly appreciated

    When your form is first presented to the user, initialize the variables.  When subsequently presented, call restoreF().  When advancing beyond your form, call storeF().  for example, when the form is submitted the following may run every time

    var tfObj:Object;

    {if(tfObj==null)}

    tfObj = new Object();

    var tfA:Array = [enter your textfields];

    } else {}

    restoreF();

    }

    -the code between the dotted lines should run once-

    Call storeF() when you want to store text properties

    function storeF() {}

    for (var i: uint = 0; i<>

    tfObj [tfA [i] .name] is tfA [i] .text;.

    }

    }

    Call restoreF() when you want to restore the text properties

    function restoreF() {}

    for (var i: uint = 0; i<>

    {if(tfObj[tfA[i]]!=undefined)}

    tfA [i] .text = tfObj [tfA [i] .name];

    }

    }

    }

    // ----------------------------------------------------------------------------------------- ----------------------------------------

  • BlackBerry Flip 8220 Smartphone: How can I get the numeric value 0?

    Strange question I know but how do the digital 0 on the keyboard?

    I ask because my home address ends in 50 and there is no 0 on the section numbers! If I try and enter 5O (that is to say 5, then a capital o) does not recognize my email address!

    If anyone can tell me how to find the missing digit, I would be very grateful because I fight here and I don't understand also why pressing the "ty" key three times won't give me number 2 and I have to go to the symbols!

    I hope that all brands above smells and excuse my Dim light if it's obvious!

    You should be able to hit alt, press the space bar.

  • Add multiple column values in another column

    Hello

    I have a table with structure below

    Date of the transaction Country Division of Entity Flag Total
    January 5, 2015GB11CRNews errors5
    January 5, 2015GB11PassNews errors5

    I need to display it in below format

    Date of the transaction Country Division of CR-news mistakes Spend-news mistakes Total-news mistakes
    January 5, 2015GB115510

    If you see the above format, I want the lines had to be transposed to the columns that depends on the value of the INDICATOR. A flag as 'New errors' entry will have a multiple entity (Cr, spend)

    On this basis, we must for the Date of the Transaction, country, Division of the Group and display the data.

    Sum of the total errors in a specific indicator should be displayed in a column.

    I tried under query to convert the columns.

    Select t.transaction_dt, t.cntry_id, t.div_id,

    NVL ()max()decode(t.entity | ) '-' : t.Flag, ' CR-news mistakes ' , t.TOTAL)),0) 'CR-news mistakes',

    NVL ()max()decode(t.entity | ) '-' | t.Flag,'Spend -new errors , t.TOTAL)),0) 'Autori-news mistakes'

    table t

    Group of t.transaction_dt, t.cntry_id, t.div_id;


    In the above how to get the sum total columns for this type of query hint.

    Help, please.

    Something like this maybe?

    SELECT transaction_dt,

    cntry_id,

    div_id,

    Sum(case when Entity = 'CR' and Flag = 'New Errors' Then total else 0 end) CR_New_Errors,

    Sum(case when Entity = 'Spend' and Flag = 'New Errors' Then total else 0 end) Spend_New_Errors,

    Sum(case when Flag = 'New Errors' Then total else 0 end) Total_New errors

    -... etc for all other combinations of flag and entity...

    From your_table

    Transaction_dt GROUP, cntry_id, div_id

Maybe you are looking for

  • Texts began to send as SMS (green) and not of iMessage (blue).

    Broke it with my girlfriend a few weeks ago. I sent him a text today and he sent as a SMS instead of iMessage. This could mean blocked me? I know have iOS 9 would be always indicated as a same iMessage if blocked, but not too sure if she has 9 instal

  • TC 4th Gen - IP address Confusion

    I got my set - up LAN using the 4th Gen TC which served as my backup disk Time Machine (2 TB) Modem for the TC output Cable Ethernet connected the TC to my MacPro, iMac and one on Apple TV, printers, and a Ethernet hub Airport Express Extender. Wirel

  • Bluetooth does not work anymore

    Bluetooth function seems to have completely stopped working on my watch.  When I tried to re-pair it with my phone, it does not appear.  Neither appears in the bluetooth settings of the phone as an available connection.  I turned the market watch and

  • How to treat to a low level on a TOSHIBA HDD MQ01ABD050 format

    HelloI need to do a low-level format of a TOSHIBA MQ01ABD050 (SATA)Could you please tell me how to treat?(The disk HARD is not initialized and cannot be formatted.)Thank you!

  • Connection Wifi Brighthouse problems

    I always have problems connecting to the messaging with Brighthouse Wifi.  I got my Gmail put in place with other providers of Internet services in other places, but it may take 15-20 minutes to connect with Brighthouse - if it connects to all.  Anyo