Call doSubmit() with custom value does not update process

I have a page with a standard form that has a "Save" button, but also a button that I have manually created via an anonymous PL/SQL block in the source of the element of a field on the form. (I did because I was already using a PL/SQL block to display the value of the item, but wanted to update the button appear immediately next to him, rather than somewhere on the page template.)

Originally, this button was just a simple redirect to a separate detail page, but I found that if the user has made changes to the form, then click on this button, these changes would be lost. So I changed it to a call doSubmit() instead. But I had to distinguish between the user pressing the "Save" button and the custom button, the button call doSubmit ('CUSTOM'). I then created a branch that has verified the value of demand and went to the appropriate page that was pressed.

What I found was that the process to update the underlying table for the form had not shot, even if it is unconditional, and therefore updates the original form have been lost.

I eventually worked around this by changing the button so that instead of calling doSubmit with a custom value, it calls a JavaScript function that: 1) define a hidden field to '1' and 2) called doSubmit ('SAVE'). Then, I changed the direction to look at the value of this hidden field, rather than the value of the request. That has worked well.

So this got me thinking: why my original implementation did not work?

I suspect that doSubmit() only works to the custom of the values if you have defined a real button in the designer of the ApEx and configured with a name for this custom value. The HTML code for my button seems indistinguishable from a button created by ApEx, I think that there is something that happens behind the scenes to make doSubmit() work simply with a random value.

Can anyone confirm or deny this hypothesis?

Hello

Could this be your problem:
If you have a treatment of automatic line (DML), which only fires from below, if I understand correctly

Valid Update Request Values: SAVE, APPLY CHANGES, UPDATE, UPDATE ROW, CHANGE, APPLY, APPLY%CHANGES%, GET_NEXT%, GET_PREV%
Valid Insert Request Values: INSERT, CREATE, CREATE_AGAIN, CREATEAGAIN
Valid Delete Request Values:DELETE, REMOVE, DELETE ROW, DROP

At least on Apex 3.2

BR, Jari

Tags: Database

Similar Questions

  • Custom EventHandler does not update the reconciliation work in 11g r2

    Hello world

    I have three users of post process change custom eventhandlers.

    These eventhandlers works entirely success when I change all attributes on change screen.

    But these eventhandlers does not work after update of reconciliation (update succeeded).

    Why update eventhandlers does not work after reconciliation?

    Thank you.

    Best regards.

    Operations that use "Public BulkEventResult run (long arg0, long arg1, arg2 BulkOrchestration)"? --> Updates block as if you select more than 1 user in the advanced search and select the bulk edit options.  Also the reconciliation events to use it even if it is a single user.

    Operations that use "Public EventResult run (long processId, long eventId, orchestration of the Orchestration)"? --> Put attributes through the user interface when you save a user.

    -Kevin

  • Dynamic action on the amendment of item with AjaxRequest value does not

    Hello
    I have a select list of users called P222_USERS. When a new user is selected, I want to run a query to find the email to the selected user and paste it into the P222_EMAIL text field.

    I have a process on demand on the change of P222_USERS that calls a javascript function:
    fetchEmail ($('#P222_USERS').val ());

    In my head, the function calls an application process in an Ajax request:

    function fetchEmail (email) {}
    var ajaxRequest = new htmldb_Get (null, & APP_ID, 'APPLICATION_PROCESS = GET_EMAIL', 0);
    ajaxRequest.add ("P222_USERS", $('#P222_USERS').val ());
    ajaxResult = ajaxRequest.get ();
    }

    Here is my request PLSQL process GET_EMAIL:
    Start
    Select send to: P222_EMAIL of connection where userid =: P222_USERS;
    end;

    Enamel is not filled is at: P222_EMAIL. I know I'm close, but have already spent a lot of time with various alternates to the above function / on the application process. Any help is greatly appreciated. I wish the process of PL/SQL on the item change worked that way instead of through AJAX.

    Thank you
    Johnny

    Johnny98 wrote:
    Hello
    I have a select list of users called P222_USERS. When a new user is selected, I want to run a query to find the email to the selected user and paste it into the P222_EMAIL text field.

    I have a process on demand on the change of P222_USERS that calls a javascript function:
    fetchEmail ($('#P222_USERS').val ());

    In my head, the function calls an application process in an Ajax request:

    function fetchEmail (email) {}
    var ajaxRequest = new htmldb_Get (null, & APP_ID, 'APPLICATION_PROCESS = GET_EMAIL', 0);
    ajaxRequest.add ("P222_USERS", $('#P222_USERS').val ());
    ajaxResult = ajaxRequest.get ();
    }

    Here is my request PLSQL process GET_EMAIL:
    Start
    Select send to: P222_EMAIL of connection where userid =: P222_USERS;
    end;

    Enamel is not filled is at: P222_EMAIL. I know I'm close, but have already spent a lot of time with various alternates to the above function / on the application process. Any help is greatly appreciated. I wish the process of PL/SQL on the item change worked that way instead of through AJAX.

    Thank you
    Johnny

    The fact is that your application process defines the elements of value in session state and do not meet the side value client/browser

    If you need to return the value of the application process and to assign the value in javascript like this

    function fetchEmail(email){
    var ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=GET_EMAIL', 0);
    ajaxRequest.add('P222_USERS', $('#P222_USERS').val());
    ajaxResult = ajaxRequest.get();
    //newly added
    alert(ajaxResult);
    $s('P222_EMAIL',ajaxResult);
    }
    
    //amend your On Demand PLSQL Process GET_EMAIL like this
    begin
    select email into :P222_EMAIL from login where userid = :P222_USERS;
    //newly added
     htp.prn(:P222_EMAIL);
    end;
    

    In this way the value will be set in and client side state both session

  • Pages of the OPS (with custom controller) does not not in the R 12.2.4 upgrade custom

    Hi all

    There is a problem, I'm dealing with my custom page. I am trying to expand the controller with my custom class, but get the error below

    oracle.apps.fnd.framework.OAException: could not create Java class: (oracle.apps.xxar.cusstd.createcus.webui.xxArCreCusCO) associated with the area: (ArUtilRN). It is probably because the class name is incorrect or not included in the project.

    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1247)

    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)

    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2848)

    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1991)

    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:567)

    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:455)

    If the file is present in the right folder

    [webui applmgr@gfs3devapp1] $ pwd

    / opt/oracle/gfs2d/FS1/EBSapps/COMN/java/classes/Oracle/Apps/xxar/cusstd/createcus/WebUI

    [webui applmgr@gfs3devapp1] $ ls - ltr

    Total 4

    -rw - r-. 1 applmgr oinstall 1177 Feb 25 10:17 xxArCreCusCO.class

    I have to follow this discussion, but is not help me: https://community.oracle.com/thread/3647610

    Please help.

    Thanks, Jerome

    Hello samia,.

    In R12.2.4, you will need to create the jar with custom classes. Please visit the Doc ID 1577661.1

    Hope this helps you solve your problem.

  • Publication of RoboHElp Server 9 with RH 9 does not update the webhelp pro toolbar

    Hello

    We have a problem with RH9 a RH9 Project Server edition.

    When we opened the file published from this URL:

    http://ntrobohlpd02:8080/Robohelp Server? PRJ = Tests_2_Entreprise_FR

    The toolbar (where the table of contents, indexes etc. icons are displayed) comes from another project:

    Toolbar issue_1.png

    The toolbar that should display is this (large green and grey icons):

    Toolbar issue_2.png

    Why the server displays the whkin_tbars.htm of another project?

    Really weird.

    We tried to restart the server as indicated by Adobe technical support when I contacted them. It worked once, but do we need to restart the server whenever we want to publish?

    Thank you

    Probably the same does not if you view the generated location assistance. What happens if you start using the server or the administrator of the Web?

    I always suggest people manually remove all the files in the location of the server domain before they publish their results. The publishing process is unlike the process to generate. This is actually just a copy a leaves all kind of junk files behind the previous publication. By posting to a 'clean' place, you know that the content is good.

    Alternatively, you can delete the cache of your browser. This has been known to cause confusion by displaying a cached file (and so old). Let us know how you go.

  • Someone had problems with custom javascript does not once someone adds a product to their cart?

    Just as the title suggests, for some reason any I noticed the javascript (from some of the tutorials that bcgurus offers), I add to my pages Web does not work once someone adds a product to their cart. It's almost as if the javascript code is deleted from the page entirely once this 1 (add to cart) button is pushed. I don't know if I'm just something wrong or... I don't know, just thought I'd ask. Thanks in advance!

    BC e-commerce code removes and recreates the set containing the block html on most events (all?), so the event handlers that you have joined, or changes, in deleted items also well inside that block.

    Try setting your listeners to an element outside of this block using event bubbling.

  • DataGrid with Custom Component does not show under elements

    I hope someone can enlighten me on this matter.

    I have a datagrid with a column that has an element of rendering. No matter if the data 'text' comes from a dataProvider or are static.

    If I do the following, only the first label will appear.


    < mx:DataGridColumn headerText = "Column Title" >
    < mx:itemRenderer >
    < mx:Component >
    < mx:VBox >

    < mx:Label text = "{data.data1}" / > "
    < mx:Label text = "{data.data2}" / > "
    < / mx:VBox >
    < / mx:Component >
    < / mx:itemRenderer >
    < / mx:DataGridColumn >

    However, if I change the VBox for a HBox both labels will appear.

    < mx:DataGridColumn headerText = "Column Title" >
    < mx:itemRenderer >
    < mx:Component >
    < mx:HBox >

    < mx:Label text = "{data.data1}" / > "
    < mx:Label text = "{data.data2}" / > "
    < / mx:HBox >
    < / mx:Component >
    < / mx:itemRenderer >
    < / mx:DataGridColumn >

    I use:

    Flex Builder 3 standalone
    Version: 3.0.214193

    OS: Vista

    Any ideas or comments would be appreciated.

    the variableRowHeight = "true" DataGrid value. VBox you are using is not being correctly displayed.

  • Windows does not update with error code 8024402C

    Windows does not update with error code 8024402C

    Quote your full version of Windows (for example, WinXP SP3;) Windows XP 64 - bit SP2; Vista SP1; Vista 64 - bit SP2; Win7; Win7 64 bit) when you post in a forum or a newsgroup. Please do it in your next reply.

    What application or antivirus security suite is installed and your current subscription?  What anti-spyware (other than Defender) applications?  What third-party firewall (if applicable)?

    A (another) Norton or McAfee application has already been installed on the computer (for example, a free trial version which is preinstalled when you bought it)?

    0x8024402C error code when you try to install updates on Web Windows Update or Microsoft Update sites:
    http://support.Microsoft.com/kb/900936

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • How can I get the serial number for update for first pro cs4 4.2.1, one provided with the product does not work.

    How can I get the serial number for update for first pro cs4 4.2.1, one provided with the product does not work?

    You don't need a serial nr for updating a program

    You need the original CS4.0. install and add the series nr. to get the program to work.

    Now you can update to 4.2.1

  • the custom words does not appear in my iPhone

    Hello

    I joined my iPhone IOS 10 6 more and I noticed that the custom words does not appear in my iPhone, even if I have them in my iTunes library. I signed up with the same Apple ID on all devices. Very few of them, I can access the lyrics in my phone, but not all of them (as he used to be in iOS 9)

    any help is appreciated.

    Thank you

    Ahmed

    I downloaded a program on my Mac (no app store unfortunately) called "get lyrical". automatically add lyrics to iTunes. Then in iTunes file > library > Update music library to iCloud. doing this during the last 20 minutes and so far it seems to work.

  • How the LED lights up when a threshold is reached, then turns off only when the value does not reach the threshold for a while?

    Hi, I want to write a program that can turn on the LED when a range of value, this is the threshold and only when the value does not reach the threshold for a period of time, say 5 seconds, then the LED will turn off, otherwise it will remain. How can I achieve this in labview? Can someone help me? Really thanks!

    I assume that you use a while loop to keep the updated value.

    Add a record to offset to your looping it initialize with a U32 (time in ms)

    Add the registry to offset to your loop that keeps the previous value of your bool

    When your reaches the threshold value => the light and set the current time in your shift register.

    In the next iteration of the loop weather check value is still above threshold

    => Y-online previous set to true?

    => Y-online the next iteration

    -Online N => turn switch on and set the current time in your shift register.

    -Online N => subtract the time current less time shift record-online more then 5 seconds?

    => Is => keep turning on

    -Online N => turn given

  • Adobe Download Manager does not update error A12E5

    I just signed up for creative cloud and does not update the Adobe Download Manager.  I already install the program and its just try to update, but after about 5 minutes, I get an error stating - "sorry, there seems to be Aproblem with the download process (error code: A125E5).»  For troubleshooting tips, please visit our customer support page.  Can someone help me solve this problem?

    How you try to install AAM?

    Try to download from here: http://www.adobe.com/support/downloads/detail.jsp?ftpID=4774

  • String value, do not update correctly.

    I want to write a function that updates a string value, but does not return a value. In the snippit below, I'd like to pass the variable string 'test' in the function and change its value. When I do that, however, the value does not change. Can someone help me with this?

    var testString:String = "this is the test string";
    
    
    testFunction(testString);
    
    
    function testFunction(newString:String):void{
              newString += " again"
              trace(newString) //traces "this is the test string again"
              trace(testString) //traces "this is the test string"
    }
    
    

    use:

    var cityNamesString:String;
    var carNamesString:String;
    var nflTeamsNamesString:String;
    
    var cityNamesArray:Array = new Array("Atlanta","New York","Seattle","Texas ","Boston");
    var carNamesArray:Array = new Array(" Ford","Toyota","Chevy","GMC ","Nissan");
    var nflTeamsNames:Array = new Array(" Falcons","Giants","Seahawks","Texans","Patriots");
    
    testFunction(cityNamesArray, "cityNamesString");
    testFunction(carNamesArray, "carNamesString");
    testFunction(nflTeamsNamseArray, "nflTeamsNamesString");
    
    trace(cityNamesString)//id like it to trace : Atlanta,New York,Seattle,Texas ,Boston.
    trace(carNamesString)//id like it to trace : Ford,Toyota,Chevy,GMC,Nissan
    trace(nflTeamsNamesString)//id like it to trace :Falcons,Giants,Seahawks,Texans,Patriots
    
    function testFunction(array:Array, string:String):void{
     if(!this[string]){this[string]="";} else {this[string]+=",";}   for(var i:Number = 0; i < array.length; i++)
      {
      this[string] += array[i] + ",";
      }
    
      }
    
    
  • Site Flash does not update unless I click off the site!

    Site Flash does not update unless I click outside of the site and then again on the site!

    My Flash website presents to the user a list of customers to select

    When the user selects a customer of the user is presented with a full discription of the customer

    But when usage goes back to the screen containing all customers and selects another client, the previous client is displayed ' until I have click out of the site, click back on the site ", then the customer profile automatically updated! which is not what I want as I want the customer info to display when the user clicks in the list!

    I have worked on this issue now for 3 weeks so if someone has something to say help please help

    Well, after searching for a month and thinking maybe flex was not capable for dynamic web sites, that I decided to start over with my search

    Turns out that the answer was really simple way just had to clear my mind and think about

    protected function itemrenderer1_mouseOverHandler(event:MouseEvent):void

    {

    Main.ClientData.ClientsID = clientIdNumber.text;

    ScrollPanelSkinClientScrollingContentSkin.getClientResult.token = ScrollPanelSkinClientScrollingContentSkin.customerService.getClient (Main.ClientData.Clien, tID);

    trace ("Trace one113" + Main.ClientData.ClientID);

    }

    As all ways, stupid I feel

  • The apps of Podcasts and find my friends does not update in iTunes

    The apps of Podcasts and find my friends does not update in iTunes.

    Applications appear in iTunes as with updates, but iTunes says "Podcasts is available only on iOS.

    I usually never use the app store on my phone and always update of applications via iTunes.

    Please fix this bug.

    You see these warnings by mistake. These applications can only be updated as part of updating to iOS without iTunes.

    You can ignore the warnings or remove the two apps to iTunes. This will not affect these applications on your iDevices.

Maybe you are looking for