Xfa.event.cancelAction cancels all subsequent actions

I have created an expenses form which has a number of mandatory and optional fields.   To ensure no expenses are submitted with a value of 0, I have added a check which sets xfa.event.cancelAction = 1 on the presubmit event of my email submit button.  This works, but the problem is that it seems to cancel all subsequent actions too.  I have tried adding xfa.event.cancelAction = 0; in the postsubmit event, but this does not work.
Does anyone have any ideas?
Thanks, Paul

Hi Paul,
Put an extra visible button which will be your submit button.
This "extra" button will do validations and all pre-submission checks.
Once all checks have passed, then execute a "hidden" email submit button.
Code Example:
var formPassedValidations = false;
<do all your validations here - eg: check if values are not zero>
if (formPassedValidations == true)
     btnHiddenEmailSubmit.execEvent("click");
else
     <show validation err message>
hope this is what you are looking for... have fun!
Regards,
Luigi D'Amico
8 BIT PLATOON
design develop deploy
www.8bitplatoon.com

Similar Messages

  • [JClient 9.0.3] Trapping events and canceling actions

    Subject: [JClient 9.0.3] Trapping events and canceling actions
    I'd like to be able to, based on some condition, abort certain
    actions (navigate, delete, insert, etc, etc) when the appropriate
    events have been fired.
    E.g., in case the Transaction is dirty and when I navigate to a
    certain row in a certain ViewObject instance, I would like to
    intercept this action and let the user decide what to do:
    Commit/Rollback/Cancel. Of cource when 'Cancel' is selected, the
    navigation-action should be aborted at all.
    I have realised this functionality by subclassing JUNavigationBar
    and either calling super's actionPerformed() or not. This works
    perfectly, but of course there are other means to navigate (a
    JComboBox + NavigationBinding, a JTable or programmatically), so
    I would need to implement similar functionality for each of these
    component types.
    So, what I need to do is to intercept these actions on a lower
    level. It appears that I need to register RowSetListeners to
    ViewObject instances, but as far as I can tell, this way there
    isn't a real way to abort these actions once they are started.
    Am I pherhaps overlooking something? Any help and/or suggestions
    would be greatly appreciated.
    Arno

    Subject: [JClient 9.0.3] Trapping events and canceling actions
    I'd like to be able to, based on some condition, abort certain
    actions (navigate, delete, insert, etc, etc) when the appropriate
    events have been fired.
    E.g., in case the Transaction is dirty and when I navigate to a
    certain row in a certain ViewObject instance, I would like to
    intercept this action and let the user decide what to do:
    Commit/Rollback/Cancel. Of cource when 'Cancel' is selected, the
    navigation-action should be aborted at all.
    I have realised this functionality by subclassing JUNavigationBar
    and either calling super's actionPerformed() or not. This works
    perfectly, but of course there are other means to navigate (a
    JComboBox + NavigationBinding, a JTable or programmatically), so
    I would need to implement similar functionality for each of these
    component types.
    So, what I need to do is to intercept these actions on a lower
    level. It appears that I need to register RowSetListeners to
    ViewObject instances, but as far as I can tell, this way there
    isn't a real way to abort these actions once they are started.
    Am I pherhaps overlooking something? Any help and/or suggestions
    would be greatly appreciated.Yes you're right in saying that there are many ways one could perform navigate - by other controls, by calling next() on the VO or even on the RowSetIterator. Also BC4J does not generate 'events' before navigation to preempt navigation unless a row is 'modified' in which case RowValidation events are generated for the Entities modified in that row.
    The most generic way you may fix this is by 'listening' to rowsetiterator's navigation events and get the PreviousRow from the navigation events and set focus back to it if user presses cancel, or get the current RowKey and let the user commit/rollback and then restore the currency to a row with that rowkey (just in case the MT is set to clear all caches on commit/rollback transaction boundaries). Note that insert/delete events should not be handled this way as those event points are usually generated due to a button action and it's easier to preempt these actions rather than 'let the actions' complete and then perform a rollback-to-a-particular-point.
    Arno

  • [BUG] Removed source photos: cannot "Cancel all"

    It's more a missing feature than a bug, however I just reopened iPhoto after months, just to try out the new version (I'm a Lightroom user).
    Long time ago I exported an album to take a look of the software and explore its features. After months those copies have been deleted: they were just a test.
    I opened the event and clicked on slideshow. I didn't remember the source photos were missing.
    The alert dialog show two buttons: 1) find folder... and 2) cancel.
    However, it's missing a "Cancel all", or "skip/ignore/whatever" button to come back to iPhoto. I had to press the Cancel button more than 200 times! It's just plain silly, isn't it?
    Is it possible to fix that in a future upgrade?
    Best regards,
    Paolo

    Welcome to the Apple Discussions. Your posts tells me that you're running a "referenced" library. That's one of the problems with that. If you don't carefully manage the source files iPhoto just won't work.
    You can send a feature request to Apple via http://www.apple.com/feedback/iphoto.html.
    A force quit probably would have saved you 200 cancels I think.
    OT

  • Cancel a delete action in a trigger

    Hi,
    I would like to know the best way to cancel a delete in a trigger, I want to instead change a Field called Active to 'N'
    My application is built on views that exclude records with this flag set to 'N'
    I have found the IF DELETING ('id') THEN syntax which should be fine to capture the delete, but what is the best way to then cancel the delete?
    Thanks in advance
    cl3ft

    Hi,
    I don't think you can cancel the delete action in the trigger if you want to perform another action afterwards. You can cancel the delete action by raising an exception (e.g. with RAISE_APPLICATION_ERROR(-20001,'No delete allowed') ;)
    To cancel the delete action and perform an action afterwards I would suggest to create a view on the table containing all columns. On that view, you can define an INSTEAD OF DELETE trigger. In this trigger, simply update the column and do not perform any delete action. This should do the job for you.
    Regards
    Stephan

  • Issue with xfa.event.change in XFA 3.3

    HI all
    I've found an issue with the way that XFA 3.3 processes the script below on a change event when a user paste's more than 1 character to a textfield.
    var sChange = xfa.event.change;
    if((sChange.length>1)){
        app.alert("Bad User\nCopy and paste has been disabled for this field");
        //discard the change
        xfa.event.change = "";
    in XFA 3.0 the alert is sent and change is removed, in XFA 3.3 the alert is sent but the change persists.
    Any Ideas?

    Hi Mark,
    Unfortunately thats not possible as I'm using Flash Fields with data being passed between the PDF and the Flex app which only works in XFA3.3, let me know when its fixed.
    Kind Regards
    Kevin Mortimer
    Solutions Archtect
    Avoka

  • How to cancel all alert email in WF_NOTIFICATIONS_OUT Queue.

    Hi,
    Could any body show how to cancel all the alert email present in WF_NOTIFICATIONS_OUT queue.
    We are running 12.0.4. i have seen Doc. id. 433359.1 Tracking Workflow Notification Event Messages.
    According to this before i can recreate the queue i need to process the alert emails.
    I do not want these alert emails to be processed since it is a clone instance. I want it to either go to a test email account or to be discarded
    completely.
    I know how to send it to test email account by using setoverrde address functionality in OAM. But for that to be set i need to start the mailer (which is currently down), if i start, it will start firing these pending alert emails in WF_NOTIFICATIONS_OUT.
    Kindly suggest.

    Hi,
    These documents talk about purgin WF_NOTIFICATIONS_OUT queue. But document i mentioned
    says.
    7. Try rebuilding the WF_NOTIFICATION_OUT queue if necessary
    The wfntfqup.sql script rebuilds the WF_NOTIFICATION_OUT queue by dropping and recreating
    that queue, removing pending notification messages from the WF_DEFERRED queue, and
    repopulating the WF_NOTIFICATION_OUT queue from the Oracle Workflow Notification System
    tables.
    Wfntfqup.sql Version >=115.9
    If you have implemented Oracle Alert and the WFNOTIFICATION_OUT queue contains any pending_
    alert e-mail messages, those messages must be processed before the queue can be rebuilt. The
    wfntfqup.sql script checks the queue for any alert e-mail messages and, if it finds any, the
    script returns an error message that specifies how many alert e-mail messages are pending
    and indicates that these messages must be processed before the script can run.
    Kindly suggest.

  • Difference btwn xfa.event.change and xfa.event.newText pls?

    Hello
    I tried to figure out the difference between xfa.event.change and xfa.event.newText in google, but did not see any such!
    Pls. could you clariy my question that what is the differenvce between these 2 (xfa.event.change and xfa.event.newText)?
    Thank you

    Thank you. With out having much knowledge on JS, i wrote the below JS
    myFomr.Page2.mySubform21.myCheckBox211::exit - (JavaScript, client)
    // To  check this check box, bank acct # is must to enter by user
    if (this.rawValue == "X"){
    if ((xfa.resolveNode("myFomr.Page2.mySubform21.BankNumber").rawValue == null) || (xfa.resolveNode("myFomr.Page2.mySubform21.BankNumber").rawValue == "")) {
        xfa.event.change = "";
    My impression was, i can change a value (in the above case am unchecking the check box by populating it with ""/space) of any (text, check box, drop-down) field on the form explicitly by using this script
    (xfa.event.change = "";),
    i already placed in around 20 locations, so, pls. suggest me do i need to correct all these 20 locations, kind of risk/tediuos at this point or is it ok that leave as is?
    Thank you

  • Import is not available all other actions are active but not import help?

    Import is not available all other actions are active but not import help? I wish to import bookmarks from internet explorer, I am using windows 7

    Make sure that you do not run Firefox in permanent Private Browsing mode.
    *https://support.mozilla.com/kb/Private+Browsing
    *You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    *To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Deselect: [ ] "Permanent Private Browsing mode"

  • Cancel all open PO's

    Hi friends,
    I want to cancel all open PO's.
    Kindly help....
    Regards,
    vimal

    Hi
    You can use Transaction ME2N with selection parameter WE101 to list down all open PO's
    Use transaction  MEMASSPO for flagging the deltion falgs for all the line items in the PO.
    Thanks & Regards
    Kishore

  • Changing the default event time to all-day in Month View?

    I updated to Mavericks today, and when I went to add an event to my Calendar, I discovered that all-day was not the default time.  In Mountain Lion, when going to add an event in Month View, it was automatically set to all-day, which is perfect because all of my events are all-day events.  Now, it's being set to 9:00 to 10:00, and I have to check the box to make it all-day.  I know that this isn't much work, but when I'm adding dozens of events it starts to get a little annoying.
    Calendar 7.0, OS X 10.9 (Mavericks).
    Any help would be greatly appreciated.

    npatelaz,
    I don't think that it is possible, even using Terminal. If you want to change your workflow, "all day" events can easily be created in the Day/Week view, but as you stated the Month view poses a problem.
    Calendar Help says:
    To make:
    An event that lasts all day:
    In Day or Week view, double-click in the “All-day” section at the top of the calendar.
    An existing event last all day:
    In Day, Week, or Month view, double-click the event, click the date, then select “All-day.”
    A multiday event:
    In Week view, drag from the start time to the end time. You can drag across multiple days.In Day or Month view, create an event. Then, enter the start and end dates and times.
    An all-day event into a multiday event:
    In Week view, drag the all-day event across multiple days.
    How to Change the Default Duration of New iCal Events - The Mac Observer was written over a year ago, but it may give you some other ideas.

  • Can I give over my account to someone on my plan and the cancel all my stuff?

    Hi, Sorry for how long this is going to be, but I need to explain.
    So I am struggling financially.
    I had to get a car and it has payments.
    So I need to downside my spending.
    99% of my time I am in a wifi setting. And I am able to text unlimited and use unlimited data as well.
    I'm more a texter than a talker. I can text on my computer or iPad. So my phone pretty much is useless unless I go out or need to talk on the phone.
    When I first joined Verizon I signed up for a data plan on my iPad. But now I have a hotspot, iPhone and my friend's phone included.
    I no longer need the hotspot having an iPhone or the data plan on my iPad. And Verizon has graciously helped me with that and takes the amount I would pay for both and deducts it from my bill each month.
    But, they are still on my plan. So if I cancel I would need to pay a cancelation fee for all devices I cancel.
    And that's fine if I do. My bill is probably near what a cancelation fee would cost. So if I have to pay that's fine. I will. It'll be rough but after 2 months it'll be worth doing.
    I was reading about an Assumption of Liability and if I could do that, that would be great. But I don't think I can since I have someone on my plan.
    I am going to go to another phone company. Ugh!! I have been with all the big phone companies. The 2nd best to Verizon is AT&T. TBH, you will not get better than the 2 companies. And remember, you get what you pay for. So it's sad to leave. I love Verizon! IDC what anyone says. In the past year Verizon has bent over backwards to help me with an issue I was having and they are the best. If someone gets bad service from them, report that person cause the company really cares about their customers. I am an example of that. And the coverage is great. I like AT&T too, but I would have trouble with them from time to time. But with Verizon never!! And doesn't matter where you go. Like there are some areas where service will cut out but I never had that problem with Verizon.
    But, after moving, in my area, the company I'm going to, is great service as well and it meets all I need for a lot lesser price.
    You do get what you pay for and downgrading is never good. But sadly I have to pick what's more important and in this case, is my car. So I have to go with what I can afford.
    Anyways, what I would like to do is...
    Hand over my account to my friend that's on my plan, make it their's and cancel all my devices.
    But since I do want to keep my number and usually when doing this, it cancels the plan you are on.
    IDK if I can do that since I'm not sure if it will cancel the entire plan or just the phone itself.
    As I said, if I have to pay the etf that's fine.
    Because that's the plan. Hand over to my friend the account and cancel my devices.
    So if someone could tell me if that's possible that would be great.
    Where I live now, Verizon isn't close by and finding out without having to talk would be great. LOL
    So any help anyone could give me, please reply back here.
    I need to do this all before the 15th before I get charged for another month. So asap answers pleaseeeee?
    Thanks!!
    Kathy

    The ETF for each the iPad and hotspot on contract would be $175 each less $5 for each month of your contract(on each) you have competed. So if you had completed 1 year on each of the devices, the ETF on each device would be $115 or $230 total.
    I assume you have a smartphone and you want to keep it instead of moving to a basic phone. If you are willing to switch to a basic phone and have access to one, you could get on Verizon's More Everything plan for a basic phone only to the tune of $25/month + taxes. That would give you no data, 700 minutes of talk and unlimited texting.
    If you have a smartphone and would want to keep it, you are looking at $40 line access fee, unlimited talk/text and a minimum data plan of $20/month for a total of $60 + taxes on the More Everything plan.
    Verizon also has a single line plan which includes unlimited talk/text and 1 GB of data/month for $60/month + tax.
    Of course, to sign your other devices over to someone, they would have to agree to do so.
    Good luck.

  • IOS - iCal problem - Events appear as "all-day" whereas they shouldn't

    See below a conversation I had with a service provider.
    There is a bug in iOS when dealing with events in UTC times.
    Any solution to this?
    On Sat, Nov 16, 2013 at 11:14 AM, xxx wrote:
    Hi,
    I noticed a small problem with a calendar to which I subscribed on my iphone.
    Events that are configured to last from 6.30pm to 7.30pm appears as Full-day events on iOs.
    Thank you for reporting this issue. We're aware that IOS sometimes
    misinterprets the iCal files we provide. It appears that it is reading
    the times properly (as seen in the event detail and grid views), but is
    mislabeling the events as all-day in the list view. Is this what you're
    seeing?
    Thank you
    Michael
    Exactly.
    In the event's details, times are OK, but in the listing, event appears as all-day.
    But why only for 6.30 to 7.30? When i change times to 5.30 to 6.30, it shows fine.
    It appears to be related to the interpretation of time-zone information. We provide the game times in UTC format and count on your device's calendar program to make the appropriate adjustments for the local time zone. When the provided UTC times span two days (e.g. 11:30pm - 12:30 am, before time zone adjustment), IOS seems to mislabel the event as "all-day".
    Thank you.
    Michael

    Does this problem still occur with iOS8?

  • My imac 10.6.8 hangs on the spinning wheel after installing Samsung Kies (KiesMac_2-0-0-13023_10_1). I was able to restart ok after installation; I even moved some files from my Galaxy 3 to the imac. But on the next (and all subsequent) restart attempts,

    My imac 10.6.8 hangs on the spinning wheel after installing Samsung Kies (KiesMac_2-0-0-13023_10_1).
    I was able to restart ok after installation; I even moved some files from my
    Galaxy 3 to the imac.
    But on the next (and all subsequent) restart attempts, it hangs on the spinning wheel.
    How to fix? Thanx in advance.

    Mac OS X: Gray screen appears during startup 

  • What does one do when iPhoto version 7.1.5 only opens one event without showing all photos?

    What does one do when iPhoto version 7.1.5 only opens one event without showing all photos or any other events?

    Depends -what other clues? What recently changed? Do you have a good current backup?  best guess is to Back up your iPhoto library, Depress and hold the option (alt) and command keys and launch iPhoto - and repair the database - if that does not resolve things rebuild your iPhoto library database
    LN

  • Cancel all items in the purchase order

    we need a program to cancel all items in the purchase order   .
    exists any BAPI or funcion or metod to do this ?
    becuase if we to do this for the TC ME22N we need to do this item by item.   
    our programmer  suggest us an update of the table EKPO

    Here is an example program using the BAPI to set the deletion indicator on all line items of a PO. 
    report zrich_0001.
    data:   return type table of bapiret2 with header line,
            poheader type bapimepoheader,
            poheaderx type bapimepoheaderx,
            poitem type table of  bapimepoitem with header line,
            poitemx type table of  bapimepoitemx with header line.
    data: iekpo type table of ekpo with header line.
    parameters: p_ebeln type ekpo-ebeln.
    start-of-selection.
      poheader-po_number = p_ebeln.
    clear iekpo.  refresh iekpo.
      select * into table iekpo from ekpo
                     where ebeln = p_ebeln.
      loop at iekpo.
        poitem-po_item = iekpo-ebelp.
        poitem-delete_ind = 'X'.
        append poitem.
        poitemx-po_item = iekpo-ebelp.
        poitemx-po_itemx   = 'X'.
        poitemx-delete_ind = 'X'.
        append poitemx.
      endloop.
      call function 'BAPI_PO_CHANGE'
           exporting
                purchaseorder = p_ebeln
                poheader      = poheader
                poheaderx     = poheaderx
           tables
                return        = return
                poitem        = poitem
                poitemx       = poitemx.
      commit work.
      loop at return.
        write:/ return.
      endloop.
    Regards,
    RIch Heilman

Maybe you are looking for

  • Can you use a debit card to purchase and download apps or does it have to be a credit card

    can i use a debit mastercard to download apps or does it have to be a credit card? I used my debit card to buy and download afew apps but now i cant even download free apps without being asked for my billing info and when i enter the info it says it

  • Reclassification of Debit & Credit balances TC:-FAGLF101 is not happening

    Hi We are trying to run the transction FAGLF101 for reclassification of debit and credit balances under one company we are have 4 company codes , we are able to post and generate entries for 3 company codes and not happening for one company code alon

  • Mapping SRM Portal roles with SRM backend roles

    Using ABAP as UME when we create a user in SRM backend and assign backend roles, then corresponding portal roles should also get assigned to the user so that portal roles are not to be assigned separately by portal admin. Currently for the requiremen

  • Journal Detail Report in XL Reporter

    Hi I am trying to get journal details into a xl report. on the SBODemoUS it is working 100% but on any database with segmentised gl-accounts it doesn't return anything. I have even tested with the sample report from SAP "GL Accounts Posting Details.i

  • Can an iPhone app be made to contain another app?

    I am not talking about the URL scheme method or the iTunes AppStore linking method. I mean is there a way to enclose an app inside another app and switch between them at will?