Apex. Submit - the value of the claim

By using a number of different versions of Apex - on this particular server is Apex v4.0.2

The JavaScript API documentation indicates apex.submit () the definition of the QUERY variable - which I suppose is the point value of standard application used in the Apex.

I'm currently debugging presentation on the side of the browser and apex.submit () to DISPLAY the value of the request (as a variable p_request). But the value is not accepted or implemented on the side server. With the help of : REQUEST or v('REQUEST) in the regions of the page does not display the value of the validated request. It has the value null. There is no explicit condition of branch on the page.

Which do not work, is that the elements of page values assigned are submitted and seen by the back-end. For example if P1_NAME is defined in apex.submit (), this value is visible by regions/process page after submission. Unlike the value of demand.

I'm doing something wrong? Is this a problem with an older version of the Apex?

BillyVerreynne wrote:

It works very well. All elements of page Apex that are assigned values, performed with the values and the process/regions/etc on the next page has the correct values.

The value of the REQUEST is disabled before the exposure treatment page unless it is set in a branch or a URL, this is why he has no value when they are referenced in the next page.

Set the attribute to query in a branch of post-submit to the target page of &REQUEST. to demand ongoing value available in the page to see the transformation.

Tags: Database

Similar Questions

  • Set the value of the page elements using apex.submit

    Hey,.

    Does anyone have an idea how to set the value of several page elements using apex.submit?

    Here is my request, she works for this element of the page, but I want to first the value of the other elements of the page (i.e. P30_SHOW_REF) as well.

    select s.nr as NRR, 
    '<input type="button" value="clickme2" onclick="document.getElementById(''BUTTONS'').style.display = ''block'';apex.submit({request:''SET'',set:{''P30_KLT_NR'':'||s.nr||'});"/>' Button 
    from klant s
    

    Thanks in advance!

    Hi Julijan,

    Here is the example:

    apex.submit({
      request:"DELETE",
      set:{"P1_DEPTNO":10, "P1_EMPNO":5433});
    

    Concerning

    J

  • APEX submit changes to the database when the value is changed in Javascript?

    Hello

    IM new at the Apex and use v4.1.

    What I want to do, is to have a tabular presentation that will have 5 fields and a number of fields only reading based on a SQL table & reviews, when a user updates one of the 5 fields entry I want to save the change to the databases automatically.

    I thought that this could be done using Ajax and Javascript, but my knowledge is not at a high enough level to make it work.

    I think what I need to do:

    1 create an AJAX callback process (say its called "Submit Changes") - it comes to PL SQL that will update the database based on the value of the field that was changed. I think that this will require the number of line in table form to pass in.

    2. create a header HTML with Javascript code that calls the recall AJAX process - I found the below on the net, but do not think that I changed it correctly:
    < script type = "text/javascript" >
    function Submit_Value() {}
    var ajaxRequest = new htmldb_Get (null, & APP_ID., 'APPLICATION_PROCESS is Submit Changes', 0);
    var ajaxResult = ajaxRequest.get ();
    Alert (ajaxResult);
    }
    < /script >

    3. change the attributes of elements ' "on the column compared to something like onchange ="Submit_Value () ";

    So far I have not been able to get this working and would be grateful for any help or suggestion.

    Thank you

    Goes

    just a quick thought: I myself remember in 3.x days by using a process with a space name did not work (at least when I was trying to use), I have always since then named such with underscores in the... IE: submit_changes the two (the name of the process in the apex) and the reference of the code in javascript

  • Application of interactive report of apEx using the last value of the point

    My interactive report is based on a field, but the value of the field is not applied when executing the query

    SELECT *.

    MyTable FROM A

    where A.registration_year =: REGISTRATION_YEAR_ITEM

    I created an item in the page REGISTRATION_YEAR_ITEM

    When I run the query, I want the user to type in a year, and then run the query and display the corresponding results.

    The query always seems to use the default value of points instead of the current value

    How can I do use the value of the current field?

    I also tried the V method, but produce the same results

    where A.registration_year = v('REGISTRATION_YEAR_ITEM')


    The environment is ApEx 312, 10.2.0.4 database

    Unfortunately, the upgrade is not an option


    Thanks for any help you can offer

    S.Bovin wrote:

    My interactive report is based on a field, but the value of the field is not applied when executing the query

    SELECT *.

    MyTable FROM A

    where A.registration_year =: REGISTRATION_YEAR_ITEM

    I created an item in the page REGISTRATION_YEAR_ITEM

    When I run the query, I want the user to type in a year, and then run the query and display the corresponding results.

    The query always seems to use the default value of points instead of the current value

    How can I do use the value of the current field?

    Add the REGISTRATION_YEAR_ITEM to the IR Page elements to submit property. He will submit the current value in session state.

    Why bother with the page element at all? Why users can't create just an IR filter?

    I also tried the V method, but produce the same results

    where A.registration_year = v('REGISTRATION_YEAR_ITEM')

    For performance reasons, use bind variable notation when you reference values from session state in SQL queries.

    The environment is ApEx 312, 10.2.0.4 database

    Unfortunately, the upgrade is not an option

    Why not? That it will provide you with a safe and supported environment and your users with a much better life.

  • It is possible to change the apex.submit () method?

    Hello everyone,

    It seems that the apex.submit () method always executes a HTTP-POST method. Something like this:


    POST /pls/htmldb_devdb11/wwv_flow.accept HTTP/1.1
    Content-Length: 180
    p_flow_id = 136 & p_flow_step_id = 17 & p_instance = 962043850817501 & p_page_submission_id = 1613388309541601 & p_request = T_ORDERS & p_md5_checksum = & p_page_checksum = 82507D5724D222E8E9BCB19A79C6D62F

    I wish I could change this to a GET, it's something like this:

    GET /pls/htmldb_devdb11/wwv_flow.accept?p_flow_id=136 & p_flow_step_id = 17 & p_instance = 962043850817501 & p_page_submission_id = 1613388309541601 & p_request = T_ORDERS & p_md5_checksum =, & p_page_checksum = 82507D5724D222E8E9BCB19A79C6D62F HTTP/1.1


    Thanks in advance,

    Luis

    Hello Luis,.

    There is a solution that you could use. Edit each template of your website and add the following JavaScript just before the end body tag:

    You can't influence (as I know) how APEX produces chains of substitution #FORM_OPEN # and #FORM_CLOSE #.

    Greetings...

  • Sending page apex to the application process (JSON) values

    Hi all

    A page 5 apex has a value in a hidden item, P5_CLASS
    In the apex 5 page, I wrote a JavaScript to call for a process of application (PL/SQL) to retrieve the values of a table on Page 5.
    var ajaxRequest = new htmldb_Get (null, & APP_ID., 'APPLICATION_PROCESS is Get_Class_Data', 0);
    and I use the JSON object to display the rows in the table.
    -----------
    Problem
    -----------
    It works pretty well. But I need to send the value of the hidden element P5_CLASS to Get_Class_Data so that I can ask P5_CLASS-basedapplication process.

    Help, please.

    Shiva says:
    Thank you Paul,.

    So I can use

    var ajaxRequest = new htmldb_Get (null, & APP_ID, 'APPLICATION_PROCESS = GET_CLASS_DATA', 0);
    ajaxRequest.add ('F15_GLOBALVAR', $v ("#P5_CLASS")) to send the value to the application process?

    (F15_GLOBALVAR is an application-level element, I created in the shared components)

    And to use this application in my sql in GET_CLASS_DATA, I can use sql... where class =: F15_GLOBALVAR?

    Yes.

    (Please zip code wrapped in \

    ...\
    

    Tags to preserve the special characters and formatting.)

  • Submit the page without the help of a button

    Hello

    I use APEX 5.0.

    I have a regon that contains several elements, and one of them is defined as a selection list: P10_NAME.

    When I have a button that when pressed triggers a code Page PL/SQL process recovering above entered data and treats it in the same page, in a different region.

    I want to start sending without going through a button, but when the value of the P10_NAME field.

    In the process of the above page, I tried by changing:

    Conditions-> when clicks the button: no Condition of button

    Conditions-> Condition Type: SQL Expression

    Conditions-> Expression1: ASK = "P10_NAME."

    But it does not work.

    It seems that the variable REQUEST contains only the button names. Is this correct?

    How can I achieve this?

    Kind regards

    Hi Patrick,

    Laury wrote:

    I use APEX 5.0.

    I have a regon that contains several elements, and one of them is defined as a selection list: P10_NAME.

    When I have a button that when pressed triggers a code Page PL/SQL process recovering above entered data and treats it in the same page, in a different region.

    I want to start sending without going through a button, but when the value of the P10_NAME field.

    Change your selection P10_NAME list. The settings-> Page Action on selection-> to submit the Page.

    The following parameters of the Condition won't work for your PL/SQL Page process:

    In the process of the above page, I tried by changing:

    Conditions-> when the button Presses: no Condition of button

    Conditions-> Condition Type: SQL Expression

    Conditions-> Expression1: ASK = "P10_NAME."

    Instead of "SQL Expression", you use "PL/SQL Expression. More would be better 'Request = Expression1' to the 'Type of Condition' and P10_NAME like 'Expression1 '.

    Kind regards

    Kiran

  • Submit the form - not a page

    Hi all

    How can I submit the form below (external APEX) without submitting the page.

    The Action in this form has method POST RESTful. Its PL/SQL Source is:

    Insert into emp (empno, ename)

    values

    (DEMO_USERS_SEQ.nextval,: ENAME)

    for example using this API:

    http://S22.postimg.org/79wp8rbv5/capture.PNG

    ----------------------------------------------------------------

    So I have this static page. I need to submit the form to Oracle DB without the page gets submitted. Any idea about it?

    < html >

    < head >

    < / head >

    < body >

    < form action = " " https://Apex.Oracle.com/pls/Apex/somefeto/HR/EMP/ "method ="POST"> "

    Used: < input type = "text" name = "ENAME" >

    < input class = "button" type = "submit" value = "Submit" / >

    < / make >

    < / body >

    < / html >

    
    
    
    
    
    
    
    
    
        
    Employee: SUBMIT
  • Submit the page (to force a refresh of the form) without performing any validation

    Hello

    APEX 4.2.3

    I am trying to refresh a form from a DA without performing validations.

    The form must be updated via a shipment (I think it's the only easy way to refresh a form) and return to the same page with the same record.

    Because the quote is initiated from a DA there is no option on the screen to disable the validations. Also if I do the same with apex.submit JS, there no option in the API to disable validation.

    Now, I get the problem with the date fields that are defined to have a minimum date value of + 0d (which you only enter dates in the future and also runs a validation if the form is sent with activated validations).

    Any ideas on how to present a DA without running validations (property of the page item) or refresh a form without submitting it?

    Concerning

    Bottom

    No idea why I have not the redirection of PL/SQL to work. I have tried almost anything but always ended up with parsererrors from the browser.

    Make (or almost) the same js while traveling:

    Redirect('f?p=&APP_ID.:11:&APP_SESSION.::no:::');

  • Apex - with the external database audit trail

    I'm currently installing a primitive audit trail that allows me to record data, create users, update, update user. I currently have 3/4 but I can not get the user name in the database like V ('APP_USER') is at the top and the database in Oracle 10 G elsewhere.

    Suggestions or alternative ideas?

    f1f7a787-7f56-4451-8300-5a9a0215226b

    If v() and apex_application.g_user are not available in the trigger on the external database code.

    But the external database package variables and procedures are available on the database running APEX.

    What I would do, is to create a package with a package variable that will contain the user of the apex. (in the external database)

    Then, in the application definition > session database > initialization code PL/SQL defined this package to the apex user variable.

    Clear the package again variable in the cleanup code.

    Using a package variable means that the value is aviable at the session of entire database but not outside the East.

    Apex every page load or submit and load next page is a database session.

    Now the package variable will be set when a user of the apex and the null value when there is a database user.

    Using an nvl around the package with user variable as an alternative, will give you the user apex when the action was made by a user of the apex and the database user is not.

    Nicolette

    PS change your handle or at the signing of all least your post will result in a more friendly welcome message.

  • custom JavaScripts at the APEX of the upgrade from 3 to 4

    Hello

    I'm referencing external javascripts in my APEX 3.2 applications. Now, I plan to upgrade the engine of 3.2-to-4.0.2.00.07 APEX. I want to confirm the following:

    1. I use the following lot. He will work at the APEX 4? It is appropriate to use html_GetElement('pFlowId').value to APEX 4?
    get < pre > var = new htmldb_Get (null, html_GetElement('pFlowId').value, 'APPLICATION_PROCESS is?', 0); < / pre >

    Can I create JavaScript code following in Page 0 to make it work at the APEX 4?

    < pre >
    function doSubmit (pWhat) {}
    Apex. Submit (pWhat);
    }
    < / pre >

    2. I use "doSubmit('???');" a lot. Should I change it to "apex.submit('???');" after that I upgraded APEX 3 to 4?

    3. when I call JavaScripts to report or select list, I always use the javascript: Pseudo-protocole. For example, it can be like onchange = "javascript:doWhat();" ». Is javascript code: necessary for the APEX 4 Pseudo-protocole?

    Thank you.
    Andy

    1. I use the following lot. He will work at the APEX 4?

    Yes. He included in the library of apex_legacy_4.0.js for compatibility with.

    It is appropriate to use html_GetElement('pFlowId').value to APEX 4?

    N ° it has been replaced by the $x and $v methods and the inclusion of jQuery.

    >
    Can I create JavaScript code following in Page 0 to make it work at the APEX 4?

    function doSubmit (pWhat) {}
    Apex. Submit (pWhat);
    }

    2. I use "doSubmit('???');" a lot. Should I change it to "apex.submit('???');" after that I upgraded APEX 3 to 4?
    >

    doSubmit is included in the library of apex_legacy_4.0.js for compatibility.

    Existing applications should continue to run without modification.

    3. when I call JavaScripts to report or select list, I always use the javascript: Pseudo-protocole. For example, it can be like onchange = "javascript:doWhat();" ». Is javascript code: necessary for the APEX 4 Pseudo-protocole?

    It has NEVER been necessary in the attributes of the event. That's all just wrong.

    See also + {message identifier: = 9326152} +.

  • submit the form when you click the shortcut button

    At the minute I have 2 buttons on the popup each sends the form and assigns a different value for a particular column. How can I get the original window with the form to submit (the record was created) and when one of these buttons are engaged on the popup. This popup would also end the click of a button...

    Thanks in advance

    Stefan

    Stefan,

    Take a look at this example:

    http://Apex.Oracle.com/pls/OTN/f?p=31517:50

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Not able to submit the form of hcsf

    Here is the code:

    < html >
    < head >
    <!-meta NAME = "idctype" CONTENT = "form; version = 1.0 "->"
    <!-$idcbegindata->
    < idcformrules / >
    < formTitle > < / formTitle >
    < formData > < / formData >
    <!-$idcenddata->
    < / head >
    < body >
    < name of the form = method "SimpleForm" = "POST" action = "<!-$HttpCgiPath - >" >
    < input type = "hidden" name = "idcToken" value = "< $idcToken$ >" / >
    < input type = hidden name = "IdcService" value = "SUBMIT_HTML_FORM" >
    < input type = hidden name = "made" value = "<!-$SourceID - >" >
    < input type = hidden name = "isFormFinished" value = "1" >
    < input type = hidden name = "FormDocTitleScript".
    value = "& lt; $UserName & amp; "" & amp; formTitle$ & gt; ">
    < table >
    < b >
    < td > title: < table >
    < td > < input name = "formTitle" size = "50" > < table >
    < /tr >
    < b >
    Data < td >: < table >
    < td > < textarea name = "formData" lines = '8 '.
    cols = "40" > < / textarea > < table >
    < /tr >
    < b >
    < td colspan = 2 align = center >
    < input type = submit name = Submit value = "Submit" >
    < input type is reset = Reset value name is "Reset" >
    < table >
    < /tr >
    < /table >
    < / make >
    < / body >
    < / html >

    The form is displayed and after filling data and click on submit... is to show: impossible to submit the HTML form. The authorization token is not valid. It has expired or is not appropriate for the current request.
    You may need to reload a page early in order to move forward.



    Please guide...
    Thank you
    Chely

    Published by: 949755 on July 30, 2012 04:48

    This is a new issue, unrelated to the token.

    You must provide a value of dDocName in your form submission, or enable "IsAutoNumber = true" in the General configuration of the content server.

  • Does anyone know where / why APEX uses the CLIENT_IDENTIFIER internally?

    I am trying to share a global CONTEXT, but I can't get this through sys_context (...), if I change the CLIENT_IDENTIFIER or clear it with: dbms_session.clear_identifier () in the APEX;

    The CLIENT_IDENTIFIER is defined by the APEX for each cycle DISPLAY-SUBMIT to "< APEX_USER >: < SESSION_ID >.

    I can't change, but I guess that there is a purpose behind it. Nobody knows, and doing a risk during erasing it in my code? ... of the problems elsewhere

    Thank you very much
    -Thomas

    Hello

    Apex sets the CLIENT_INDENTIFIER so that it does not exist in the dynamic view V$ SESSION and you know what Apex user/session, the database session is processing. Apex also defines the ACTION and the MODULE so that you know who asked the apex and the page treats the database session.

    Rod West

  • Submit the form with the return key?

    I have a www.bsatshirts.com login page form which does not allow you to connect without clicking on the "connect" button.  The question I have is; is there a way to define the return key to submit the form and hit the "connect" button? I look forward to a solution or help that can be offered.  Thank you.  the code is as follows:

    Sign in to your account below
    or < br / >
    " < a href =" http://www.bsatshirts.com/store/PC/form.html "> create a new account." < /a > < br / >
    Username
    < input type = "text" name = "LoginEmail" size = "12" / >
    Password </span >
    < input type = "password" name = "LoginPassword" size = "12" / >
    < input name = "PassWordExists" type = "hidden" value = "YES" / >
    < a href = "JavaScript:document.login.submit();" "" > < img src = "images/login.gif" alt ="" border = '0' / > < / a >
    < input type = "hidden" name = "SubmitCO.y" value = "1" / > "
    < / h5 >
    < / make >

    your form uses javascript to do the click of an image to send the form. Use the send entry type for the return key to send the form:

Maybe you are looking for

  • Satellite L20-100 Touch Pad scroll does not work for Mozilla Firefox

    Hello Mine is a laptop Satellite L20-100. My touch pad scroll (the page scrolls automatically when you slide your finger upwards & downwards on the right edge of the touch pad) does not work for the Mozilla Firefox browser. It works fine with other a

  • HP pavilion g6-1360ex: hp pavilion BCM20702AO g6-1360ex device driver

    HP pavilion 1360ex g6 driver device BCM20702AO & SM Bus controller drivers can someone please Machine = HP Pavilion G6-1360ex OS = Windows 7 Ultimate 64 bit Product number: [personal information deleted] The device name = BCM20702A0 Hardware ID: USB\

  • Find the activation code / registration online information previously saved for software.

    I need to reinstall Windows XP, but the disks are stored in another country.  After installation, the product fits with Microsoft.  Anyone know how to find the registration information?  I hope that there is an option similar to Symantec and others w

  • HP Pavilion dv9913cl

    Okay, so I know that this computer is somewhat old, but I upgraded my HP Pavilion dv9913cl Windows Vista to Windows 7 without creating a recovery CD, and now when I try to boot the partition of recovery using f11, it just does not go to the recovery,

  • Alienware 17 fan question

    Hello! I bought an Alienware 17 and had yesterday. I am extremely satisfied! I love this system! Although one must get used to the new user of Windows 8 interface, I really like my time using the Alienware. However, I have a question about fans... Wh