How to use Ajax get multiple values in an array?

Hi All-

I am using AJAX to get multiple values in a table using example of Denes Kubicek in the following link-

http://apex.oracle.com/pls/otn/f?p=31517:239:9172467565606:NO:

Basically, I want to use the drop-down list to fill the rest of the values in the form.

I created the example (Ajax get several values, 54522 application) on the Oracle site.

http://apex.oracle.com/pls/apex/f?p=4550:1:0:

Workspace: iConnect

Login: demo

password: demo

I was able to reproduce his example on page 1 (homepage).

However, I want to use system generate a table to complete this example and was not able to complete the data correctly.

Page 2 (method 2) is that I'm struggling to fill the column values. When I checked the item application values in the Session, and values seems to be filled properly.

That's what I did on this page:

1 create an Application process on-demand - Set_Multi_Items_Tabular2:

DECLARE
  v_subject my_book_store.subject%TYPE;
  v_price my_book_store.price%TYPE;
  v_author my_book_store.author%TYPE;
  v_qty NUMBER;

  CURSOR cur_c
  IS
  SELECT subject, price, author, 1 qty
  FROM my_book_store
  WHERE book_id = :temporary_application_item2;
BEGIN
  FOR c IN cur_c
  LOOP
  v_subject := c.subject;
  v_price := c.price;
  v_author := c.author;
  v_qty := c.qty;
  END LOOP;

  OWA_UTIL.mime_header ('text/xml', FALSE);
  HTP.p ('Cache-Control: no-cache');
  HTP.p ('Pragma: no-cache');
  OWA_UTIL.http_header_close;
  HTP.prn ('<body>');
  HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
  HTP.prn ('<item id="f04_' || :t_rownum || '">' || v_subject || '</item>');
  HTP.prn ('<item id="f05_' || :t_rownum || '">' || v_price || '</item>');
  HTP.prn ('<item id="f06_' || :t_rownum || '">' || v_author || '</item>');
  HTP.prn ('<item id="f07_' || :t_rownum || '">' || v_qty || '</item>');
  HTP.prn ('</body>');
END;





2. create two objects application - TEMPORARY_APPLICATION_ITEM2, T_ROWNUM2

3. put the following text in the Page header:

<script language="JavaScript" type="text/javascript">
function f_set_multi_items_tabular2(pValue, pRow){
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
'APPLICATION_PROCESS=Set_Multi_Items_Tabular2',0);
if(pValue){
get.add('TEMPORARY_APPLICATION_ITEM2',pValue)
get.add('T_ROWNUM2',pRow)
}else{
get.add('TEMPORARY_APPLICATION_ITEM2','null')
}
    gReturn = get.get('XML');
    if(gReturn){
        var l_Count = gReturn.getElementsByTagName("item").length;
        for(var i = 0;i<l_Count;i++){
            var l_Opt_Xml = gReturn.getElementsByTagName("item")[i];
            var l_ID = l_Opt_Xml.getAttribute('id');
            var l_El = html_GetElement(l_ID);    
            if(l_Opt_Xml.firstChild){
                var l_Value = l_Opt_Xml.firstChild.nodeValue;
            }else{
                var l_Value = '';
            }
            if(l_El){
                if(l_El.tagName == 'INPUT'){
                    l_El.value = l_Value;
                }else if(l_El.tagName == 'SPAN' && l_El.className == 'grabber'){
                    l_El.parentNode.innerHTML = l_Value;
                    l_El.parentNode.id = l_ID;
                }else{
                    l_El.innerHTML = l_Value;
                }
            }
        }
    }
    get = null;
}
</script>


Add the follwing to the end of the above JavaScript:

<script language="JavaScript" type="text/javascript">
function setLOV(filter, list2)
{
 var s = filter.id;
 var item = s.substring(3,8);
 var field2 = list2 + item;
 
 f_set_multi_items_tabular2(filter, field2);
}




 


4 query in the form:

select
"BOOK_ID",
"BOOK",
"SUBJECT",
"PRICE",
"AUTHOR",
"QTY",
"BOOK_ID" BOOK_ID_DISPLAY
from "#OWNER#"."MY_BOOK_STORE"





5. in the column of Book_ID_DISPLAY attribute:

Add the following code to the attributes of the element: onchange = "javascript:f_set_multi_items_tabular2(this.value,'#ROWNUM#'); »

Changed-> onchange = "javascript:setLOV(this,'f03'); »

Now, T_ROWNUM2 returns the value as f03_0001. But TEMPORARY_APPLICATION_ITEM2 returns in the form [object HTMLSelectElement]...

Please help me to see how I can fill the data in the tabular presentation format. Thank you in advance!

Ling

Updating code in red...

Ling

LC says:

Application Item Value Item Name
54522 3 TEMPORARY_APPLICATION_ITEM2
54522 f03_0003 T_ROWNUM2

No T_ROWNUM2 should be 0003.

I made a copy of your page to make corrections.

There are several problems.

First you where submiting T_ROWNUM2 whereas you would use: t_rownum in the pl/sql code.

I changed the name of the element in the f_set_multi_items_tabular2.

Secondly you where now affecting the rownumber f03_0001 for the first line.

Resulting XML returned as follows.

this xml genericly sets multiple items
CSS Mastery
22
Andy Budd
1

I changed the following text in the show_lov.

var point = s.substring (4.8);

var Field2 = item;

I also had a compilation of pl/sql code error, there was a); missing the end of the last item. Fixed that too.

But why do you think lpad won't work for lines 10 and more.

LPAD ('10', 4, '0') will give "0010"

LPAD ('100 ', 4,'0 ') will give "0100"

LPAD ('1000 ', 4,'0 ') will give '1000'

So unless you have more than 9999 lines you would have no problem.

Nicolette

Tags: Database

Similar Questions

  • just bought SCAN SNAP supplied with disc of Acrobat, but only for PC, I use a MAC, the serial number of the disk, how to use and get for MAC

    just bought SCAN SNAP supplied with disc of Acrobat, but only for PC, I use a MAC, the serial number of the disk, how to use and get for MAC

    Standard Acrobat's window only; Acrobat pro for mac

  • Get multiple values in a select statement in a variable to a procedure

    Hello

    I'm trying to craete a procedure where the entry of the procedure will be a similar string "a, b, c, d" and output the values of a table that matches the value separated by commas of in sting.

    For this.

    create table test (varchar2 (10)) nm;

    Insert test values ('a');

    Insert test values ('b');

    Insert test values ('c');

    Insert test values (');

    Select * from test;

    NM

    ------

    one

    b

    c

    d

    Now I'm doing a procedure where the parameter will be the column values NM of TEST table in a string separated by commas like "a, b, c, d, x, l" there could be false values also.

    The procedure will return only the values that are adapted with column NM from the TEST table for this I created this procedure.

    create or replace procedure p_test (p_nm IN varchar2 / *, THE sys_refcursor p_out * /)

    is

    number of l_len;

    l_val varchar2 (10);

    l_val1 varchar2 (10);

    Start

    l_len: = length (p_nm);

    -dbms_output.put_line (l_len);

    Start

    because me in 1.l_len

    loop

    Select REGEXP_SUBSTR (p_nm, ' ([^,] *)(,|$)', 1, I, NULL, 1) in double l_val;

    -dbms_output.put_line (l_val);

    -Open p_out for

    Select * into l_val1 of test where nm = l_val;

    dbms_output.put_line (l_val1);

    output when l_len is null;

    end loop;

    exception

    When no_data_found then

    null;

    end;

    exception

    while others then

    dbms_output.put_line (' error reason :'||) SQLERRM |' :'|| error code SQLCODE);

    end;

    EXECUTE p_test ('a, b, c, d, q, w');

    OUTPUT-

    one

    b

    c

    d

    This procedure gives me out as I need, but I need to get this in a variable which should be OUT the parameter of this procedure will be called by the JAVA for our application.

    As I already tried to use the refcursor (see the commented part), but it gives me no output during a call there.

    Its a call to this procedure when I use the refcursor (removing comments).

    declare

    l_out sys_refcursor;

    l_val varchar2 (20);

    l_str varchar2 (20): = 'a, b, c, d;

    Start

    p_test (l_str, l_out);

    loop

    extract the l_out in l_val;

    dbms_output.put_line (l_val);

    dbms_output.put_line ('a');

    When the output l_out % notfound;

    end loop;

    end;

    So here I am stuck with that, how to get the result of multiple or I'm missing something here and if there is a better approach to this requirement as I come with that so I'm sharing it here.

    OR if someone can tell me what is the problem with this package-

    create or replace package p_test_api

    is

    type t_rec is rendered (name varchar2 (200));

    type t_tab is table of index by pls_integer t_rec;

    procedure p_pest_proc (p_nm in varchar2, p_out to t_tab);

    end p_test_api;

    /

    create or replace package body p_test_api

    is

    procedure p_pest_proc (p_nm in varchar2, p_out to t_tab)

    is

    number of l_len;

    l_val varchar2 (10);

    l_val1 varchar2 (10);

    Start

    l_len: = length (p_nm);

    Start

    because me in 1.l_len

    loop

    Select REGEXP_SUBSTR (p_nm, ' ([^,] *)(,|$)', 1, I, NULL, 1) in double l_val;

    dbms_output.put_line (l_val);

    Select * bulk collect into p_out test where nm = l_val;

    output when l_len is null;

    end loop;

    exception

    When no_data_found then

    null;

    end;

    exception

    while others then

    dbms_output.put_line (' error reason :'||) SQLERRM |' :'|| error code SQLCODE);

    end p_pest_proc;

    end p_test_api;

    CALL THIS PACKAGE-

    declare

    l_out p_test_api.t_tab;

    l_str varchar2 (20): = 'a, b, c, d;

    Start

    P_TEST_API. P_PEST_PROC (l_str, l_out);

    dbms_output.put_line ('b');

    because me in 1.l_out.count

    loop

    dbms_output.put_line ('a');

    dbms_output.put_line (l_out (i). (Name)

    dbms_output.put_line ('a');

    When the output l_out.count = 0;

    end loop;

    dbms_output.put_line ('a');

    end;

    It won't loop

    I am using-

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    Thank you

    First of all, get rid of it WHEN OTHERS like William already noted. If you do not want to use the collections:

    SQL > create or replace
    function f_test () 2
    3 p_nm varchar2
    4                  )
    5 return varchar2
    6 is
    v_result 7 varchar2 (4000);
    Start 8
    9. Select listagg (nm, ',') within the Group (nm control)
    10 in v_result
    11 test
    where the 12 «,» | p_nm | ',' like '%', | NM | ',%';
    13 return v_result;
    14 end;
    15.

    The function is created.

    SQL > start
    2 dbms_output.put_line (f_test ('a, b, c, d, x, w'));
    3 end;
    4.
    a, b, c and d

    PL/SQL procedure successfully completed.

    SQL >

    SY.

  • How to 'use the tool of value' default tool?

    I recently upgraded from LabView LabView 8.6 8.2 and now the 'exploit value Tool' is the "Position/size/Select Tool" by default.  Is it possible that I can make the tool "carrying value" of the default tool?

    Thank you

    Kevin

    EDIT: deleted my original post, it was incorrect.

    Try the auto tools as suggested by smercurio.  Hold down SHIFT while the automatic selection of tools is active will give you the second-most-useful for this moment; When you move to a control, you will get the position/size/select.

  • How to use the getter class set extends thread?

    package mypackage;
    
    import java.io.ByteArrayInputStream;
    import java.io.InputStream;
    
    import javax.microedition.io.HttpConnection;
    import javax.microedition.xml.rpc.Element;
    
    import org.w3c.dom.Document;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    
    import net.rim.device.api.io.messaging.UsernamePasswordCredentials;
    import net.rim.device.api.io.transport.ConnectionFactory;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.component.RichTextField;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.xml.parsers.DocumentBuilder;
    import net.rim.device.api.xml.parsers.DocumentBuilderFactory;
    
    public class search extends Thread{
    private MainScreen scren;
    
    String nul = "";
    MyScreen a = new MyScreen();
    
        public void run() {// define variables later used for parsing
            System.out.println("MASUK SEARCH!!!");
            String url = "http://localhost/ms/password.xml";
            Document doc = null;
            HttpConnection conn = null;
            try{
    
                //providing the location of the XML file,
                //your address might be different
                conn=(HttpConnection) new ConnectionFactory().getConnection(url).getConnection();
                System.out.println(conn.toString());
                conn.setRequestProperty("User-Agent",
                "Profile/MIDP-1.0 Confirguration/CLDC-1.0");
                conn.setRequestMethod(HttpConnection.GET);
                //next few lines creates variables to open a
                //stream, parse it, collect XML data and
                //extract the data which is required.
                //In this case they are elements,
                //node and the values of an element
                if(conn.getResponseCode()== HttpConnection.HTTP_OK){
                DocumentBuilderFactory docBuilderFactory= DocumentBuilderFactory. newInstance();
                System.out.println("masuk Sini");
    
                InputStream inputStream = conn.openInputStream();
    
                byte[] data = new byte[256];
                int len = 0;
                int size =0;
                StringBuffer raw = new StringBuffer();
                while(-1 !=(len =inputStream.read(data))){
                    raw.append(new String(data,0,len));
                    size +=len;
                }
                String content = raw.toString();
                InputStream input = new ByteArrayInputStream(content.getBytes());
    
                DocumentBuilder docBuilder= docBuilderFactory.newDocumentBuilder();
                docBuilder.isValidating();
                System.out.println("dan sini");
                docBuilderFactory.setIgnoringElementContentWhitespace(true);
    
    //            Element root= doc.getDocumentElement();
    //            System.out.println(root.toString());
    //
    //            Element operation = (Element) root.getOwnerDocument();
    //            System.out.println(operation.toString());
    //            String layer = operation.getAttribute("Category");
    //            System.out.println(layer);
    //            root.normalize();
                System.out.println("terakhir");
    
    //            System.out.println("Category:"+layer);
                doc = docBuilder.parse(input);
                doc.getDocumentElement().normalize();
                NodeList list=doc.getElementsByTagName("password");
           System.out.println("Atleast!");
    
               String _node=new String();
               String  _element = new String();
                //this "for" loop is used to parse through the
                //XML document and extract all elements and their
                //value, so they can be displayed on the device
    
                for (int i=0;i
    

    Sorry for my bad English

    This is my code

    I want to pass the string, which is _Node I get it to XML parsing, to another class.

    can I get the string? Thank you

    already fact-_-

    user OOP

  • How to use the 'Get Shared Variable list' VI on a target RT?

    Hello

    I would like to browse all variables shared in a library hosted on my CompactRIO programmatically. I dropped the 'Get Shared Variable list' VI in my VI in real time, but when I tried deploying, LabVIEW says

    Deployment PRC_GetVarList.viPRC_GetVarList.vi loaded with errors on the target and was closed.
    LabVIEW: Unable to load the shared library dscProc.dll:ni_lvdsc_process_GetTagListEnd:C. ensure that the library is present on the target of RT. MAX allows you to install software from OR or FTP to transfer custom RT target libraries.
    LabVIEW: Unable to load the shared library dscProc.dll:ni_lvdsc_process_GetTagListBegin:C. ensure that the library is present on the target of RT. MAX allows you to install software from OR or FTP to transfer custom RT target libraries.

    I watched the wizard of the MAX software, but cannot find the DSC-based modules. Where should I look?

    Thank you!

    Hello

    The palette of DSC is not supported on the screws in real-time and will lead to errors when they are deployed.  Unfortunately, to have a successful build you will need to modify your application and remove the screws from the palette of DSC on your target of RT.

  • How to use intersect with multiple paths

    Hello

    I'm trying to follow a tutorial where a number of thin rectangles is superimposed by a vector of splat, and then joined so the thin rectangle model takes the form of splat.  Here is the tutorial: http://www.gomediazine.com/tutorials/gigposter-design-the-new-sex/#comment-6952197

    Try as I might, I'm totally incapable of relaxation effect, although I did a year ago, so I know it's possible.

    Any suggestions would be welcome!

    -Llyfre

    Are you getting the error you must select 2 items overalapping?

    Select all rectangles and 8 CMD (CTRL 8 PC) to make the rectangles a compound path. Now interesect will work.

  • How to draw the average sensor values against an array of constant (long positions)?

    I have 7 microphones where I take the RMS value.  They are physically located in a line, and I would like to draw their values against their positions.  How can I think.  I guess I'll need to use the XY plot, but I don't know how to turn the 7 signals into a single table and how to create a table of constants for the positions.

    I think that I have, there are however a large number of conversions.  You see somehow I could simplify this, or is it as simple as I'm going to?  I have included my file to the post.

  • getting specific values of an array

    Line 10 of the block diagram creates a table after taking the values of table x and y of line 1 and then made the following xsin (theta) + ysin (theta) of calculation. ---> shown in the table in face Panel

    What I need to know how to create a table consists of x and y which give the xpos value, in this case, 1 in the table from the front panel.


  • Cannot get 'IN' text field with multiple values.

    I have a text field (P11_SERIAL_NUMBERS) someone would use to enter multiple values (i.e. of the serial numbers). I tested various methods but can't seem to get anything working. I used values such as ' 12929', '19191' or ('11919', ' 19192 ', ' 1111') or 12121,121333.»

    I have to analyze this area after the entrance is and update P11_SERIAL_NUMBER to something like ("121212 ', 121211', '292929'). The report is a SQL query returning the body of a PL/SQL function. I build the query in an anonymous block to something like the following:

    SELECT apex_item.checkbox (1, instance_number) Ins,.
    apex_item. Text(2,i.instance_number) instance_number.
    apex_item. Text(3,i.item_number) item_number.
    description of the apex_item. Text(4,i.Description),
    Serial_number apex_item. Text(5,i.serial_number),
    i.party_name,
    i.status_name
    Cycsi_item_details_v I have
    WHERE i.item_number IN (SELECT v.item_number FROM cycsi_installed_base_v WHERE v.serial_number = i.serial_number v)
    AND i.item_number AS NVL ('%' |') XLA' | ' %','%')
    AND NOT EXISTS (SELECT d.item_serial_number FROM cy_fco_d, d WHERE d.fco_id = 2803 AND d.item_serial_number = i.serial_number) AND i.serial_number IN ('61763 ', ' 61621');

    However, when I enter several values that nothing ever went back to the SUMMIT even though the SQL query returns more rows. I run the application in debug mode and it seems to show the values correctly.

    0.11: show report
    0.12: determine the column headings
    0.12: analyze the query such as: TRAFFIC
    0.15: binding: ": P11_MODEL_NUMBER"= "P11_MODEL_NUMBER" value = "XLA"»
    0.16: binding: ": P5_FCO_ID"= "P5_FCO_ID" value = "2803"»
    0.17: binding: ": P11_SERIAL_NUMBERS"= "P11_SERIAL_NUMBERS" value = '(' 61621', ' 61763')""
    0.19: print the column headings
    0.19: loop lines: 15 rows
    No data found

    If I add only a serial number at a time as the APEX application returns the line correctly.


    Does anyone have an idea what I'm doing wrong or what best way to solve this problem?
    Thank you
    John

    Published by: Jennifer on July 13, 2010 15:23

    Hi John,.

    I just tried a report region based on PL/SQL query encoded using your method to refer to element names in the query string of back:

    declare
       q varchar2(100) := 'select ename, job from emp';
    begin
       if :P2_ENAMES is not null then
            q := q || ' where ename in :P2_ENAMES';
       end if;
    
       wwv_flow.debug('*** Query: ' || q);
    
       return q;
    end;
    

    As I suspected, he did not work for me P2_ENAMES was ('KING') or ('KING', 'SMITH'). I think it's because of the reason for which I gave in my previous post - ApEx passes off the coast of the dynamic execution of SQL string, it does not automatically replace the mention: P2_ENAMES with the value of the element. I don't know how it can work for you.

    If I change the code I proposed:

    declare
       q varchar2(100) := 'select ename, job from emp';
    begin
       if :P2_ENAMES is not null then
            q := q || ' where ename in ' || :P2_ENAMES;
       end if;
    
       wwv_flow.debug('*** Query: ' || q);
    
       return q;
    end;
    

    It works very well if one or several names are specified.

    I took a blow to modify your code for the construction of the query string - does not immediately guarantee, it'll work because I can't test (might be missing a parenthesis or quotation) it but you should get the idea:

    -- start with initial valid query that ApEx can parse to determine column names
    q := 'SELECT apex_item.checkbox(1, instance_number) ins, apex_item.text(2, i.instance_number) instance_number,
                 apex_item.text(3, i.item_number) item_number, apex_item.text(4, i.description) description,
                 apex_item.text(5, i.serial_number) serial_number, i.party_name, i.status_name
            FROM cycsi_item_details_v i
           WHERE i.item_number IN (SELECT v.item_number
                                     FROM cycsi_installed_base_v v
                                    WHERE v.serial_number = i.serial_number)';
    
    -- add model number condition if specified
    if :P11_MODEL_NUMBER is not null then
       q := q || ' AND i.item_number LIKE ''%' || :P11_MODEL_NUMBER || '''%''';
    end if;
    
    -- add serial numbers condition if specified
    if :P11_SERIAL_NUMBERS is not null then
       q := q || ' AND i.serial_number IN (' || :P11_SERIAL_NUMBERS || ')';
    end if;
    
    -- add FCO id condition if specified
    if :P5_FCO_ID is not null then
       q := q || ' AND NOT EXISTS (SELECT d.item_serial_number
                                     FROM cy_fco_d d
                                    WHERE d.fco_id = ' || :P5_FCO_ID || '
                                      AND d.item_serial_number = i.serial_number)';
    

    I know that has focused on getting this code works, but I would be remiss in my duties if I didn't at least mention the risk of SQL injection. You may already know this, but unless you do a good job to validate the values of the element used in the query, you could open yourself up to a SQL injection attack. For example, imagine what that would be returned if a hacker sharp entered "12345) GOLD (1 = 1" in the field of P11_SERIAL_NUMBERS - you would get all that may or may not be a security problem.

    Hope this helps,
    John

  • Set and get the value of the item application in Javascript

    Hello guys,.
    Can you tell me an example how to set and get the value of the application element in Javascript, and how do I check if the value of the point of application is null in Javascript, too. I have read a few replies, but nothing worked (e.g. $x (app_item), $v (app_item), $s (app_item) and so on).

    Thanks in advance!

    To get the value of an element, use the following syntax:

      alert("The value of MY_TEST_ITEM is " + $x("MY_TEST_ITEM").value);
    

    to set the value that you have just made

      $x("MY_TEST_ITEM").value="Set to this value";
    

    Keep in mind however that you need to send the page in order so that he could be picked up by APEX - javascript is CLIENT SIDE, ONLY! Either that or use AJAX to put on the side server.

  • Using run ODI setting value

    Hi gurus,

    I need a variable that will be used to capture a value @ ODI scenario execution
    This value will be used to update a table column.
    When I run the script it must invite for the value of this variable.

    What I tried: -.
    Create a variable: v_test
    Data type: alpha-numeric
    Keep a history: last value

    Refreshing:
    Schema: Scott
    Select query: select "xyz" of the double
    -actually I don't want no matter what value of any table... I don't need this selection of double

    When I run the script->
    It prompts for the value of "v_test", showing the devault value "xyz".
    If I select OK-> it updates the Test_Table as expected.
    .... But when I type in the value at the prompt, what it does not update.


    Question: -.
    How to use a run setting value during execution of the script... Please advise.

    Hi starak,.

    Try this:

    -Remove the query from the updating tab.
    -In your package, you need a step for the variable to declare mode. You should not have a step in cooling mode.
    -For generating a scenario, mean ODI use the variable as a parameter.

    It will be useful,
    JeromeFr

  • How to get the value of the global element using javascript or ajax!

    Hello!

    How can I read at global(point application created in the shared components) using ajax or javascript?
    You can imagine that I need to get the value of this element by function as:
    -----
    Function getText() {var itemVal = $x ('MY_GLOBAL_ITEM') .value;}  Return itemVal; }
    -----
    .. .but I can't do it because it is not made to couse of the page it is global element! so, anyone know no work around to do?
    I know that I can make point page and read the value of that, but not what I really need!
    If I have 100 pages and all pages need to use my function, it would take 100 Articles :) - that's why its no good average!

    Please, share your ideas!

    THX

    Rafix,

    You must use a little AJAX to retrieve a request element value. Three steps in this solution. Implementation of a callable JavaScript function, creating an application process on the request and call the JavaScript function with dynamic action.

    1 set up a JavaScript function that can be called by:

    This function calls the process of application level which has a visibility of the element of your application and then returns the value of points.

    Edit your page and JavaScript code according to the code in the 'function and Variable global statement' of your page. You can also add to the model page, that you use, but you also have to encapsulate this code in the script tags.

    getAppItem = function(pItemName){
        var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=GET_APP_ITEM',$v('pStepId'));
        get.addParam('x01',pItemName);
        gReturn = get.get();
        get = null;
        return gReturn;
    }
    

    2. creating an application on request process:

    The application of level process has visibility to your application-level element. It is to retrieve the value of points and it prints the htp buffer. Essentially, this acts as a way to return the values of AJAX calls (the javascript function we set previously);

    go to the shared components > procedures > Create.

    Point process: "We Demand: run this application...". »
    Name: GET_APP_ITEM
    Type: Anonymous PL/SQL block

    declare
       -- get the item name passed into the JavaScript function.
       app_item_name varchar2(30) := apex_application.g_x01;
    begin
        -- print its value to the buffer
        htp.p(v(app_item_name));
    end;
    

    3. call the JavaScript function with dynamic action:

    The function call allows to specify an application-level element name and have its returned value. The trigger event is specific to what you need, but the action must be of type to run JavaScript code. In my case immediately the value of P1_NUMBER to my value of demand points. This code doesn't have to be in a dynamic action, but it helps to stay organized. you could call it from any script tag.

    $s('P1_NUMBER',getAppItem('MY_APP_ITEM'));
    

    See you soon,.
    Janet Tyson

  • How to url using NOT IN (NIN) IR filter for multiple values?

    Apex 5.0.1 (but should work for Apex 4.2)

    I want to set a url with an IR filter using the filter NOT IN. For example, to get a filter that says: status not in (3,4)

    To do this, we can use the url IRNIN_STATUS parameter.

    This method works. Problem is how can I set multiple values in the url?

    IRNIN_STATUS:3, 4 will give a filter 'status not in (3) '

    4 is interpreted as the following for the next parameter value, even if there is no additional parameters.

    Find / remember the solution:

    We can add the backslashes to values to distinguish them from others.

    IRNIN_STATUS:\3, 4

  • How to get the values separated by commas of multiple records in table

    How to get the values separated by commas of multiple records in table

    for example

    name address age sex
    a 12 m e
    b hh 12 f
    BB c 13 h

    I need to get output as a, b, c from a query

    Use the query as below he works for me, change the names of tables and columns

    SELECT SUBSTR (SYS_CONNECT_BY_PATH (PROXY_EMAIL, ','), 2) csv FROM (SELECT PROXY_EMAIL, ROW_NUMBER () ON the rn (ORDER OF PROXY_EMAIL), COUNT (*) NTC (STARS_PROXY_ASSIGNMENT) WHERE EMPLID = #EMPLID) WHERE rn = cnt START WITH rn = 1 CONNECT BY rn = rn + 1 ADVANCE

Maybe you are looking for

  • Why the MBP 13 "126 GB retina costs 200-300 euros more in Lithuania?

    The MacBook Pro 13 inch, 126 GB SSD with retina display, regular and fresh 8 GB DDR3 ram, processor example: 999 books in the United Kingdom ~ 1 293 euros 1299 U.S. $ ~ 1168 euros In Lithuania, the reseller premium sells for 1499 euros, 206 euros mor

  • Memory faster card for Powershot SX150 IS

    Hello I was wondering what is the memory faster card that I can use in my Powershot SX150 IS?  Looking at this:Transcend 16 GB Flash memory card class 10 SDHC (TS16GSDHC10E) SDHC memory card class 10 Ultra high speed The card high speed would fit my

  • Windows Media Player does not work on Windows XP.

    I was still having problems with my windows live messenger I did a clean through my computer of viruses and and anything that may be damaged and then I let a friend 'fix' that believe him when he said he could. Windows Media Player worked well before

  • During the installation of XP bluescreen error 'Check for viruses on your computer' and 0x0000007B error code

    All of a sudden my computer will not start and I tried to reinstall/repair the operating system. When you try to install the OS, when booting from the CD and before asking questions of formatting, it displays a blue screen. sayng 'Search for viruses

  • Typical range of 5 GHz?

    Hello I have a question about the typical range for the GH 5 band. I have a router dual-band of EA3500 and a WES610N dual-band universal connector of media spaced 30 feet apart - the router is on the second floor, the media connector is on the first