Call a Javascritp function after a validation failure

Hi all,
I have a javascript function that is executed on page load. (it works fine)
Now I need to call it after a validation failure
How I can implement this call ?
I am using Apex 4.0.2 and the inline notification, so the page load event is not fired
which "activation" event can i use ?
regards
saverio
Edited by: tirone on 17-giu-2011 9.00
Edited by: tirone on 17-giu-2011 9.04

Thank You Tyson for your quick replay,
and .. I apologize me for mine bad English.
My problem is that after a validation failure (with in line notification) the page load event IS NOT fired (in some case): so my script is not executed.
I would like to execute this script however and I don't know where and how to call it.
I give You more detail ......
I'm working on a page that contain a tabular form; in this form, using my script (called "disable_field"), Ii set to read-only some fields.
I call my script in "Execute when page load" section of page definition.
If the validation failure is produced by an update of some records in my tabular form all is OK : the inline notification is shown, the page is re-loaded and my script is executed.
If I add a new record and, after the submit, a validation fail, the page IS NOT reloaded (I don't know the why) and my script is not executed (so all fields are modifiable and this is not how much I want)
I will appreciate very any help
regards
saverio

Similar Messages

  • Can't call out on PSTN after ethernet adapter failure in J4W

    Hi all
    Okay here goes.
    We are currently deploying new laptops in our business. It's the brand new Lenovo X1 Carbon 2nd G. together with a USB based docking station. Unfortunately there is a very annoying bug with the docking station. The problem is that the dock ethernet NIC, suddenly disappears from time to time in Windows. This means that Jabber for Windows is failing over to the Wi-Fi network. This should be okay, but we are seeing an issue with J4W, when the ethernet NIC disappear.
    The problem is that J4W can't call out to external phone numbers/PSTN, but all internal calls are working fine. Also it's possible to call from an external number/PSTN to the J4W client. But still, the J4W client can't call an external no. You will only hear a busy tone when trying to make an external call.
    It doesn't help restarting the J4W client, we have to reboot the entire computer to make the client be able to call external numbers over Wi-Fi. Meaning that the ethernet NIC on the docking station, isn't reappearing after a reboot of the laptop. To make it reappear, we have to disconnect and connect the docking station cable.     
    Atm. we are waiting for a fix from Lenovo, but in the meantime I can't understand why we can't call external no. when the ethernet NIC fails. I mean, we can call external numbers. over Wi-Fi, but not when the ethernet NIC are failing.
    Can anyone point me into the correct direction here?
    Specs:
    CUCM: 8.6.2.22900-9
    CUP: 8.6.4.13900-4
    J4W: 9.7
    Gateway: Cisco 2911
    OS: Windows 7 32 bit.

    Hello Taxi-Anne, 
    Welcome to the forums. 
    Try following the steps below to turn off the call forwarding: 
    1. Touch Phone.
    2. Swipe down from the top of the screen.
    3. Touch the Settings icon.
    4. Touch Call Forwarding.
    5. Touch the required option (e.g., Forward If Busy).
    6. Touch Save.
    Let us know if this helps. Have a good day. 
    -SR
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • LV 5.1 program Exec.vi call doesn't function after LV 6 installed

    My LV5.5.1 program runs Resman via the SysExec.vi and
    worked until LV6i was installed concurrently on the same computer. Why did the LV5.1 Exec.vi function quit
    working? If I just create a Vi that just executes a
    SysExec.vi I get the same result.

    Hello,
    In order to help you with your question, it would be helpful if you could answer the following questions:
    (1) Can you run any executable (which you have verified you can run from the command prompt on your computer), besides Resman, from your LabVIEW 5.1 System Exec.vi?
    (2) Can you run Resman from the LabVIEW 6i System Exec.vi? If not, can you run any other executables?
    (3) If Resman is the only executable which you can no longer run using the System Exec.vi, can you still run Resman outside of LabVIEW?
    (4) What version of NI-VXI do you have installed on your computer? You can check this in Add or Remove Programs from your Windows Control Panel.
    Your answers to these questions will help me answer your main question.
    Regards,
    Sonya W.
    Applications Engineer
    National Instruments

  • How to call  a javascript method after the PPR event has finished  ?

    Hi!
    How can we make a javascript method get called after the processing of ADF PPR event?
    My specific use case is,
    I want to call a javascript function after the data in the table is loaded...
    In 10g, that is not a problem, as the data used to get loaded directly during onLoad, and so i would call my js function on load;
    but in 11g , the table data is being loaded through PPR which is initiated onload, and so i needed to call my function after the PPR Response processing has been done; for which I need the name of the event triggered at that instance.
    Is it possible to do this?
    Regards,
    Samba

    Hey, I got it.
    I handled the ADF Controller's PREPARE_RENDER_ID phase of the lifecycle, and then called the
    script to get Executed.
    The code :
        public void afterPhase(PagePhaseEvent pagePhaseEvent) {
            FacesPageLifecycleContext ctx = (FacesPageLifecycleContext)pagePhaseEvent.getLifecycleContext();
                 if (pagePhaseEvent.getPhaseId() == Lifecycle.PREPARE_RENDER_ID) {
                    if(AdfFacesContext.getCurrentInstance().isPostback() )
                        afterRender();
        }is written in lifecycle listener , and my backing bean extended this listener ,
    and in the afterRender() method I did this :
       public void  afterRender(){
                System.out.println("AFTER RENDER CALLED");
               FacesContext context = FacesContext.getCurrentInstance();
               ExtendedRenderKitService service = (ExtendedRenderKitService)Service.getRenderKitService(context, ExtendedRenderKitService.class);
               service.addScript(context, "translate();");
           }That's it.
    It did work, magnificently.
    Thanks for the idea.
    Regards,
    Samba

  • Call function after AutoSuggest select

    Hello,
    Looking at the
    Auto-suggest
    Overview I'm wondering if any clever folks out there can tell
    me the best way to call a function after a user has selected an
    item from the list (preferably by either mouse or keyboard). The
    function takes the selected value as an argument.
    On a related note does anyone think that
    Spry.Widget.AutoSuggest would benefit from a finish option like the
    apry effects have?
    Cheers,
    Peter

    Hi Cristian,
    Thanks for your reply.
    Firstly, I forgot to say in my previous post how great I
    think Spry is, I've played with some other frameworks in the past
    but Spry is the one that has really clicked with me.
    The future developments look very interesting, I'll be
    keeping my eye on Spry.
    As for the what I mean by the finish: callback function, it
    occurs to me that many people may want to have spry do 'x' after
    the user has selected something from the AutoSuggest list. In my
    case I want to filter a recordset based on what the user has just
    selected, this can be done easily by having them click a button
    that calls a function after they have made their selection but
    having the option of this happening 'automatically' would be a real
    boon.
    I don't really know anything about advanced JS so I don't
    know if something like this would be possible. E.g.:
    var ac6 = new Spry.Widget.AutoSuggest("productSampleDiv",
    "productMenuDiv", "dsProducts3", 'name', {containsString: true,
    minCharsType: 2, finish: function x() });

  • Forms hanging after multiple calls to Foreign Function Interface

    Hi,
    Can anyone help me with this problem. I'm getting a 'FRM-92100:
    Your connection to the server was interrupted ... Details ...
    Java Exception:java.io.EOFException' error message when i make
    two calls to a c share object file using the ORA_FFI package.
    Forms will hang with that error message when I call the foreign
    function more than once and when the ORA_FFI.LOAD_LIBRARY
    function is executed twice.
    I've tried using the ORA_FFI.UNLOAD_LIBRARY function at the end
    straight after the load library plus my processes and it still
    hangs with that error message.
    I've got a temporary work around which is not ideal but it
    works. I've made another copy of the C shared object file and
    renamed it and made my second call to load this library.
    I would prefer to have one shared object file and make multiple
    calls to it from forms. Any suggestions?
    note : running forms 6.0 on three tier architecture with web
    browser.

    "Mush15" <[email protected]> wrote in
    message
    news:g7hela$flo$[email protected]..
    > Ok the issue is a stack overflow caused by calling the
    function
    > recursivly.
    >
    > I have tried creating 2 functions and have each call the
    other but still
    > recieve a stack overflow.
    >
    > Any ideas help??
    Try incrementing a counter every time you call the function
    and decrementing
    it on the way out. When you hit 2640 times, stop calling it.

  • Call javascript function after submit process

    Hi,
    How can I call javascript function after my submit process ?
    Thanks.

    Hi Carl,
    You say that I must have an Item or region that contains my js with conditionnal display. With this method I can execute my js with specific request value.
    My problem is that I tried to integrate the "save large value workaround" in my application with the APEX wysiwyg (fckeditor). To do that I have to call the javascript function clob_submit on the save button. This function save the value of my field but if I want to save other item value, how can I do that ?
    If I use your method, I will submit the page, save the other field and after that, I will branch on the same page. At this moment, I will execute my javascript file.
    Is it what did you said ?
    Sylvain Michaud
    Homepage : http://www.insum.ca
    InSum Solutions' blog : http://insum-apex.blogspot.com

  • Retain all form field values after input text field validation failure

    Hi,
    I have a form with 1 input text field, one Command button and one h:selectManyListbox. when User enteres some values in input field and clicks on command button named Add, the value is validated. If input is invalid, then an error message appears next to the field. If input is valid, then the value is added into h:selectManyListbox. Adding to list box is done using Ajax4Jsf.
    Probelm:
    Let's assume user entered 3 valid values one after another and all are added into the list box. When he enters a wrong value, and error message appears. however, the entered values in list box goes away. Is there a way to retain the values even after validation failure.
    Code is given below;
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
    <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
    <h:panelGroup>
         <h:outputLabel for="inputEmailId1" value="Email Id: " />
         <t:inputText value="#{bean.newEmailId}" id="inputEmailId1" maxlength="100" size="40" immediate="true">
              <t:validateEmail message="Enter a valid Email Id." />
         </t:inputText>
         <t:message for="inputEmailId1" styleClass="errorStyleClass" />
    </h:panelGroup>
    <t:panelGroup style="text-align: left;" >
         <a4j:commandButton value="Add" styleClass="buttonsSub" action="#{bean.addSharedEmails}"
              reRender="inputEmailId1, selectedSharedEmails" />
    </t:panelGroup>
    <t:panelGroup style="text-align: left;">
         <h:selectManyListbox id="selectedSharedEmails" size="8" style="width:100%;" immediate="true">
              <f:selectItems value="#{bean.sharedEmails}" />
         </h:selectManyListbox>
    </t:panelGroup>
    Thanks in advance,

    Use the attribute "binding" instead of a "value". This will remember the value. You can also make sure that you dont have anything in your constructor or class level that initialises that value to "" or null. Because if JSF is remembering your value but your initialization that gets triggered before the page loading resets it to default values then you need to change that part of the code.

  • Refresh of Master/Detail does not work after validation failure

    After page validation stops further page processing of a Master Detail page,  I get the following Oracle Error on display of the Detail portion :
    <code>
    ORA:01445: Cannot select ROWID from, or sample, a join view without a key preserved table.
    ORA-06510 - PL/SQL unhandled user-defined exception.
    </code>
    Any clues as to why this might occur?  The Master portion of the page displays fine along with the appropriate custom validation error message. It is just the detail portion (from a SQL based report) that is causing the problem.  I do not use a ROWID either! 
    Thanks!

    Just an FYI for everybody who may have this very same problem in the future.  I fixed the error and it had nothing to do with ROWID or views or anything like that.  Under the Page Rendering section where you define the region definition under the source section, I had included the 'order by' clause in my SQL statement.  This was the cause of my ORA-01445 error!  When I removed the clause from the source definition and instead included it within the Report Attributes by checking the Sort box for the appropriate column (thus allowing APEX to generate the sort for me), the error disappeared!  The Oracle error message would NEVER have given me a clue into what caused the error.  I just happened to think 'what if I take the order by clause out'!  How's that for a flukey fix! 

  • Clear Item Cache after validation failure

    Hi Guys,
    I have a page validation that fires when two items (P6_LOCATOR_ID & P6_NEW_LOCATION) are equal which is working OK.
    The field validation is on the P6_NEW_LOCATION field.
    When this validation is true, I want the validation message to appear as it is now, but I want the P6_NEW_LOCATION to be reset to null or the cache for that item cleared.
    I cant run it as a page process after computations and validations because it never gets passed the validations to initiate. I have also tried creating a clear item cache process after the button that initiates the validation is pressed, but again that doesnt work.
    Can anyone think of another way that it can be done?
    Thanks
    Chris

    VC wrote:
    Cashy wrote:
    Thanks for that VC,
    I am getting following error now when it is running
    Error ERR-1002 Unable to find item ID for item "2" in application "195".
    I have set :P6_LOCATOR_ID and :P6_NEW_LOCATION = 2 as the test. When I try to set them both to other numbers i.e. 1,3,4 etc the same error message is returned with the item in the quotes changing for each.
    when you are setting the value use assignment operator
    :P6_NEW_LOCATION := 2
    I am guessing that it might have something to do with the page branching back to itself after the validation is fired?
    Thanks
    HI VC,
    Thanks for that. I am not setting the value of :P6_NEW_LOCATION programatically, I am just putting the value 2 into the field item and pressing the 'submit' button behind which the validation is running.
    Thanks for your help

  • Test Suite Validation Failure

    I'm usign ADL Test Suite 1.3.3 to validate a SCORM 2004
    Captivate generated PIF and after 20 seconds (the default time-out
    for receiving LMSInitialize) I receive "ERROR: Initialize() never
    invoked" while the wrapper correctly launch the swf.
    I also tried to intercept a call to Captivate1_DOFSCommand
    function and seems it is never used.
    My testing platform is:
    - Windows XP SP1
    - ADL Test Suite 1.3.3
    - JRE 1.5 update 2
    Any suggestion someone?
    Thanks in advance!
    Marco

    Andrew,
    First of all thanks for your offer to help me but yesterday
    morning I was playing with some publishing options and I found to
    have forgot, as good newbie as I am, to check the Include Breeze
    Metadata (that seems caused to not invoke the LMS functions) and
    the the Subject in the Manifest options that caused an error when
    validating the metadata.
    See you on this forum for my next problem!
    Marco

  • How to call a C function calling a Java Method from another C function ?

    Hi everyone,
    I'm just starting to learn JNI and my problem is that I don't know if it is possible to call a C function calling a Java Method (or doing anything else with JNI) from another C function.
    In fact, after receiving datas in a socket made by a C function, I would like to create a class instance (and I don't know how to do it too ; ) ) and init this instance with the strings I received in the socket.
    Is all that possible ?
    Thank you very much for your help !

    Hard to understand the question, but by most interpretations the answer is going to be yes.
    You do of course understand that JNI is the "API" that sits between Java and C and that every call between the two must go through that. You can't call it directly.

  • During an update of the applications on the BlackBerry smartphone an error message may be displayed "BlackBerry Desktop Software failed to validate your BlackBerry device update - Aborting install due to validation failure. Some packages contained unsatis

    I have reset both my torch and playbook back to original only thing that I kept was my contact. And still problems I am a few min away from leave my loved blackberry and going android !! Or heaven help us Phone
    Issues 1) playbook wont connect to desktop manager anymore 
    2) Play book has 2 calendar icons with two different settings on them ??? I have one that is currently working with my yahoo email and calendar account. 
    3) my Phone when connected to desk top software shows the calendar as read only
    4) Unable to update my phone says During an update of the applications on the BlackBerry® smartphone an error message may be displayed "BlackBerry Desktop Software failed to validate your BlackBerry device update - Aborting install due to validation failure. Some packages contained unsatisfactory dependencies." 
    I just want my email and Calendars to work I am tried of spending nights trying to get these deices working !!! 
    someone please help me. !! 
    I know you are going to ask I have updated everything last time and it is all as update as it can get. 
    As for now as I wait I am going to wipe my phone again and just set everything up again !! If I have to even my contacts AHHHH Help I am starting to think crazy thoughts 

    Did you try to eboot the your PC or laptop where your device is connected ?
    I experienced this with my windows laptop, after a failed to do an update, I restart the laptop and my Torch, then retried, and it's worked

  • Call RFC enabled function from within VBA in BI 7.0

    Hello Experts,
    the problem that we have should be general, i have found some postings on this forum concerning it, but unfortunately no proper solutiont.
    I just want to have the possibility to call the rfc enabled function module from within the callback function in VBA after executing of some query.
    I have seen the suggestion to build a new RFC connection in VBA, but therefore you should hard-code all connection parameters (including user + password)
    in the VBA code, this solution is for us not acceptable due to the security reasons.
    Is there some way to use the existing connection of BEx Analyser in order to execute the function calls?
    This functionality was possible in 3.5 but not in 7.0 since many functions that were available in 3.5 are not supported now.
    Do you have experience/suggestions for this problem?
    Any help would be great.
    Thanks a lot,
    Kirill

    I've got the same problem. Did you find the solution?
    Thank you,

  • Formal error: Invalid calling sequence for function modules

    Hi All,
    I have developed a function module for FQEVENT 620 Payment: Transfer Line Items for Clearing.
    The clearing works fine.
    After clearing the open items i need to post an FI-CA Document(BAPI : BAPI_CTRACDOCUMENT_CREATE) for each open item(cleared item)
    I have used the bapi : BAPI_CTRACDOCUMENT_CREATE in the same function module that i have developed for FQEVENT 620 Payment: Transfer Line Items for Clearing.Here i am getting an error "Formal error: Invalid calling sequence for function modules".
    So please let me know where i can use this bapi to post fi-ca document.Is there a BAdi or Enhancement Spot where i can use this BAPI or tell me what should i do to overcome this error.
    Regards
    Venkat

    Venkat:
    While I am confused about your business process - creating an open item when clearing one seems strange.  Look into event 0020 which is called after documents are posted - it may present the opportunity to post process additional documents.
    regards,
    bill.

Maybe you are looking for

  • Should the Metada of RFC be refreshed if it is Re-imported

    Initial I kept the length as 12 for the RFC field PARTICI_ID and imported it to XI. Later changed it to 11 at R/3 and Re-imported it to XI. And I activated it again in the XI, Activated mapping Again and during Mapping test it is showing proper resul

  • Adding third‑party plug‑ins

    This question was posted in response to the following article: http://help.adobe.com/en_US/audition/cs/using/WS58a04a822e3e5010548241038980c2c5-7f35.html

  • Installing Office 2007 or 2010 on Windows Embedded 7

    Can Office 2007 or 2010 be installed on a Windows Embedded 7 OS? I looked at the embedded software compatibility site and do not see Office 2007 or 2010 listed on it, only the viewers.  I have not found any documentation online as to why Office isn't

  • Java Connection Pooling

    I want to know what is the procedure of getting oracle's jdbc connection pooling api(class files and java doc). I also want to know whether it is free or not

  • Urgent: Concurrent employment: Central Person VS Person ID

    Hi gurus, I need you help urgently. I have one question. I am using concurrent employment. To get the groups of PERNRs is it different to use Central Person (IT0001) or Person ID (IT0709)? Or may I group the employees by both of them n the same manne