Send Message alert for a time field

Hello,
I have a finish time field in a memorandum agenda form which I would like an alert (message) sent 2 minutes before the finish time expires.
The script has an error message for the "," on line 4.
var vEnd = Time2Num(ActionsEndTime.formattedValue, "HH:MM") // this is the finish time
var vSec = 2 * 60 * 1000  // time in milliseconds - which is 2 minutes
var vFinish = vEnd - vSec // take away the finish time from 2 minutes to give a new time to trigger to alert
var vcurrent =  form1.ActionsHeaderFrame.DateTimeField1.formattedValue, "HH:MM") // this is the current time field
form1.ActionsHeaderFrame.DateTimeField1.execCalculate() // recalculate a hidden current time field to give the current time
if vcurrent = Num2Time(vFinish, "HH:MM") then  // if the current time equals the finish time - 2 minutes then show message
xfa.host.messageBox("You only have 2 minutes to finish the agenda " ,"Reminder",3,0)
else
endif
Can anyone please advise where the formcalc script needs correcting?
Any assistance will be most appreciated

Thank you for your reply.
I have modified the script as you have suggested:
var vEnd = Time2Num(ActionsEndTime.formattedValue, "HH:MM") // this is the finish time
var vSec = 2 * 60 * 1000  // time in milliseconds - which is 2 minutes
var vFinish = vEnd - vSec // take away the finish time from 2 minutes to give a new time to trigger to alert
var vcurrent =  Time2Num(DateTimeField1.formattedValue, "HH:MM") // this is the current time field
form1.ActionsHeaderFrame.DateTimeField1.execCalculate() // recalculate a hidden current time field to give the current time
if (vcurrent == Num2Time(vFinish, "HH:MM")) then  // if the current time equals the finish time - 2 minutes then show message
xfa.host.messageBox("You only have 2 minutes to finish the agenda " ,"Reminder",3,0)
else
endif
I need help with recalculating the current time field as the execCalculate() will update once and remain static.
This is the function in the current time field for the current time  -  DateTimeField1.rawValue = num2time(Time(), TimeFmt(1))
Is there a way to have the time field show like a system clock time and refresh automatically?
I think this will be the only way I can get the formcalc script to work the way it should.
Any suggestions you may have will be most appreciated.

Similar Messages

  • How to disable an alert for specific time period in SCOM 2012 R2

    Hello,
    Is there any option to disable an alert for specific time period in SCOM 2012 R2
    Regards,
    angs

    No. But you can use the scheduler module in your rule or monitor, which will dictate when the workflow will actively run on the agent - hence disabling alerting for that time period.
    http://msdn.microsoft.com/en-us/library/ff453828.aspx
    Jonathan Almquist | SCOMskills, LLC (http://scomskills.com)

  • Using regular expressions for validating time fields

    Similar to my problem with converting a big chunk of validation into smaller chunks of functions I am trying to use Regular Expressions to handle the validation of many, many time fields in a flexible working time sheet.
    I have a set of FormCalc scripts to calculate the various values for days, hours and the gain/loss of hours over a four week period. For these scripts to work the time format must be in HH:MM.
    Accessibility guidelines nix any use of message box pop ups so I wanted to get around this by having a hidden/visible field with warning text but can't get it to work.
    So far I have:
    var r = new RegExp(); // Create a new Regular Expression Object
    r.compile ("^[00-99]:\\] + [00-59]");
    var result = r.test(this.rawValue);
    if (result == true){
    true;
    form1.flow.page.parent.part2.part2body.errorMessage.presence = "visible";
    else (result == false){
    false;
    form1.flow.page.parent.part2.part2body.errorMessage.presence = "hidden";
    Any help would be appreciated!

    Date and time fields are tricky because you have to consider the formattedValue versus the rawValue. If I am going to use regular expressions to do validation I find it easier to make them text fields and ignore the time patterns (formattedValue). Something like this works (as far as my very brief testing goes) for 24 hour time where time format is HH:MM.
    // form1.page1.subform1.time_::exit - (JavaScript, client)
    var error = false;
    form1.page1.subform1.errorMsg.rawValue = "";
    if (!(this.isNull)) {
      var time_ = this.rawValue;
      if (time_.length != 5) {
        error = true;
      else {
        var regExp = /^([01]?[0-9]|2[0-3]):[0-5][0-9]$/;
        if (!(regExp.test(time_))) {
          error = true;
    if (error == true) {
      form1.page1.subform1.errorMsg.rawValue = "The time must be in the format HH:MM where HH is 00-23 and MM is 00-59.";
      form1.page1.subform1.errorMsg.presence = "visible";
    Steve

  • Sending Messages at a Specific Time?

    Does anyone know if there's a way to keep outgoing messages in your Outbox and not send them immeadietly without Saving for Later?
    Sometimes I'll write an email late at night, but don't want it to send until say 8 a.m. Is there a way to set the message not to send until then or to tell the outbox to send mail at a specific time?
    Perhaps a way to set Automator to send the messages at a speciifc time?
    MacPro   Mac OS X (10.4.8)  

    I laughed because I found the Mail Scripts, and was just about to reply, when I saw that you had posted the answer already, Austin! I'm glad I know about those scripts--they'd be useful for many people who use Mail.
    Well, there you go, bdiesel, question fully answered!
    All the best.
    Power Mac G5 1.8GHz DP, 1.5GB RAM   Mac OS X (10.4.8)  

  • Send error report for quick time and i tunes

    I need some help tried everything that apple has to offer to try to fix this on my own but noting is working i get for quick time error bex and a bunch of other numbers like 7.65.17.80 and 4afa5825 and 000130d and c0000409, and for i tunes applever: 9.0.3.15 modver: 5.1.2600.5755 and offset: 0001b21a, i followed a post that b noir was helping some one out that had the same problem but it never finished it went as far as dl a free malware program i did that and scanned let me know what i have to do next please

    after spending over a hour on the phone to apple im no furhter forward did an itunes update weeks ago and since then i get the message quick time is not installed error 2093 ive tried everything uninstalled reinstalled deleted everything to do wiht apple and even apple support cant help me ive checked the sample movie in quicktime it plays can anyone help so i can have my itunes back please
    lesley

  • Message Alerting for PI 7.1 with Solution Manager 7.1

    Hello together,
    i am trying to get message Alerting of the SAP PI 7.1 to the solution manager 7.1 Alert Inbox (PI Monitoring).
    I cant find a how to or something.
    The following two options are in my mind:
    1. implement in RZ20 an Monitor for PI-> create alert categories and rules -> create metrics for the pi in the solman 7.1 (system monitoring) setup to get these mtes.
    2. implement the old ccms infrastructure
    Goal: get Alerts in the Solman 7.1 PI MON Alert Inbox if some Messages as they defined in the RWB Alert Rules are not transfered.
    Get anyone some know how with this use case?
    Thanks and kind regards

    Hi Mahr,
    Solution Manager 7.1 has a functionality called Technical Monitoring, which keeps a track of all the performance based & availibility metrics of a managed system.
    It can also be used to generate email alerts to a group of intended receipients.
    I would personally recommend this over CCMS. It uses Diagnostics Agent to pull all these details from the managed system & the configuration is very easy to achieve.
    Below is the guide to configure the same -
    http://wiki.scn.sap.com/wiki/download/attachments/269157890/Setup+System+Monitoring+and+Alerting.pdf?version=1&modificat…
    Best Regards,
    Tanmeya

  • I can't find the new text message alerts for every person - help!

    Hi.
    As I frequently check the Apple website, I visited the iOS 4.2 download site. It said that you get custom text tones and 17 new sounds.
    So I updated to get the new things. But then I checked Settings to see the new alerts and what they sounded like. But I only found the same old Tri-tone, glass, horn, etc. There were no new ones.
    So I checked Phone, but there was no custom text message alert option.
    Am I the only one experiencing this problem? I have an 8 month old iPhone 3GS and it works great.
    I am also suspecting that it could be an iPhone 4-only deal.Which would be ridiculous because I would be really upset to see that Apple only cares about the people who cash in their hard-earned bucks on every new Apple gizmo they set eyes on.
    Please help! Thanks in advance

    I understand that it has been answered and has been said that it is for the iPhone 4 only; however, on their website it does not specify that, this is exactly what it states:
    "Messaging with text tones
    Know who’s texting without looking at your screen. Choose from 17 new alerts and assign custom tones for people in your contact list.
    iPhone only."
    If I am not mistaken, "iPhone only" includes every iPhone generation to which 4.2 can be installed in, not just the iPhone 4. If it is in case for the 4 only, then they should have specified and not made a misleading advertisement about it since every iPhone user has been waiting for new tones of any sort since the first iPhone ever came out. Making it available for only iPhone 4 users is a very fowl move from Apple since it's such a basic thing to the phone itself. They should address the issue correctly and make it available for the 3G and 3GS.
    Apple just asked for angry customers with this one and they definitely know it's not fair.

  • For custom tables should we use UTC for date/time fields

    A general question.
    Can anyone confirm that SAP does seem to be moving towards storing date/time in UTC format?
    We're building custom tables and we're making it a standard to store date/time fields in UTC format.
    Regards,
    Lavaughn

    Hello Lavaughn,
    I can not speak for SAP, but from my personal experience TimeStamps are the state of the art to store time date info in db tables. Even with date/Time fields a conversion to the local timezone is necessary. Of course you can reuse your db definition on dynpros. But since UI and business logic will be divided anyway this is also not really a valid point.
    Best Regards
    Klaus

  • Iphone will not show new message alert for email sent to subfolders

    I have successfully synced my iphone with the exchange server so I am getting push email from entourage to my phone. However I have subfolders set up in entourage so that my email is organised. These subfolders are showing on my iphone. Although email sent to subfolders is pushed to the iphone (to the relevant subfolders), when the phone is on the home screen it does not show a new mail alert for those emails. It only shows a new mail alert for emails going to the main inbox. Obviously I need it to alert me if email is coming in to subfolders. Can anyone help with setting this up?

    Try a reset: hold down the home button along with the sleep/wake button until you see the apple, then let go. (No data loss)

  • How to senda single alert for the similar error for the last specified time

    HI,
    We have configured alerts in OSB flow and alert destination as email.
    but we are receiving lot of emails.
    is there any possibility to consolidate alerts from past 30 mins and send as single alert in OSB

    Hi Alfredo Perez,
        Thank you for your reply.
               If payment done directly to the customer account , how this will effect for all invoices. If i have 3 invoices and the DocTotals of the Invoices are like this
            1st - 1,000/-
            2nd - 2,000/- and
            3rd - 3,000/-
      If i pay 3,000 to the customer account , for which invoice this payment is related. whether the 1st and 2nd will close or only 3rd will be closed?
                  I want to know that is there any way to pay for more than invoices from the Incoming Payment is Screen is Possible?
      Thanks & Regards,
    Ramu.

  • Can a field be change in the "Send Message" area for sending emails

    Is it possible to change a field when sending an attachment via the SBO mailer inside of SAP.  I have a client that does not want the "Due Date" to be the date the email recipient sees, they would like another date field.  See the picture below:
    Thanks Joanne

    Hi,
    Not possible to change or add new field this form. Only field name can be changed.
    Thanks & Regards,
    Nagarajan

  • Is it possible to have the Grid Server send an alert for blocking locks?

    All,
    We are deploying a new custom application. I'm the DBA. Our development team wants to be alerted if any processes in this new application are being blocked for more than 30 seconds. I believe that I can setup an notification from the Grid Control to alert me if more than 1 process is waiting but I'm not sure about the ability to alert when a blocking lock is occurring for more than a period of time.
    Does anyone know if this is possible? Or , can anyone give me some points on how I might write a custom notification?
    Thanks in advance.
    John

    OEM provides this metric out of the box though if you wanted to limit the check to a specific type of lock, or application you would have to write your own UDM (User Defined Metric) which is a trivial task. The minimum time interval is minutes but I assume you could use 0.25 minutes to check every 15 seconds, and be notified if it repeats twice (so this would be 2 repeated alarms over 30 seconds and match your criteria, correct?).
    Check the documentation for creating a UDM if you choose to go that route.
    Hope this helps.

  • How do I get an audio alert for Face Time?

    I cannot get my iPad to alert me with incoming calls on Face Time?

    there might be an app for that, but there is no built in feature already on the mac like that.

  • Message alert for email?

    I just got a curve 8900. I have had a blackberry before and am familiar with the menus and all but......
    I can't figure out why when I receive an email through my aol account that is set up I get an alert in both the sms folder and the messages folder. The messages folder has my email in it but the sms folder says 3020 Mobile email OZmail. I was wondering if there is a way to shut off the sms alert when I receive emails.

    nevermind fixed it...

  • Special Message Alert for N95 8G??

    I cannot find it on the phone...does anyone know how I can get it on the phone..?
    Thanks

    A few months ago my friends N95 developed this fault, much to his annoyance, and nothing he did seemed to fix it. My N95 developed the EXACT same problem. this i took not to just be chance, the only similarity i found between our phones that was obvious was that we both had 2000+ text messages in our inboxes (his was 3500) after having emptied my inbox, and removed the battery without turning the phone off first, i found that once again my phone recieved messages and displayed the alerts. once having explained what to do to my friend, his phone once again displayed alerts when he recieved messages. however, im not sure that these conditions are the same with all of you. ill outline what i did again
    Emptied the inbox in one go by marking all messages and deleting them
    then without turning the phone off, i removed the battery
    put the battery back into the phone and turn it back on again (hard reset or something)
    anyway i really hope this helps, please let me know if it does.
    Ben

Maybe you are looking for

  • Two iPhones on same account showing combined call log

    My husabnd and I just upgraded to iOS 8. Same iTunes account, we use google accounts to try and keep contacts, etc separate. Messed around briefly with family share but decided to stick with just sharing account. Howecer, our phones now share the rec

  • Error while testing an application service

    Hi, I have created a project wherein I have imported a standard BAPI as an external service and calling this external service in an application service. Following is the code used for the same: public com.sap.esproj.appsrv.datatypes.CompanyData getUs

  • How to add (move) file (song) to Media library without a copy being left behind?

    A followup to my questions from yesterday. I seem to have fixed the database/folder issues. But here's the lingering problem: For years, up until yesterday in fact, I had a standard, simple method of adding (non-itunes-purchased) files to my iTunes l

  • Upgrading to Itunes 10 problem

    Everytime I try to install Itunes 10 I get a message that says "service 'bonjour service' (Bonjour Service) failed to start. Verify that you have sufficient privileges to start system services." I have no idea what to do. Can anyone help? pls

  • Help-Cubes are not getting started when Analytical server started in 11.1.1

    Installed Oracle Essbase Analytical server along with Shared Services, Provider Services and Integration Services thru EPM v11.1.1.3. Shared services and provider services on Windows 2003 and Essbase Analytical Services and Integration Services on UN