show more than one value of PLSQL code for screen

How to display more than one value of PLSQL code on screen?


Below the code has the function of printing two PLSQL code. Can someone pls change the Javascript code according to the code below.
begin
  htp.prn('hello world');
  htp.prn('hi');
end;
JavaScript:
Javascript Code
var ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=TEST_PROCESS',0);
ajaxResult = ajaxRequest.get();
alert(ajaxResult);
SKUD.

OPPS...

Need arr = ajaxResult.split(':');

Kind regards
Shijesh

**

Tags: Database

Similar Questions

  • display a value from PLSQL code for screen

    How to display a PLSQL code on screen without loading value or refresh the page?

    I'm using ajax to call javascript code to run the PLSQL code. I want to see a value on the screen when I launch the PLSQL code

    SKUD.

    everything you print from the PLSQL code (using htp.p, htp.prn etc.) with will be available in Javascript as the response from the server. You can only analyze this string in javascript and display on the screen or change the page elements or create objects / dynamic elements using these values.

    A minimal example
    OnDemand PLSQL process: TEST_PROCESS

    begin
      htp.prn('hello world');
    end;
    

    JavaScript code

    var ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=TEST_PROCESS',0);
    ajaxResult = ajaxRequest.get();
    alert(ajaxResult);
    

    Displays an alert message "hello world".

    You can build the string to JSON/XML in PLSQL from the structures of complex data (or more values) or even code HTML, then the treatment required in Javascript, for example extract the values of element of it and set the elements, convert the JSON array to an item from the selection list in the page or put the HTML for a div element on the page.

  • I can't have more than one value of function?

    I hope all of you can point me to some introductory articles/documents on function.

    I know the function is used to calculate a value and it always returns a single value.

    I want to know I can get more than one value of function? If so please share a few lines of code

    Hello

    Certainly, you CAN define functions with OUT parameters. It is generally not advisable to do so, however. Working with settings, for example, can be called from SQL, among other useful things.

    If you are wanting a function that returns multiple values, you would generally be

    -create a procedure that has several OUT parameters

    -create a function that returns a type of object that encapsulates the values that you want to return

    How to make FUNCTION returns several columns and several outputs line

    can functions return multiple values?

    oracle function to return more than one value

    You must give several values of function that can be found in Sql

  • How can I put more than one value in a variable?

    Hi, very new for PLSQL, but someone could please help with this problem?

    If I do the following, it works fine:

    Select salary, the name of employers where salary = (select max (wages) of employers);

    But if I do it in PLSQL im stuck in how you allocate 2 values in a variable.

    I can do the following using fair pay:

    declare

    v1 varchar2 (30);

    Start

    Select salary in v1 of employers where salary = (select max (wages) of employers);

    end;

    However, if I try to select salary, name in v1 of employers where salary = (select max (wages) of employers);

    I get the following error:

    ORA-06550: line 65, column 31:
    PL/SQL: ORA-00947: not enough values
    ORA-06550: line 65, column 4:
    PL/SQL: SQL statement ignored


    Thank you very much


    Thank you very much this is the answer - incredibly fast response!

    Edited by: 882839 01-Sep-2011 08:51
    select salary,name into v1 ....
    

    You cannot select two columns and put them in a variable. You must have two variables to store two values.

    Like this:

    declare
    
    v1 varchar2 (30);
    v2 employers.name%type;
    begin
    
      select salary,name into v1, v2 from employers where salary = (select max (salary) from employers) ;
    
    end;
    
  • How to have a variable the function "return" have more than one value

    @using the Sub function how can user_id accepts the values 0 and 6?

    create or replace function xxactive_user_test)

    p_schema in varchar2,

    p_object in varchar2)

    return varchar2

    as

    Start

    return 'user_id = 0';

    end;

    /

    Post edited by: 880492

    The question or needs is not clear, to me at least.

    > How user_id can take the values 0 and 6

    How the function is used.

    You mean like this:

    return 'user_id IN (0,6)';
    
  • Subquery returns more than one value subquery returns more than one value......

    UPDATE CORPORATECARD_TST SET (CORPORATECARD_TST. USERNAME, CORPORATECARD_TST. CREDITCARDIDCD, CORPORATECARD_TST. DATEINSERTED, CORPORATECARD_TST. DATEUPDATED, CORPORATECARD_TST. CUSTOMERNAME, CORPORATECARD_TST. FORMOFPAYCCNUMFIRSTSIX, CORPORATECARD_TST. FORMOFPAYCCNUMLASTFOUR) = (select distinct CORPORATECARD_SQL. USERNAME, CORPORATECARD_SQL. CREDITCARDIDCD, CORPORATECARD_SQL. DATEINSERTED, CORPORATECARD_SQL. DATEUPDATED, CORPORATECARD_SQL. CUSTOMERNAME, CORPORATECARD_SQL. FORMOFPAYCCNUMFIRSTSIX, CORPORATECARD_SQL. Join FORMOFPAYCCNUMLASTFOUR internal CORPORATECARD_SQL CORPORATECARD_TST on CORPORATECARD_SQL. CORPORATECARDID = CORPORATECARD_TST. CORPORATECARDID);

    CREATE TABLE CORPORATECARD_TST

    (

    CORPORATECARDID NUMBER(*, 0) NOT NULL

    VARCHAR2 (50 BYTE) USER NAME NOT NULL

    CREDITCARDIDCD CHAR (2 BYTES) NOT NULL

    DATEINSERTED DATE NOT NULL

    DATEUPDATED DATE NOT NULL

    VARCHAR2 (255 BYTE) CUSTOMERNAME

    FORMOFPAYCCNUMFIRSTSIX CHAR (6 BYTES)

    FORMOFPAYCCNUMLASTFOUR CHAR (4 BYTES)

    )

    CREATE TABLE CORPORATECARD_SQL

    (

    CORPORATECARDID NUMBER(*, 0) NOT NULL

    VARCHAR2 (50 BYTE) USER NAME NOT NULL

    CREDITCARDIDCD CHAR (2 BYTES) NOT NULL

    DATEINSERTED DATE NOT NULL

    DATEUPDATED DATE NOT NULL

    VARCHAR2 (255 BYTE) CUSTOMERNAME

    FORMOFPAYCCNUMFIRSTSIX CHAR (6 BYTES)

    FORMOFPAYCCNUMLASTFOUR CHAR (4 BYTES)

    )

    Here is the data in the table _TST

    2044 TestUser AX 2 February 12 February 2, 12 TestClient 123456 9876

    2007 TestUser AX 30 January 12 January 30, 12 TestClient 123456 9876

    2004 TestUser AX 30 January 12 January 30, 12 TestClient 123456 9876

    2010 TestUser AX 31 January 12 January 31, 12 TestClient 123456 9876

    TestUser AX 19-SEVEN 6. - 11 19 - SEPT. - 11 123456 9876 TestClient

    2045 TestUser AX 2 February 12 February 2, 12 TestClient 123456 9876

    2020 TestUser AX 1 February 12 February 1, 12 TestClient 123456 9876

    2011 TestUser AX 31 January 12 January 31, 12 TestClient 123456 9876

    2012 TestUser AX 31 January 12 January 31, 12 TestClient 123456 9876

    2046 TestUser AX 2 February 12 February 2, 12 TestClient 123456 9876

    2138 TestUser AX 26 July 12 July 26, 12 TestClient 123456 9876

    Here is the data in the table _SQL

    2009 NEW TestUser DS 31 January 12 January 31, 12 NEW TestClient 999999 0

    2044 NEW TestUser VI 2 February 12 February 2, 12 NEW TestClient 999999 0

    2007 NEW TestUser DC 30 January 12 January 30, 12 NEW TestClient 999999 0

    2004 NEW TestUser MC 30 January 12 January 30, 12 NEW TestClient 999999 0

    2010 NEW TestUser VI 31 January 12 January 31, 12 NEW TestClient 999999 0

    6 NEW TestUser AX 19-SEVEN. - 11 19 - SEPT. - 11 NEW TestClient 999999 0

    2045 NEW TestUser VI 2 February 12 February 2, 12 NEW TestClient 999999 0

    2020 NEW TestUser DS 1 February 12 February 1, 12 NEW TestClient 999999 0

    2011 NEW TestUser AX 31 January 12 January 31, 12 NEW TestClient 999999 0

    2012 NEW TestUser AX 31 January 12 January 31, 12 NEW TestClient 999999 0

    2046 NEW TestUser VI 2 February 12 February 2, 12 NEW TestClient 999999 0

    2138 NEW TestUser AX 26 July 12 July 26, 12 NEW TestClient 999999 0

    Here's the MERGE statement...

    MERGE INTO CORPORATECARD_TST D
    USING
    (
    Select distinct
    CORPORATECARD_SQL. CORPORATECARDID
    CORPORATECARD_SQL. USERNAME
    CORPORATECARD_SQL. CREDITCARDIDCD
    CORPORATECARD_SQL. DATEINSERTED
    CORPORATECARD_SQL. DATEUPDATED
    CORPORATECARD_SQL. CUSTOMERNAME
    CORPORATECARD_SQL. FORMOFPAYCCNUMFIRSTSIX
    CORPORATECARD_SQL. FORMOFPAYCCNUMLASTFOUR
    Of
    CORPORATECARD_SQL
    ) S
    WE
    (
    D.CORPORATECARDID = S.CORPORATECARDID
    )
    WHEN MATCHED, THEN UPDATE GAME
    S.USERNAME = D.USERNAME
    D.CREDITCARDIDCD = S.CREDITCARDIDCD,
    D.DATEINSERTED = S.DATEINSERTED,
    D.DATEUPDATED = S.DATEUPDATED,
    D.CLIENTNAME = S.CLIENTNAME,
    D.FORMOFPAYCCNUMFIRSTSIX = S.FORMOFPAYCCNUMFIRSTSIX,
    D.FORMOFPAYCCNUMLASTFOUR = S.FORMOFPAYCCNUMLASTFOUR,

    WHEN NOT MATCHED THEN INSERT
    (
    D.CORPORATECARDID
    D.USERNAME
    D.CREDITCARDIDCD
    D.DATEINSERTED
    D.DATEUPDATED
    D.CLIENTNAME
    D.FORMOFPAYCCNUMFIRSTSIX
    D.FORMOFPAYCCNUMLASTFOUR
    )
    VALUES
    (
    S.CORPORATECARDID
    S.USERNAME
    S.CREDITCARDIDCD
    S.DATEINSERTED
    S.DATEUPDATED
    S.CLIENTNAME
    S.FORMOFPAYCCNUMFIRSTSIX
    S.FORMOFPAYCCNUMLASTFOUR
    )
    ;

    The desired output would be for the _TST and the _SQL to have the same data as the _SQL as below...

    2009 NEW TestUser DS 31 January 12 January 31, 12 NEW TestClient 999999 0

    2044 NEW TestUser VI 2 February 12 February 2, 12 NEW TestClient 999999 0

    2007 NEW TestUser DC 30 January 12 January 30, 12 NEW TestClient 999999 0

    2004 NEW TestUser MC 30 January 12 January 30, 12 NEW TestClient 999999 0

    2010 NEW TestUser VI 31 January 12 January 31, 12 NEW TestClient 999999 0

    6 NEW TestUser AX 19-SEVEN. - 11 19 - SEPT. - 11 NEW TestClient 999999 0

    2045 NEW TestUser VI 2 February 12 February 2, 12 NEW TestClient 999999 0

    2020 NEW TestUser DS 1 February 12 February 1, 12 NEW TestClient 999999 0

    2011 NEW TestUser AX 31 January 12 January 31, 12 NEW TestClient 999999 0

    2012 NEW TestUser AX 31 January 12 January 31, 12 NEW TestClient 999999 0

    2046 NEW TestUser VI 2 February 12 February 2, 12 NEW TestClient 999999 0

    2138 NEW TestUser AX 26 July 12 July 26, 12 NEW TestClient 999999 0

    However, after I compile and run the Sp that has the MERGER, data still looks like this...

    Here is the data in the table _TST

    2044 TestUser AX 2 February 12 February 2, 12 TestClient 123456 9876

    2007 TestUser AX 30 January 12 January 30, 12 TestClient 123456 9876

    2004 TestUser AX 30 January 12 January 30, 12 TestClient 123456 9876

    2010 TestUser AX 31 January 12 January 31, 12 TestClient 123456 9876

    TestUser AX 19-SEVEN 6. - 11 19 - SEPT. - 11 123456 9876 TestClient

    2045 TestUser AX 2 February 12 February 2, 12 TestClient 123456 9876

    2020 TestUser AX 1 February 12 February 1, 12 TestClient 123456 9876

    2011 TestUser AX 31 January 12 January 31, 12 TestClient 123456 9876

    2012 TestUser AX 31 January 12 January 31, 12 TestClient 123456 9876

    2046 TestUser AX 2 February 12 February 2, 12 TestClient 123456 9876

    2138 TestUser AX 26 July 12 July 26, 12 TestClient 123456 9876

    Here is the data in the table _SQL

    2009 NEW TestUser DS 31 January 12 January 31, 12 NEW TestClient 999999 0

    2044 NEW TestUser VI 2 February 12 February 2, 12 NEW TestClient 999999 0

    2007 NEW TestUser DC 30 January 12 January 30, 12 NEW TestClient 999999 0

    2004 NEW TestUser MC 30 January 12 January 30, 12 NEW TestClient 999999 0

    2010 NEW TestUser VI 31 January 12 January 31, 12 NEW TestClient 999999 0

    6 NEW TestUser AX 19-SEVEN. - 11 19 - SEPT. - 11 NEW TestClient 999999 0

    2045 NEW TestUser VI 2 February 12 February 2, 12 NEW TestClient 999999 0

    2020 NEW TestUser DS 1 February 12 February 1, 12 NEW TestClient 999999 0

    2011 NEW TestUser AX 31 January 12 January 31, 12 NEW TestClient 999999 0

    2012 NEW TestUser AX 31 January 12 January 31, 12 NEW TestClient 999999 0

    2046 NEW TestUser VI 2 February 12 February 2, 12 NEW TestClient 999999 0

    2138 NEW TestUser AX 26 July 12 July 26, 12 NEW TestClient 999999 0

  • Show more than one worksheet in a XY Chart

    Hello

    How can I display multiple spreadseet on a XY Chart?

    I use this method for single file:

    You can simply use a loop FOR.  Automatic index on your table of files.  Inside the loop, you just read the file and treat it as you do already.  Then you add just the table.  If you have LabVIEW 2013 or later, you can use the Concatinating Tunnel for the output array.

  • Cut the screen in Adobe to show more than one document at the same time? That is to say. Discover three different documents on one screen

    I'm looking at three Adobe documents at the same time.  Then I split the screen to do this, otherwise I have to keep flipping back to read documents.

    Use the menu window > tile >

  • How to register more than one user name and password for a Web site?

    First of all, let me say that I am extremely irritated that I just spent 15 minutes written a very detailed question and researching my OS, browser version, etc., as all have cleared because I don't "check" my e-mail address before I started typing my question. Firefox: correct your registration and the issue of the accounting process so that this happens. He should keep your info for a smooth running of the process, after checking. What a waste of time and effort when I'm already frustrated.

    REAL QUESTION: I managed two calendars online under a single root URLS (www.samplepage.com/calendar1 and www.samplepage.com/calendar2). My e-mail address is the user for both accounts ID, but passwords are different.

    FF used to associate ALL of the URL of your user name and password, but now it combines only the root (www.samplepage.com). So, for me, will remember only one password.

    How can I get to remember TWO passwords?

    Thank you!

    This is not possible with the Firefox password manager. You can only save a user name and password once for a specific field, so if the name is the same then it does not work.

  • dbms_xplan.display_awr view more than one plan

    Hello
    There are times when dbms_xplan.display_awr running, shows more than one execution plan.
    How will I know which of the plans is the most recent?

    For example:
    SYS@QA > SELECT * FROM table (dbms_xplan.display_awr ('0gtqfjcypx66z'));

    Plan of living room of two diffrenets:

    Hash value of plan: 3366355658
    Hash value of plan: 2273523394

    Thank you

    Hello

    Join tables to find out which plan is the most recent
    dba_hist_sql_plan
    dba_hist_snapshot
    dba_hist_sqlstat

    You will find the time of the snapshot

    Kind regards

  • Is it possible to add more than one customer in net agreement R12

    Hi Experts,

    Is it possible to add more than one customer in net agreement R12. Please suggest me as soon as possible.
    System does not show more than one customer during the creation of the compensation agreement.

    Kind regards
    Rahul

    Hi Raju,

    Currently, there is no functionality to import compensation via the interface conventions.
    There is a demand for improvement raised for the issue.
    Bug 7441955: NEED of API FOR CREATING programmatic from NETTING AGREEMENTS

    Reference-
    Interface or API required to load of AP/AR NET agreements [ID 1417380.1]

    Kind regards
    Ivruksha

  • Can I use more than one flash drive to ready boost on Satellite L650/0ed

    Hello

    I have a toshiba Satellite L650/0ed, it's good if I use more than one drive 8 GB flash for "ready boost" - what is the maximum number of using flash-drives can devote to the "ready-boost.

    In addition, if I use a 16 gb flash drive, will this affect more memory "ready boost".

    Why the 3.5 drive seagate expansion 1 TB is not compatible for ready-boost.

    Thank you
    -Brent907

    Hi mate

    Please check this Microsoft page that describes the ReadyBosst
    http://Windows.Microsoft.com/en-us/Windows7/products/features/ReadyBoost

    There, you can find this statement:
    + ReadyBoost works with storage devices more flash. In Windows 7, it can handle more memory and even multiple devices * eight *, for a maximum of 256 GB of additional memory. +

    I hope this can be useful!

  • SQL: how to display the second string of the function in the Jobs table only if the function has more than one string.

    SQL: how to display the second string of the function in the Jobs table only if the function has more than one string.

    Hello

    You can use REGEXP_SUBSTR Oracle/PLSQL: REGEXP_SUBSTR function

    Select the function double REGEXP_SUBSTR('PUBLIC RELATION REPRESENTATIVE ','[^]+',1,2);

    Do you have any value of the column as no 2nd string?

  • How can I put more than one detail in a select list/menu?

    Hi guys! If someone could help me with this problem, I have would be great!

    I'm putting more than one dynamic field on a line in a list/menu select for example... HomeTeam, AwayTeam, Kick Off Date v (mainValue)

    The code of the selection list is below.

    < select name = 'test' id = 'test' >

    <? PHP

    {}

    ? >

    < option value = "<?" PHP echo $row_fixtures ["HomeTeam"]? ' > ' > <? PHP echo $row_fixtures ["HomeTeam"]? > < / option >

    <? PHP

    } While ($row_fixtures = mysql_fetch_assoc ($fixtures));

    $rows = mysql_num_rows ($fixtures);

    If ($rows > 0) {}

    mysql_data_seek ($fixtures, 0);

    $row_fixtures = mysql_fetch_assoc ($fixtures);

    }

    ? >

    < / select >

    You have the values in the same record?

    Please present the structure of the database.

    normally the select option would look like

  • jvue more than one print to the network printer

    When I try to print from jvue get more than one print to another printer.
    When I PC connected with 2 printers, a printer is my default printer .if giving printing on printer (default printer not), this file impression in both printers.

    Code of the applet:

    < html > < head > < script >
    Function myFunction()
    {
    myApp var = window.document.applets ["JVue"]; window.document.applets ["JVue"] .getActiveVueBean () .getProfile () .addString ("PRINTOPTIONS", "PRINTERNAME", "HP LaserJet P1008 on 192.168.3.1");
    var pPropsClass = myApp.getClass ("com.cimmetry.common.PrintProperties"); var pProps = pPropsClass.newInstance (); pProps.setProfile (myApp.getActiveVueBean () .getProfile ());
    printop var = myApp.getClass ("com.cimmetry.common.PrintOptions");
    var printoperation = printop.newInstance ();
    printoperation.setPaperSize (printoperation. PAPER_A3);
    pProps.setOptions (printoperation);
    var vectorClass = myApp.getClass ("java.util.Vector");
    List of files of the var = vectorClass.newInstance ();
    vList var = "05 12 12 30 55 749\\654744\\42600_1600x1200-wallpaper-cb1320062937.jpg server://ADMIN03";
    var SplitResult = vList.split(',');
    for (i = 0; i < SplitResult.length; i ++)
    {
    var filepathe = SplitResult. toString();
    fileList.addElement (filepathe);
    myApp.batchPrint (fileList, pProps, true, true);
    vcomp var = myApp.waitForLastMethod ();
    BatchPrint();
    }
    }
    < /Script > printing...
    < / head >
    < body onload = "window.focus (); ">
    < form id = "form1" runat = "server" >
    < APPLET
    NAME = "JVue".
    CODE = "com. Cimmetry.jvue.JVue.Class ".
    CODEBASE = "http://192.168.3.1/jVue."
    ARCHIVES = ' jvue.jar, jogl.jar and gluegen - rt.jar.
    HSPACE = "0" HSPACE = "0".
    WIDTH = "0%" HEIGHT = "0%" MAYSCRIPT > < param name = "USERNAME" = VALUE "ADMIN03 05 12 12 30 55 749" >
    < PARAM NAME = "ONINIT" VALUE = "myFunction (); ">
    < PARAM NAME = "EMBEDDED" VALUE = "true" >
    < PARAM NAME = "VERBOSE" VALUE = "false" >
    < PARAM NAME = "CACHEUI" VALUE = "false" >
    < PARAM NAME = "ENABLEEMF" VALUE = "true" >
    < PARAM NAME = 'NOCOOKIES"VALUE ="true">
    < param name = "failure_url" value = "failure.html" >
    < PARAM NAME = "PDFCACHELEVEL" VALUE = "High" >
    < PARAM NAME = "USEMESHCACHE" VALUE = "0" >
    < PARAM NAME = "GUIFILE" VALUE = "ENABLE_PRINT.gui" > "
    < PARAM NAME = "JVUESERVER" VALUE = "http://192.168.3.1:5098/servlet/VueServlet" >


    JRE 6.0 or higher is required
    You do not have Java Plug-ins installed
    < / APPLET > < / form > < body / > < / html >

    Published by: Chio on 3 may 2012 12:17

    Hi Serge,

    Please change these lines:
    var printoperation = printop.newInstance ();
    printoperation.setPaperSize (printoperation. PAPER_A3);
    pProps.setOptions (printoperation);

    to the following:
    pProps.getOptions () .setPaperSize (pProps.getOptions (). PAPER_A3);

    and see if that solves your problem.

    The problem is that pProps.setOptions () overrides the printer that you set two or three statements earlier in the code.

    Thank you
    Artash.

Maybe you are looking for

  • Satellite C660D - a key is broken

    Hi ppl, I bought my new Satellite C660D a few weeks ago. Its great to work with her, but fools a key is broken since I have. What should I do to fix this? Do I need a whole new keyboard? If I do, I get another keyboard, which has a touch POS1 and not

  • PCMCIA speed with U-series of satellites of reading

    I have problems with my compact door adapter pcmcia flash. The reading speed is only 700kb\sec. It is very slow. How can I speed it up?

  • ResetPassword

    Mykeyis60687365 need password

  • Touch screen no longer works

    After the wake-up mode PC day before, the touch screen did not work.   Everything ok with the mouse and keyboard. I have cleaned the screen, performed a system restore, nothing works. Model 23-f207a, s/n [redacted], Nr H57100AA #ABG. O/s 8.1 Win 64 b

  • Please bring back horizontal juxtaposition

    Please please please bring back horizontal juxtaposition for multi-screen configurations. I've upgraded to Vista and I have LESS FUNCTIONALITY! ?? This is ridiculous. Make it happen! Please, I beg you! (the section of the complaint does not work if I