How to update session state from form field values without submitting page?

Hi,
I am new to Oracle APEX. I am using Oracle Apex 4.2 on Oracle 11g release 2. The problem is that when I am entering data on a form, when I enter a value in one field and move to the next field, how can I use the value of first field in the validation procedure of next field? I know that when we enter data in fields, the session state is not updated with these values until we submit the page... right... but I have seen that if there is a control of List box type, then Apex gives an option "Action When List changes" where we can choose option to update corresponding session state field with the value of list box item, without submitting the page.
Now my questions is why this option is only available for List box items? why not for other item types like Text box, Check box,... ? can someone please help me with this?
(the issue with update of session state depending on page submitting, is that we need a complete network round trip from client to server in order for it. However if we can update session state variables without submitting page, then we can avoid this network traffic).
Any help will be greatly appreciated. Thanks in advance.

Create a dynamic action on change and run a PL/SQL process there with the following code:
BEGIN
   NULL;
END;Page items to submit > your item.
This will set the session state without submitting the form.
Further examples here:
http://apex.oracle.com/pls/apex/f?p=31517:229
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.apress.com/9781430235125
http://apex.oracle.com/pls/apex/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
-------------------------------------------------------------------

Similar Messages

  • Items session State from form to another ...

    Hi Guys,
    I have been trying to pass items session state from one page to another page that is opened on Sikllbuilder Modal Page, but to no avail.
    I have been trying to pass items session state from one page to another page using branch , but to no avail.
    Can you please have a look...
    workapce: fam
    user: test
    pwd: test
    Application 64941 - Modal Page
    On the setting of Skillbuilders Dynamic action, I used this Static URL:
    f?p=&APP_ID.:2:&APP_SESSION.:::2:P2_MOBILE,P2_MOBILE2,P2_MOBILE3:&P1_MOBILE.,&P1_MOBILE2.,&P1_MOBILE3.Regards,
    Fateh

    Hi Trent,
    Actually, i did not create new DML. and my problem is not with the source.
    in a nutshell,
    the items on the first page have source of Static assignment .. only one item has a default value
    the items on the second page have source of Database Column .. none of the items have default value
    1- What caused the confusion is:
    We run the page 1 , we have an item (Mobile) with a default value ( that means it has a session state value by default ) > Concur.
    I type a value on the second item ( Mobile 2) then set session values.
    both items ( Mobile & Mobile 2 ) have session state values. > Concur.
    Click Modal Page button to trigger the modal page. where the Static URL is:
    f?p=&APP_ID.:2:&APP_SESSION.:::2:P2_MOBILE,P2_MOBILE2,P2_MOBILE3:&P1_MOBILE.,&P1_MOBILE2.,&P1_MOBILE3.We see that only the value of the first item (P1_Mobile) goes to the modal page. but rest of the items do not go.
    I hope that it is clearer now..
    Best Regards,
    Fateh
    If you want details, Please allow me to tell my scenario. I have two forms "Clients", "Inquiries".
    As a client calls, I need to identify whether the client is exit on the DB or not.
    So, as the client calls, we enter the mobile phone number into items that have static assignment source, then click on a button to check if the client details are already on the DB. if yes, the inquiry form shows up. if No, a modal page (that have clients form) pops up to allow inserting the details of the client in items that have Database Column Source . but since we have already inserted the mobile number in the the first step.. I do not want to insert them again in the client form.
    Regards,
    Fateh

  • How to strip text formatting from text field value ??

    Hi everyone,
    Have tried to get some info on this but no luck.... I've
    created a simple contact form in Flash, but the URL which it's
    generating contains the text formatting from the text input fields.
    As a result the script that processes the mail send doesn't work.
    How do I strip the text formatting out of text1, text2 and text3
    before I use getURL() ??
    on (release) {
    url_var =
    "your_name="+text1+"&your_e-mail="+text2+"&message="+text3;
    getURL("contact.php?"+url_var, "_blank", "GET");
    text1 = "";
    text2 = "";
    text3 = "";
    }

    text1.text = "";
    text2.text = "";
    text3.text = "";
    …that should strip the textfields. You probably also
    want to add this property (text) in the getURL()

  • How to update duplicate row from table

    Hi,
    how to update duplicate row from table?
    First to find duplicate row then update duplicate row with no to that duplicate row in oracle.
    can you give me suggestion on it?
    Thanks in advance.
    your early response is appreciated...

    In order to find a duplicate row, see:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1224636375004
    (or search this forum, your question has been asked before)
    In order to update it, just create and use an Oracle sequence, have it start and increment at a value that doesn't exist in your table.
    If that doesn't get you going, post some CREATE TABLE + INSERT INTO statements, and the results you want from them, in other words: a complete testcase.

  • How  to remove the check from ShpmntCostsRel. (field VTTK-    FRKRL)

    Hi Experts,
    Can you please tell me to how  to remove the check from ShpmntCostsRel. (field VTTK-    FRKRL) when saving of the shipment document.

    shipment cost calculation only on the Leg level and not on header level. Currently a lot of confusion happened after creating the shipment cost document and found that the status is u201CBu201D.
    now we intend to define detailed specifications to how to create this new user exit to update the shipment cost relevancy at shipment header.
    The main functionality of the user exit  to be created is to remove the check from ShpmntCostsRel. (field VTTK-    FRKRL).can u pls tell how to do this.

  • How to pass the FORM Fields value by Form Personalization

    Hi ALL,
    I want to pass form filds values in to procedure. I am calling this procedure through form personalization of that form..... But it's not accepting any form field's value there... when i am passing hardcoded vales procedure is executing fine...
    can any one suggest what to do???
    i tried with these syntax
    TEST_EMP_FP(:ADDR.ADDRESS_ID,'ABC')
    TEST_EMP_FP(${item.ADDR.ADDRESS_ID.value},'ABC')
    Regards
    Ravi

    Hi,
    Iam calling an SRS from forms personlization. Can any body tell me how to pass the Form field values as parameters to the Reports. (Example when they call this Concurrent request from Transact5ions screen, The invoice number should be defaulted in the report parameter).
    Regards,,
    Anil.

  • Htmldb_Get() not updating session state?

    Thankfully, I solved this problem myself before posting this, but I still have questions about why I ran into the problem in the first place.
    Alright, I have a javascript controlled interface on an ApEx page that uses htmldb_Get() for retrieving the current state of a row in the database and for submitting the data back to a page process to update the database row. I've checked my values from the javascript function that saves the data and the strings do contain the updated text from the interface, but when my page process fires off the strings have reverted to what was in the session state from the earlier AJAX request when the interface was loaded.
    * I've checked the session state and the variables in question are reverted, but I noticed that the item statuses are listed as "Updated".
    * I've also tested this process by passing the request string and page items in the URL and the process functions correctly.
    * I've double checked the item definitions to see if the items were being overwritten (they weren't).
    * I've checked the item types to make sure that none were "protected" (they weren't).
    * I haven't found any error messages in logs within ApEx.
    At this point I noticed that the AJAX requests to load the interface were showing up in the "Recent Page Views" report, but the save requests were not. For no particular reason I decided to switch from using the request string in the conditional for the page process and use a page item to control the mode as so...
    WAS:
    var get = new htmldb_Get(null,$x('pFlowId').value,'save_asset_tracking_info',11);
    NOW:
    var get = new htmldb_Get(null,$x('pFlowId').value,'',11);
    get.add('P11_FORM_MODE','save_asset_tracking_info');
    ...and magically the page items in the session state are being updated and all is well. There are few things more frustrating than spending hours debugging a process, then fixing it with an action that you are completely convinced won't change a thing.
    This make no sense to me and I'm hoping someone can explain it or at least point me in the right direction.
    Thanks in advance,
    Jason

    Apologies if I skipped a few details in my first post...
    I haven't included much of my source code because I don't believe it's the key to this issue. If you disagree, I will post the source code for your reference.
    On page 10 of my application, I have a floating div interface that appears in front of the page content. This div is initially empty, but I use JavaScript to make an AJAX call to page 11, strip out a specific region using the get.get() function. On the floating interface, there is a "save" button that fires off another JavaScript function that uses htmldb_Get() and get.add() to post all 21 of the items from the floating interface back to a page process on page 11. The "save" page process is at process point "on load - before header" and is extremely simple -- "if ID found then update record, else insert record".
    The problem I had was that after the "save" button was pressed, all of the items sent via AJAX to the page process were always identical to the initial values from when page 11 was rendered and the floating div interface was populated. This seemed like some sort of quirk or issue with the session state cache overwriting the values that were being sent via AJAX. As I said before, I checked the values in JavaScript immediately before the AJAX "save" submission and everything was kosher, but the page process never got those updated values.
    I managed to eliminate this "symptom" by simply...
    1. Setting the htmldb_Get() request string to null ("")
    2. Adding one more get.add() call for P11_FORM_MODE
    3. Changing the condition on which the page process was fired from the request string to the page item
    All of the other get.add() calls remained the same as did the PL/SQL in the page process.
    Thanks,
    Jason

  • How to update session in processLaunch.jsp

    Hi,
    When i am creating End user form, i have
    createuser
    edituser
    selfservice
    in the form, when i click first 'createuser' processLaunch.jsp redirect to 'createuser' form based on attributes in request object.
    Then i click 'back' button then click on 'edituser' still it goes to 'createuser' form.
    How to update session or use request object to change.
    my code.
    <%@ page import="com.waveset.session.Session,
    com.waveset.session.UserViewConstants,
    com.waveset.ui.util.PageProcessor,
    com.waveset.ui.util.RequestState,
    com.waveset.ui.web.task.TaskLaunchForm,
    com.waveset.ui.LoginHelper,
    com.waveset.view.ProcessViewer"
    %>
    <%@ include file="../includes/headStartUser.jsp" %>
    <%
    String pageTitle = req.getLocalizedString("UI_LAUNCH_PROCESS", _locale);
    String bodyAttributes = "onload=\"selectFirstEditField();\"";
    TaskLaunchForm form = new TaskLaunchForm();
    try {
    // should we let the process view specify its own title?
    form.setTitle(pageTitle);
    form.setSubTitle(req.getLocalizedString("UI_LAUNCH_PROCESS_INFO", _locale));
    form.setPostURL(response.encodeURL("user/processLaunch.jsp"));
    form.setNextURL("user/main.jsp");
    form.setWorkItemURL("user/workItemEdit.jsp");
    // let the view know we're in the end-user gui
    req.setOption(ProcessViewer.OP_END_USER, "true");
    String url = form.process(req);
    if ( url != null ) {
    LoginHelper.redirect(req, out, url);
    return;
    catch (Throwable th) {
    form.addError(th.getLocalizedMessage());
    %><%= com.waveset.util.Util.stackToHtmlComment(th) %><%
    %>
    <%@ include file="userHeader.jsp" %>
    <%= form.generateHTML() %>
    <%@ include file="userFooter.jsp" %>
    <%@ include file="../includes/poolSession.jsp" %>
    it is urgent , pls. let me know.
    thanks

    in the jsp, set the scope to request. it might help. u might also want to re-direct it to a new jsp which is a copy of the existing processLauch.jsp to avoid fiddling around with the old one. :)

  • How can print a report from form 6i,  when I press a button?

    hi Friends,
    How can print a report from form 6i, when I press a button?
    When i press a button from Form 6i, the report should print through printer.
    I have done it by using report parameter DESTYPE Printer but problem is that when I press a button printer dialogue box appear and then I give command Print to printer, I don’t want to show Printer dialogue box.
    I want when I press a button form Forms 6i , printer will print my report directly.
    Please send me the solution of this problem.
    Best regards,
    Shahzad

    Hi
    If You are using Client server application then to passing to Add all Print Parameter in the Host Command.
    Means Print command in unix to Host(lp.............) and Other Parameter to file name of the report to print.
    If You not Use Client Server Application the Also Passing a Host Command in Button-Pressed Event and Run.

  • How to reference session state in a list entry label

    You can use &<item>. to reference session state values which can then be used in titles and item labels but it seems it does not work in the label for a list entry (i.e. to build a menu).  Is there a workaround?
    thanks in advance
    PaulP

    OK I just realized that referencing session state doesn't work for lists used by Enkitec's NavBar plugin solution.  It does reference the &<ITEM>. correctly for normal APEX lists. Anyone know how to reference session state when using Enkitec's NavBar plugin solution?
    PaulP

  • How to call Java class from Forms 6i?

    Hi friends,
    I need to call a Java class from my Forms 6i application.
    (It runs under WIndows XP. It's a client/server application and I have only the client and the Form builder installed on my PC)
    I don't know almost anything about Java's world so your help would be very useful for me.
    Could you tell me exactly what i have to do?
    I've read in metalink several Notes, but they supposed that the Java architecture is already installed in the computer.... I only have the default installation of Developer 6i... so I would need to know:
    - How to install/configure the neccesary to execute Java classes without problem
    - How to invoke the .class from Forms 6i.
    Thanks a lot
    Jose.

    And also this one:
    Problem Description
    Installed Forms 6i Rel 2 on a MS Windows machine. When trying to Import the Java
    Classes getting the errors
    PDE-UJI0001 Failed to create the JVM
    Solution Description
    You need to to install JDK 1.2.2 to run the Java Importer. And set the PATH's
    and classpath's correctly.
    Explanation
    1. Download and install the JDK 1.2.2.
    Possibly available at: http://java.sun.com/products/archive/
    2. Assuming the JDK 1.2.2 is installed in c:\jdk1.2.2 directory and the JRE in
    C:\PROGRA~1\JAVASOFT\JRE\1.2 directory; ORACLE_HOME=C:\Dev6iR2.
    Set the PATH to
    set PATH=c:\jdk1.2.2\bin;C:\PROGRA~1\JAVASOFT\JRE\1.2\bin;C:\PROGRA~1\JAVASOFT\JRE\1.2\bin\classic;%PATH%
    ( If you are using ias9i then the JDK 1.2.2 comes with the ias installtion ,
    in this case please set the PATH to
    D:\ias9i\Apache\jdk\bin;D:\ias9i\Apache\jdk\jre\bin;D:\ias9i\Apache\jdk\jre\bin\classic;%PATH% )
    3. Set the CLASSPATH to set CLASSPATH=%CLASSPATH%;C:\Dev6iR2\TOOLS\COMMON60\JAVA\IMPORTER.JAR;.
    (If you do not set the CLASSPATH correctly you will get the error
    PDE-UJI002 Unable to find the required java importer classes)
    4. Now run the Forms Builder by using the command.
    C:\Dev6iR2\bin\ifbld60.exe
    Now the Java Importer Should Run fine.
    Francois

  • How to Update Business Place & Sec.Code Field in Posted Document

    Dear All,
    Pls suggest how to update Business Place & Section Code field in documents which are posted without entering Business Place & Section Code. Pls tell me how to achieve this without using Validations & Substitutions. Any table entries can be maintained for this? Kindly guide.
    Regards
    Abhijeet

    Hi,
         Thanks for sending the replay,
         I had already update the Material document through the J1INPP T. code. but it not use for update FI
         Document and i want to update Business Place & Section Code in FI document.
         Please suggest,
    Regards
    Abhijeet

  • How to create session id from different string controls

    how to create session id from different string controls

    fais,
    Please create the VI you are talking about and save some default data into all of the controls. Also on the front panel, place the session ID that should be generated by that data. Now, post your VI to a response so I can download it. I can then take this VI and help you create the functionality. (Please post what version of LabVIEW you are using.)
    My guess it that you are going to need to use a good number of string concatenations as well as a few string indexes to get parts of strings out. As for the date, you can use a Property node with the Numeric Text.Text property to get the actual string displayed on the front panel for the date and parse out the parts that you want.
    Randy Hoskin
    Applications Engineer
    National Instruments
    h
    ttp://www.ni.com/ask

  • HT1338 i have imac 8,1 how i update my software from 10.5.8 to 10.6.8

    i have imac 8,1 how i update my software from 10.5.8 to 10.6.8

    Call 1-800-MY-APPLE (or your county's support number).  Apple is selling single user disks for $19 or 5-user family disks for $29.   If you think you will another copy of SL in the future, buy the $29 family pack before Amazon at $100+ becomes your only source.

  • How to pass record Group from Forms with DATA_PARAMETER to Reports Server

    How to pass record Group from Forms with DATA_PARAMETER to Reports Server using RUN_REPORT_OBJECT?
    When we use products on run time we are using data_parameter for passing record Groups to reports via run_product but now we have to use application server and reports server for same reports.
    We met with <FRM-41214 Unable to run reports> for passing DATA_PARAMETER to reports server when used RUN_REPORTS_OBJECT.
    How can we pass record Group from Forms with DATA_PARAMETER to Reports Server using RUN_REPORT_OBJECT?
    Thanks,
    Arif

    Hi Mandeep,
    Could you please tell me how can i pass data parameter from forms to report through run_product.

Maybe you are looking for

  • Income tax - wrong computation in /460

    Dear Seniors, While processing the march-2015 payroll, I found wrong income tax computation for few employees in form 16. system is working fine for rest employees, as per my understanding it may be due to master data issue. I have checked the thing

  • SRM 5.0 how to change screen label

    Hi, Expert here is a requirement to change the screen label'E-mail' in SRM, after checking, i find the source coding as bellow '<input type="radio" name="GV_MEDIUM" id="medium_mail" value="MAI" >         <label for="medium_mail">E-Mail</label> '  , i

  • Using the Security Manager to restrict access to a single package

    After reading up on the Security Manager, the package.access property and the use of the [accessClassInPackage RuntimePermission|http://java.sun.com/javase/6/docs/technotes/guides/security/permissions.html#RuntimePermission] , it seemed to me that it

  • ISU FICA: Fetching Key date based open item list

    Hi, Our production system has a setting to kill SELECT query if it’s running for more than 12 hours without any updates. We want to fetch all open items from DFKKOP table for any given date (could be a past date), company code, business area and reco

  • How do you eject the second drive if I were to upgrade?

    Hey guys, I love my new mac pro. If I were to install a second optical drive, how would I eject that? Press the eject key twice or something? Thanks Mo