JavaScript assign a APEX variable

I have the following javascript code in my page header:
<script language="JavaScript" type="text/javascript">
<!--
function insert_submit()
var x = '&P66_INSERT_FLAG.';
confirm(x);
doSubmit( );
//-->
</script>
Can anyone tell me how to assign a value to :P66_INSERT_FLAG in this routine. If there is more than one way to do it, I would appreciate if you could list them all.
I have a very finicky PDA that will run some javascript and not others. Thanks!
Sharon

Hello,
Unfortinally there is not an 'exact' answer for you as different PDA's/phones have different inital setups and features.
The important thing is what versions of Internet Explorer is running. The mobile versions of Internet Explorer have stripped down versions or some have no javascript functionality at all and some mobile devices turn it off by default.
OS 4.20.0.3.What's this?
Your going to go through each js command on each PDA and see exactly what works and what doesn't on each one, it sounds like javascript might be shut off on one of them, and sometimes you can turn it on. I seem to remember on some versions of mobile IE document.getElementByID() doesn't work and you need to form item notation.
Are you setting just the flag value or do you need to do a full page submit?
If you just need to set the flag value you can use a link that sets the value.
Or make the flag value into checkbox.
Your original code doesn't really do anything other than a submit, can you post the entire code.
function insert_submit()
     var x = '&P66_INSERT_FLAG.';
     confirm(x);
     doSubmit( );
}Finally an working mockup on http://apex.oracle.com would make it much easier to help you out.
Regards,
Carl
blog : http://carlback.blogspot.com/
apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5

Similar Messages

  • How to assign a JSP variabl's value to a JavaScript variable?

    Hello,
    I want to assign a JSP variable's value to JAVASCRIPT variable.
    or how to assign JavaScript variable's value to JSP varialbe
    HOw do i do it ?
    can anyone please help?
    Regards and thanks for your time.
    Ashvini

    I want to assign a JSP variable's value to
    JAVASCRIPT variable.
    var jsVariable = <%=someVariable%>;
    or how to assign JavaScript variable's value to JSP
    varialbeYou can't. JSP is server-side and JavaScript is client-side. The JSP variables are never available on the client side for any sort of assignment.

  • Display As Text (based on LOV, saves state)  "p_t03" was assigned by APEX

    Hi All,
    I have an ITEM
    Name: P36_INT
    Display As: Display As Text (based on LOV, saves state)
    Output in my HTML:
    [input type="hidden" name="p_t03" value="YES" />[span id="P36_INT">Interior[/span>
      'p_t03' was assigned by APEX
      In my Javascript I have to access it as the following to get the "YES" value:
      var lintObj = html_GetElement('p_t03');
      Originally it was 'p_t01' but it changed from 'p_t01' to 'p_t03' somehow.. out of my control.
      How do I assign an ID or assign my own name to the "hidden" item?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Scott, thanks for the feedback. The problem is that although the value is displayed correctly, it is NOT saved to the database. Effectively, header information is entered in a previous screen, and one of the entered fields is written to each of the detail lines associated with the header. We are re-platforming an existing application (written in an obscure form of basic), and at this stage changing the schema is not an option. So this header item (which is a foreign key to a "store" table), is meant to be written down to each line, on the screen displayed as the store name, and written to the inserted lines as the lookup id. If I use the dispaly as text save state option teh database is updated correctly, but displays the id rather than name on the screen. The only display as lov option i can see is the one that does not save state. If I use this option the screen displays as I want but the database is not updated. I need to use the display as lov saves state option. but i do not see it.
    Any ideas?
    Thanks for your time.
    Rob

  • Assigning Value to Variable in Sapscript

    Hi,
    To initialized value of the variable when I tried to assign 0 to variable (like in the following statement) it comes up with error 'Command Expected'.
    &RF140-ZALBT&= '0'.
    Please let me know where and what I am doing wrong in assigning value to a variable?
    Regards,
    Shabbar

    Hi,
    Still its not working. The statement I am writing is
    /: &NET& = &RF140-WRSHB& - &RF140-MSATZ&
    but the system gives error on that.
    NET is the local variable declared with Define statement and both the others are defined in print program.
    Even I tried
    /: &RF140-ZALBT& = &RF140-WRSHB& - &RF140-MSATZ&
    but still the same error.
    Any comments?
    Regards,
    Shabbar

  • How to assign a Substitution variable dynamically?

    Hi All,
    I was trying to assign a substitution variable which should get data from the time period and should directly load into the substitution variable automatically.
    The process should be automated. so as to refrsh the substitution variable daily.
    Any comments are highly appreciated
    With Regrads
    Prads

    Sorry for the double-post, I didn't quite get that you wanted to read the Time Period dimension.
    Is that what you are trying to do? Get a list of the periods (usually these are pretty well known) and then find the latest one for a given member combination that has data and then set a substitution variable off of that?
    You can run reports (or DATAEXPORT calc command) to get data from MaxL.
    Or are you trying to do something else?
    Regards,
    Cameron Lackpour

  • Conversion of timestamp to_char in Apex variable & unable to use in PL/SQL

    Hi,
    I am passing a timestamp from Apex as a varaiable to a PL/SQL trigger.
    1) to_char in Apex, to_date in PL/SQL- Works
    Apex : to_char(systimestamp, ,'YYYY-MM-DD HH24:MI:SS')
    PL/SQL : to_date(systimestamp, ,'YYYY-MM-DD HH24:MI:SS')
    However I would like to get the fractions of the seconds.
    2) to_char in Apex variable, to_timestamp in PL/SQL - Does not Work
    Apex : to_char(systimestamp, ,'YYYY-MM-DD HH24:MI:SS.FF')
    PL/SQL : to_timestamp(systimestamp, ,'YYYY-MM-DD HH24:MI:SS.FF')
    Thanks.

    You have two commas between your value and timestamp mask.

  • Passing JavaScript values to JSP variables

    Can any body correct the follwing code
    <Script language="JavaScript">
    function test( x )
    <%
    int num = x;
    num = num * 2;
    %>
    v.value = "<%out.print(num);%>";
    <input type="button" name="b" value="test" onClick="test(5)">
    <input type="text" name="v" value="0">
    In short, I am trying to pass JavaScript value to JSP variable. I hope that it is possible to do that. If it is possible then how can I do it. I want to assing the variable x passed to the JavaScript function called test to the JSP variable called num.
    Regards,
    Ageel

    Thank you for your reply,,,
    I think then the only way to do it is to post the
    value on the server and then use request.getParameter
    method in jsp code
    but the question now how can I post values to the
    server using JavaScript without reloading the pageyes... you can to it by create a new popup window which will submit the value to server after page was loaded... then, server return a value to the same window in html/jsp page which then using javascript to set it back to the opener and close up the window... however, this is not a good choice unless you have no other alternative...
    >
    There is other possible solution
    if I can get the text field value from the same page
    without reloading it that would work fine and will
    solve my problem, is it possible?yes... you can get the value from the textfield...
    for example :
    function showValueInTextField()
        alert(document.forms[0].elements["mytextfieldname"].value);
    >
    My final question> can jsp change things on the same
    page without reloading it. I mean can it work like
    JavaScript so that I can use it's internal functions
    instead of using java script :S
    not really know what you trying to say here...

  • Getting returned XMLSERIALIZE information into an APEX variable...

    ((Application Express 4.1.1.00.23 11g)
    So i have the following code:
    with test_table as(
    SELECT VM_REPORT_DATE,quantity,item from VM_CORE unpivot (
    quantity fOR ITEM in (VM_HOSTS_NUM,VM_NUMBER,VM_PHYS_MEM,VM_VIRT_MEM,VM_CPU_COUNT,VM_TOTAL_DISK,VM_PROVISIONED_DISK)
    ) where VM_DCNAME='bc_production')
    SELECT XMLSERIALIZE(CONTENT XMLELEMENT("SERIES",xmlAttributes(item as "name"),
      XMLAGG(XMLElement("point",xmlAttributes(VM_REPORT_DATE as "name",quantity as "y")))
    )) as THEDATA from test_table group by item;
    Which successfully returns:
    THEDATA
    <SERIES name="VM_CPU_COUNT"><point name="2013-10-29" y="1312"></point><point name="2013-10-23" y="1308"></point></SERIES>
    <SERIES name="VM_HOSTS_NUM"><point name="2013-10-29" y="20"></point><point name="2013-10-23" y="22"></point></SERIES>
    <SERIES name="VM_NUMBER"><point name="2013-10-29" y="617"></point><point name="2013-10-23" y="616"></point></SERIES>
    <SERIES name="VM_PHYS_MEM"><point name="2013-10-29" y="4727.59"></point><point name="2013-10-23" y="5175.54"></point></SERIES>
    <SERIES name="VM_PROVISIONED_DISK"><point name="2013-10-29" y="76307.65"></point><point name="2013-10-23" y="75848.3"></point></SERIES>
    <SERIES name="VM_TOTAL_DISK"><point name="2013-10-29" y="95955"></point><point name="2013-10-23" y="93793.75"></point></SERIES>
    <SERIES name="VM_VIRT_MEM"><point name="2013-10-29" y="3751.98"></point><point name="2013-10-23" y="3739.98"></point></SERIES>
    This is going to be the heart of needing to set an APEX variable to the above data with <DATA></DATA> tags added around it.
    What I'm unsure how to do is return the above with a PLSQL variable of chart_series_data.
    chart_series_data := '<data>'||chr(10);
    chart_series_data := chart_series_data ||  "WHAT I RETURNED ABOVE";
    chart_series_data := chart_series_data||chr(10)||'</data>';
    Thanks
    Rob

    Why not just doing it all in the query ?
    with test_table as(
      select vm_report_date, quantity,item
      from vm_core
      unpivot (
        quantity for item in (vm_hosts_num, vm_number, vm_phys_mem, vm_virt_mem, vm_cpu_count, vm_total_disk, vm_provisioned_disk)
      ) where vm_dcname = 'bc_production'
    select xmlserialize(document
             xmlelement("DATA"
             , xmlagg(
                 xmlelement("SERIES"
                 , xmlattributes(item as "name")
                 , xmlagg(
                     xmlelement("point"
                     , xmlattributes(
                         vm_report_date as "name"
                       , quantity as "y"
           ) as XMLDATA
    from test_table
    group by item ;

  • I need in Formula Node to assign to the variable value 4000000000!!! What kind of variable it should be???

    i've just tryed to write unsigned in32, but it does not understand 'unsogned'... But i need variable to be unsigned, because the max value = 4000000000... So, how can i solve this probleme???

    Hi,
    I don't see exactly what you're trying to do here.
    Where do you want to assign the variable 4000000000 to? If you want it as an
    input, just use a dbl, with only zeros behind the coma.
    Note that an integer is a number without any decimals. An integer in LabVIEW
    is this, but with an extra limitation that it can only be 32 bits... So a
    dbl can be an integer.
    If the input dbl is not an integer, use round, round to -inf or round to
    +inf to make it one. This can also be done if the output needs to be an
    integer.Inside the formula node floor(x), int(x), intrz(x) or ceil(x) can be
    used to make integers.
    I hope this is what you mean... I can't see any problems doing this.
    Regards,
    Wiebe.
    "DrON" wrote in message
    news:506500000008000000E
    [email protected]..
    > I need in Formula Node to assign to the variable value 4000000000!!!
    > What kind of variable it should be???
    >
    > i've just tryed to write unsigned in32, but it does not understand
    > 'unsogned'... But i need variable to be unsigned, because the max
    > value = 4000000000... So, how can i solve this probleme???

  • &P_Year - is it an APEX variable?

    Hello Folks
    I am working on a query generated by a person who no longer works with us.
    In this query, he was consistently using a variable '&P_Year'. Each time I try to compile the code, I get an error ORA01008 - A SQL statement containing substitution variables was executed without all variables bound. All substitution variables must have a substituted value before the SQL statement is executed.
    My question is
    a. Is it a APEX variable? If yes, then what is this variable - what does it return
    b. Since this code was written for Oracle Reports, is this variable just referencing an item in a form built in Oracle Reports?
    Thank you for your time.

    <p>Maranello,</p>
    <p>P_YEAR is a substitution variable and has no special meaning in APEX like APP_USER or APP_ID. A snippet from the APEX help: You can use substitution strings within a page template or region source to replace a character string with another value.</p>
    <p>My guess is that P_YEAR is used as a parameter in your report. In order to solve your issue create a item with name P_YEAR or replace P_YEAR with another item name.</p>
    <p>With kind regards,</p>
    <p>Jornica</p>

  • [SOLVED]assigning "special" shell [variable] to awk, got problem

    $ VAR='AB' ; echo "$VAR" | awk -v foo="$VAR" '{gsub(foo,"Z");print}' # [1]
    Z
    $ VAR='[AB]' ; echo "$VAR" | awk -v foo="$VAR" '{gsub(foo,"Z");print}' # [2]
    [ZZ]
    $ VAR='[AB' ; echo "$VAR" | awk -v foo="$VAR" '{gsub(foo,"Z");print}' # [3]
    awk: (FILENAME=- FNR=1) fatal: Unmatched [ or [^: /[AB/
    $ VAR='AB]' ; echo "$VAR" | awk -v foo="$VAR" '{gsub(foo,"Z");print}' # [4]
    Z
    Just read about this:
    Regular Expression Operators @ The GAWK Manual wrote:
        This is called a character set. It matches any one of the characters that are enclosed in the square brackets. For example:
        [MVX]
        matches any of the characters `M', `V', or `X' in a string.
    And I tried,
    $ echo "[AB]" | awk '{gsub(/\[AB\]/,"Z");print}' #[5]
    Z
    $ echo "[AB]" | awk '{gsub(/[AB]/,"Z");print}' #[6]
    [ZZ]
    [2] is behaving like [6] when I actually want it to be acting like [5].
    What syntax should I use?
    Last edited by lolilolicon (2009-08-16 10:58:28)

    fumbles, I'm sorry I didn't explain myself clearly.
    $ VAR='[AB]' ; echo "$VAR" | awk -v foo="$VAR" '{gsub(foo,"Z");print}'
    outputs:
    [ZZ] --> awk replaces each of A and B with Z, and left '[]' intact.
    What I want is:
    Z --> awk treats '[AB]' as a whole normal input, just like 'ABCD' or whatever...
    Just like what I said, "[2] is behaving like [6] when I actually want it to be acting like [5]."
    I need to do this because I'm writing a script where shell variable is assigned to awk variable, which contains '[]'. Like you said, awk is treating it as part of a regular expression...
    EDIT:
    Ok, an ugly solution::
    $ VAR='[AB]'
    $ VAR=$(echo "$VAR" | sed 's/\[/\\\\\[/;s/\]/\\\\\]/') #now VAR='\\[AB\\]'
    $ echo "[AB]" | awk -v foo="$VAR" '{gsub(foo,"Z");print}'
    Z
    This almost sovles the problem I encountered in the script.
    But there should be a better answer!
    Say, is there a way to turn off awk's regular expression? --> Just found out grep's -F option. How about awk??
    Last edited by lolilolicon (2009-08-16 08:42:36)

  • Assigning Javascript value to ABAP variables

    Hi Experts,
    I have written the HTML code mixed with Javascripts to create a table in the 'View' of a BSP Component.
    I was able to set the value of assign the value of ABAP parameters into HTML fields.
    This table has some input fields. I need to fetch the value of input parameters which has been entered by screen on an event which is present in Overview Page.
    I can calulate the value mentioned in input field but i am not able to assign the same value to ABAP parameter for further processing.
    I have already referred the following link but it did not work.
    Assign Javascript variable to Abap variable
    Please help me how i should i acheive it.
    Thanks In Advance,
    Rajeev Singh

    Hi,
    I am not understanding your problem and what you want due to description, but it seems to be very similar to a post which I answered very recently [here|How to return values from a BSP page to Javascript;.

  • Assigning return value of a javascript function to a variable

    hi.
    I have a javascript function which returns string.
    I wanna assing return value of that function to variable.
    for example:
    <script>
    funtion writeMe()
    var ex;
    ex="try"
    return ex;
    </script>
    Then in body of JSP page. I wanna do something like:
    <% String st;%>
    Now I wanna assign the value that returned from writeMe function ("try") to st string.like:
    <%st= writeMe();%>. but of course it doesn't work. how can I do that?

    thnx. but actually what I want to do is sending some values produced by javascript to a barchart object. is it impossible too?
    I mean my script function returns something like "100, 200, 300". I wanna pass that values to barchart. when I want to add aplet tag to jsp code instead of writing:
    <param name="s1_value" value="100,200,300">
    I want to write somethin like:
    <param name="s1_value" value="myscriptfunction()">
    is it possible in JSP? I saw an example like this in asp. it was like:
    <param name="sampleLabels" value="<%call func1()>">. but in JSP it seems like call tag doesn't work. Is it possible in JSP?

  • Passing an APEX variable to another web page outside of APEX

    I need to pass an item variable from an APEX page to another web site outside of APEX. Does anyone know what syntax I would need to use? It needs to keep the session in tact.
    Thanks.
    Kelly

    Ah, as I read more closely ...   You say
    FIND_USER_IN_DB is defined as an application item.
    Application items get treated differently from Page Items.  They aren't on any page so there's nothing to directly tie them to a particular page operation. [You may have tried an obvious approach that doesn't work.]  Please check where you
    sets FIND_USER_IN_DB to the value in &P8_USERNAME.
    Does it say "Page Item" / "Item" there?   Check the selector?  Can you select an Application Item.  If memory serves, my (sad) experience is that you can list an Application Item here but it doesn't "work" and there's no warning that it's a problem -- except it doesn't work!  Application Items can't be given values this way.  Hey, it is what it is.  That's the way it doesn't work!
    So I believe you must "Submit" FIND_USER_IN_DB and then you can reference it on Page 11.  There must be several ways to do this.  I'll seaarch / ponder for a plain vanilla one.
    Howard
    (more)
    Well, maybe I have to take it back.   There is this documentation that suggests you can pass Application Items. http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/bldapp_item_app.htm#BCEHFDDJ   See Note in Paragraph 8.
    "Note: If you must set this item's value in session state using Ajax, then an Unrestricted protection level must be used for the item (for example in Dynamic Actions, Set Value, Page Items to Submit or Cascading LOVs, Page Items to Submit)."
    I'll try to run a test.  Still, the best solution for me still seems to assign the value of P8_USERNAME to FIND_USER_IN_DB and then submit the page which will plce the value in session.
    (more)  I was able to pass an Application Item if I set Session State Protection to Unrestricted.  Probably not a good idea!

  • Change from SelectList to Popup LOV, Onchange Javascript breaks. Apex 3.2.1

    Hi,
    I have a pretty standard piece of Javascript that populates two page items based upon the result of a select list.
    I'd like to change the select list to a Pop-Up LOV, but this breaks the functionality.
    I presume that I need to use a different var get function, however, have had no luck in trialing different solutions.
    Can anyone help?
    Details Below.
    Regards-
    Ronald.
    Function Overview:
    Select List P4_PRODUCT_ID selects two product parameters: area and item, and puts them into P4_AREA_ID and P4_ITEM_ID.
    P4_AREA_ID and P4_ITEM_ID are pop up LOV's and happily accept the text input.
    I wish to change P4_PRODUCT_ID to also be a pop up LOV, but when doing so, it breaks the dynamic functionality.
    CODE:
    Select List: P4_PRODUCT_ID
    HTML Form Element Attributes: onchange="pull_multi_value(this.value)";P4 Page Header:
    You'll see that I've tried several methods, none worked. Am I using the wrong one?
    <script type="text/javascript">
    <!--
    function pull_multi_value(pValue){
    //     var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=Set_Multi_Items',0);
           var get = new htmldb_Get(null,html_SelectValue('pFlowId'),'APPLICATION_PROCESS=Set_Multi_Items',0);
    //     var get = new htmldb_Get(null,html_GetElement('pFlowId').innerHTML,'APPLICATION_PROCESS=Set_Multi_Items',0);
    //     var get = new htmldb_Get(null,html_GetElement('pFlowId').innerHTML=$v(pFlowId),'APPLICATION_PROCESS=Set_Multi_Items',0);       
    if(pValue){
    get.add('PRODUCT_ID',pValue)
    }else{
    get.add('PRODUCT_ID','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");
    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> Application Process: Set_Multi_ItemsDECLARE
    v_area VARCHAR2 (200);
    v_item VARCHAR2 (200);
    CURSOR cur_c
    IS
    SELECT AREA_ID, ITEM_ID
    FROM PRODUCTS
    WHERE PRODUCT_ID = TO_NUMBER (v ('PRODUCT_ID'));
    BEGIN
    FOR c IN cur_c
    LOOP
    v_area := c.AREA_ID;
    v_item := c.ITEM_ID;
    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="P4_AREA_ID">' || v_area || '</item>');
    HTP.prn ('<item id="P4_ITEM_ID">' || v_item || '</item>');
    HTP.prn ('</body>');
    EXCEPTION
    WHEN OTHERS
    THEN
    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="P4_AREA_ID">' || SQLERRM || '</item>');
    HTP.prn ('</body>');
    END;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Looking at all that code, I can suggest one way of debugging the issue(Its a bit hard to guess what went in this case,particularly when the problem could be at so many places).
    1. Run your PLSQL as an anonymous block and check if the generated XML structure is what you expect.
    2. Check Firebug Console (if you have it) if an ajax request is send when the item is changed.
    3. Print out the return XML as a string on the screen so that you can make sure it what you wanted(use alert function or append to some page element)
    4. Now try your XML parser JS section starting with the obtained XML as a static variable, trying printing out the parsed out values at different stages
    5. Setting the page items shouldn't be much of a trouble if everything else worked fine.
    Some Observations: If you are on Apex 4.0 wouldn't a Dynamic Action save you all this trouble (Two SetValue processes). Even otherwise you seem to be fetching two id's from the Ondemand process..Can't you just concatenate them with some separator and send that as the result stream(htp.p), handling them in JS would be simple using the split function. If the data is more complex you could return it as a JSON string and parse it with fewer lines of code.
    Found a problem with the code :
    get.add('PRODUCT_ID',pValue)Do you have a page item by that name(PRODUCT_ID) ? else change it to
    get.add('P4_PRODUCT_ID',pValue)and change the following in ur PLSQL process code
    PRODUCT_ID = TO_NUMBER (v ('PRODUCT_ID'));to
    PRODUCT_ID = TO_NUMBER (v ('P4_PRODUCT_ID'));But as I said earlier, Debugging it step by step might be easier.

Maybe you are looking for

  • Superdrive: plays CDs, visible in Disk Utility, not visible in Finder

    I was burning a data DVD of photos when the machine shut off.  I wasn't watching it and I didn't notice that the battery was almost dead.  It powered down and after I turned it back on Finder hasn't known how to let me view any burnt data discs.  I s

  • How to preserve size when dragging image into another image?

    When dragging a 5x4in photo into a blank 11x8.5in image, the 5x4 is shrunk more than 50 percent.  Any fix for this?

  • Intell HD 3000 on Satelite L735

    Hi guys, i need yours help. tomorrow bought Toshiba Satelite L735.(with Windows 7 installed). but i didn't find intagrated grafics card in windows list equioment. try to install drivers for integrated hd, but no results... i have only 1 GeForce. but

  • More battery charging issues.

    Like some other people around here I've been having problems with my battery on my Macbook too. Even though my power adapter shows an orange light I still get an X over the battery icon. I've tried taking out my baterry and unpluging the adapter and

  • GTK 2.0 issues? [solved]

    Well, ever since the new gtk 2.0 came out the buttons don't look how a theme should, they are always embossed. Last edited by twiistedkaos (2007-02-22 00:52:29)