Is it possible to call a function when a specific event happens?

Hi everyone,
I would like to pop up an alert when a user deletes a named destination marker. I thought this would be a no-brainer, but I'm having trouble finding examples of scripts that handle events.
Is this even possible? Any ideas on how to go about this would be greatly appreciated.
Thanks,
Heather Ayer
PS - I always say this when I post, but many thanks to all who contribute to this forum. I'm still learning and don't post much, but I read each question and answer. So, thanks!

Thanks, Rick!
Your info was very helpful. I did consult the list of “monitorable” events and deleting an anchor is not on the list. But, it’s good to see what is available for future projects.
I was trying to prevent deleting of a single anchor, but instead I’ll move on to the next component of comparing all the anchors to a .csv file. I know I’ve seen posts about this before. So, I’m off on another fact finding mission.
Thanks again,
Heather A

Similar Messages

  • Code to call a function when enter key is pressed

    hi all,
    In a table control program i need to call a function when i press enter key...
    but im not able to do that since the function is always called when i press a push button on the screen.... can any one help me in this.. please....

    Hi John,
          You are not getting any value in SY-UCOMM when you press "Enter",because the function code is not set for 'Enter" key in "Function Key" of the GUI-STATUS..
    First define some fucntion code say 'ENT' for the Enter button available in "Fucntion key" of the GUI status.Once you done and activate the program and test it.The function code which u defined will be coming to SY-UCOMM field when you press 'ENTER" button and you can handle the various fucntionality whichevcer you want on "ENTER" .
    Eg:
    case sy-ucomm.
    When 'ENT'.
    Endcase.
    Regards,
    Vigneswaran S

  • Is is possible to call a function or method before JVM exits ??

    Hi All,
    Is is possible to call a function or method before JVM exits where System.exit() is used.
    I am calling a program where System.exit is used. i need to call a function before the JVM exits.
    Please help me.
    Thanks,
    J.Kathir

    How to call the method ? Did i have to call the shudown hooks method in my main class ?
    Is it possible to have in subclass?
    is the below code is correct ? i am calling a class before System.exit is called....
    java.lang.Runtime.getRuntime().addShutdownHook(...My Own Class()....)

  • Is it possible to call Normal function Module from WD4A , Not RFCs

    Is it possible to call Normal function Module(FM) from WebDynPro for ABAP , Not RFCs

    There is no difference, unless you are specifically calling the RFC to connect to another system. If so, then you need to add the DESTINATION keyword to the function call and specify the destination name. This name must be defined in SM59.  But, if you are not going to another system, you can call the RFC the same way you call the regular function module.
    REgards,
    Rich Heilman

  • Call a function at a specific time

    I am working on a large java project, and i need a way to call a function at a specific time(midnight of every night). How can i do this?

    I am working on a large java project, and i need a
    way to call a function at a specific time(midnight of
    every night). How can i do this?If your JVM is running all the time, use a [url http://java.sun.com/j2se/1.5.0/docs/api/java/util/Timer.html]java.util.Timer. Otherwise, it's an OS thing. You'll have to set up a cron job of some kind.

  • SCOM 2012 R2 - Generate an alert when a specific event will not come in specific time range

    Hello SCOM people,
    I need to figure out what kind of monitor shall I choose for my monitoring of a specific event. I need to generate an alert when no specific event was generated by server.
    Our company uses FIM 2010 with scheduled tasks, after each completed task is generated an event to application log. When sync is stuck or something is wrong no event will come to application log and I need to be warned. Tasks run each 30minutes and there
    should not be an hour break between the previously created event.
    I hope it makes sense :)
    Thank you
    Liibas

    Hi Liibas,
    That sounds like a good scenario for using Orchestrator and the SCOM Integration Pack, since you can have time-triggers, etc. to check for Alerts and then trigger a Runbook to email someone if the Alert does/does not appear. 
    Please remember to click “Mark as Answer” on the post that helps you.
    AdinE MCSE, MCSA, MCITP, MCTS; (Specializing in System Center and Private Cloud)
    2015 Microsoft MVP in System Center Cloud and Datacenter Management
    LinkedIn: http://ca.linkedin.com/in/adinermie
    Website: http://micloud.azurewebsites.net

  • Call a Function when switching tabs in TabbedPanel

    I am using Allan Jardine's DataTables javascript library , along with the Spry TabbedPanel. I have one table in each of a number of Tabs. The table in the tab opened by default (or if I use ShowPanel()) is fine. However, if I switch tabs, the other tables, which were hiden when the page was opened,  are not correctly initialised, and don't display correctly. Doing anything that causes the displayed table to be redrawn results in the table displaying correctly, and from then on I can switch tabs and the tables are fine.
    DataTables has an API function fnDraw(), which will cause a specified table to be redrawn. Is it possible to cause TabbedPanel to call a user specified function when the tabs are swapped, so I can call fnDraw()? I think this woiuld solve my problem.
    Thanks
    Ron

    Thanks.
    But I found a simpler way. At the end of the jQuery(document).ready(function(), which initialises the datatables, I added
    var ret=TabbedPanels1.showPanel("expiredquotes");
    oTable2.fnDraw();
    var ret=TabbedPanels1.showPanel("confirmedquotes");
    oTable3.fnDraw();
    var ret=TabbedPanels1.showPanel("openquotes");
    Which opens each of the "other" tabs and redraws the respective DataTable while they are "visible". Then at the end I display the 'default' Tab. I only need to do this once, when the page is opened, after which the tables are correctly formatted.
    Regards
    Ron

  • Is it possible to call CF functions dymanically?

    Is it possible to call a ColdFusion function dynamically? For
    example you might have a date variable: myDate that you want to
    apply a ColdFusion date function to. However, the function itself
    needs to be dynamic because you might want to call "dateFormat",
    "timeFormat", "dateAdd", etc.
    Is there a way to evaluate an expression like this?
    <!-- defined the function to call and encapsulate the
    dynamic variable name with brackets -->
    <cfset functionToCall =
    "DateFormat([myVariable],'MM/DD/YYYY')">
    <cfset myDate = CreateODBCDate('03/19/1977')>
    <!-- now replace the bracketed name with the actual
    variable data (myDate) -->
    <cfset fullString =
    ReplaceNoCase(functionToCall,'[myVariable]','#myDate#','ALL')>
    <!-- display the output -->
    <cfoutput>
    #evaluate(fullString )#
    </cfoutput>
    What I get here is an error message because there are invalid
    characters in "fullString". When I simply cfoutput fullString the
    text it produces looks perfect, its just that I need to find a way
    to evaluate it.
    Any ideas?
    Thanks for taking the time to help.

    presumably, which function you need to use depends on some
    condition...
    so you can just use a <cfif> or <cfswitch> block
    to check the condition
    and use appropriate function...
    you can even encapsulate it into your own function that uses
    built-in cf
    functions depending on some other argument passed.
    e.g:
    <cffunction name="myveryowndatefunction">
    <cfargument name="mydate" required="yes">
    <cfargument name='myotherargument" required="yes">
    <cfif arguments.myotherargument eq something>
    <cfreturn use_one_cf_function>
    <cfelseif ...>
    <cfreturn use_other_cf_function
    <cfelse>
    <cfreturn use_yet_another_cf_function>
    </cfif>
    </cffunction>
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

  • Is their a possibility to call SDK functions from TestStand directly?

    Hello!
    I want to call a function from the Windows SDK.
    Is this possible?
    Regards,
    Brosig
    Using TestStand 3.5 and Windows XP

    Brosig,
    sadly i dont know what the error with the pdb-file could be. but as far
    as i see from the description to the function found here, there should
    be no such dependency.
    please take a look into the "requirements"-section of the link. it
    seems that kernel32.dll is sufficient for usage of the function. and
    for myself, i never had such problems when using the kernel32.dll.....
    one problem could be the type of the parameter you are using. i know
    that there are sometimes odd issues on SDK when the parameters do not
    fit exactly the needed type.  so make sure that all strings are
    null-terminated and the buffers you pass are preallocated!
    Norbert B.
    Edit: forgot the link.....
    Message Edited by Norbert B on 12-22-2005 09:31 AM
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Call a function when the active document is closed

    Hi friends
    I have a portion of my script (at true a specific function) that I´d need to be executed every time the user close the app.activeDocument in Photoshop.
    I know there´s a Photoshop script called "Script Event Manager" where we can associate actions and scripts with events (like closing the document). I´d not like to use this script because..as I told...it´s not my entire script to be runned when closing a file..but only a function.
    Tried to search in the Script Event Manager for any event called "onClose" () but sure there´s nothing.
    How could I insert an event in the body of my own script that calls a function every time user close the active document?
    Thank you a lot for the help
    Best Regards
    Gustavo.

    As I said before the close event is really not that useful. In addition to the document already being closed the event descriptor will only have the path to the closed file if it was saved as part of the close event.
    But if you want to play around with this to see if it will be helpful to you here is one way. You will need to add the notifer. This only needs to be done once unless it is removed.
    app.notifiersEnabled = true;
    app.notifiers.add( "Cls ",new File('~/desktop/closeEventHandler.jsx') );
    Then for the event handler script, something like this.
    try {
        if (arguments.length >= 2) {
        var filePath;
        var desc = arguments[0];
        if( desc.hasKey( stringIDToTypeID('in') ) ) filePath = desc.getPath(stringIDToTypeID('in'));
        if( filePath != undefined ) alert( decodeURI( filePath ) );
    } catch (e) {}

  • Web Interface - Call a function when web interface starts

    Hello,
    my problem is to call a function (fox formula) when the web interface starts. This function may execute only once.
    Can somebody help me?
    Thanks
    Stefan

    Hi,
    1. Create a custom class ZCL_BPS in SE24 inheriting the properties from superclass CL_UPWB_BSP_APPL.
    2. Redefine the method LOAD of this class ZCL_BPS and call your FOX formula over here using function module API_SEMBPS_FUNCTION_EXECUTE.
    eg. code
    METHOD LOAD .
    TRY.
    CALL METHOD SUPER->LOAD
      EXPORTING
        APPLICATION_NAME = APPLICATION_NAME
      RECEIVING
        APPLICATION      =  APPLICATION.
    CALL FUNCTION 'API_SEMBPS_FUNCTION_EXECUTE'
      EXPORTING
        I_AREA           =  'ZAREA01'
        I_PLEVEL         =  'LEVL001'
        I_PACKAGE        =  'PACK001'
        I_FUNCTION       =  'PFUN001'
        I_PARAM          =  'FOXF001'.
    ENDTRY.
    ENDMETHOD.                    "LOAD
    3. Replace CL_UPWB_BSP_APPL  by ZCL_BPS in the Application Class property of your Web Interface.
    This works for sure.
    Please grant points if it solves your purpose.
    Regards,
    Deepti

  • Call JavaScript function when my Condition is true in JSP

    Hi all,
    in my jsp i wanna call a javascript function (user defined) when a particular condition si met. How to go about it ? Can anyone plz help me out. Help appreciated.

    hi
    yes! we can do it as follows:
    in the JSP code u can include the javascript function
    first u declare the Javascript function before the </head> tag in the HTML
    and in the JSP u can just call the function which is as follow:
    <script>call the JavaScript function()</script>
    for example:
    <html>
    <head>
    <script language="JavaScript">
    function sayhi() {
    alert("hi");
    </script>
    </head>
    <body>
    <%
    zStr = request.getParameter("str");
    if(zStr.equals("true")) {
    %>
    <script>sayhi();</script>
    <%
    else {
    %>
    </body>
    </html>

  • Is it possible to call a function with the same name from 2 different dll's at the same time.

    I'm trying to call a function ( F ) form 2 different libraries ( A.dll and B.dll ) at the same time. The first lib loaded determines the function F. A->F and B->F have same interface and name but different implementation.

    Hi,
    I tried it with two dll's, both with the same interface, and at the same
    time, in the same VI. The popups even appear at the same time.
    But now I understand the problem... Both dll's are created by LabVIEW! If
    they are not (or one is not, and the other is), this is no problem.
    And VI's in memory cannot have the same name. LabVIEW doesn't care if VI's
    are in a dll or not.
    This might not help, but if you want to make some sort of "plug in" system,
    you might consider using llb's. By loading VI's dynamically, you can select
    the path from which they are loaded. You must unload (close all references)
    one before the loading the other, or the same problem will occur. If you go
    this way, I consider a different approach. Make on
    e library (or even a dll)
    that has the interface you like, this is the "loader". Now make several
    "plug in"'s, with the same interfaces. The name of each function in a plug
    in is a concatenation of the library name and the function name. The loader
    has one extra function, that loads (and unloads, when done) references to
    all desired libraries to use (the names of the functions can be figured out
    easily). All that the loader functions do is dynamically call the library
    functions. You can use a call by reference node for this (you can use the
    connector pane or the loader vi, since the interface must be the same!).
    If you go this way, I guess the loader library can be converted to a dll...
    Hope this helps.
    Wiebe.
    "rsam" wrote in message
    news:[email protected]..
    > Thx Wiebe,
    >
    > did you load both dll at the same time? For example in 1 vi. Somehow
    > the first loaded function keeps to overrule the second. Notice that
    > the interface is
    exactly the same.
    >
    > I loaded 2 dll created in Labview with results described above.
    >
    > Regards Ruud

  • How to call jquery function when i close modal dialog box ?

    Hello,
    I need to call one jquery function when I click on close button of modal dialog box.Can anyone please let me know how can I implement it ?
    Thanks,
    Dipti Chhatrapati

    Hi Dipti,
    If my understanding is correct, you are using SP Modal Dialog and want to track the close event of this dialog. Then you may use
    dialogReturnValueCallback parameter of Options variable. Follow is the code sample:
    function ShowModal() {
        ExecuteOrDelayUntilScriptLoaded(function () {
            var options = {
                url: 'page1.aspx',
                tite: 'Add Title',
                width: 800,
                height: 450,
                allowMaximize: true,
                showClose: true,
                dialogReturnValueCallback: scallback
            SP.UI.ModalDialog.showModalDialog(options);
        }, 'sp.js');
     function scallback(dialogResult, returnValue) {
          if (dialogResult == SP.UI.DialogResult.OK) {
               // call your Jquery method here...
    Thanks, Ram

  • Tableview: Call Javascript-Function when row is selected

    Hi everybody,
    I have created a tableview with selectionmode lineedit.
    Now, I'm looking for a way to call a Javascript function when a row is selected.
    The value of the selected row shall be passed to this function.
    How can I sove this.
    Best regards
    Alberto

    HI Alberto,
    referr to JavaScript to check if any row is selected or not..!...
    Even I am waiting for an answer...Now atleast I have a partner in th wait..!!
    Thanks,
    Tatvagna...

Maybe you are looking for

  • I want to change my iphone 5 for a new one i wanna know if u guys replace it

    I would like to exchange my old iphone 5 for a new one

  • Mini Controlled by MBP very Slow

    Hi all, i control my headless Mini with my MBP and sometimes although my wifi is at 7MB up/1.5MB down speeds the respond time for communication from MBP to Mini is exceptionally slow. On Screen Share on the MBP i do something or press a command on th

  • Are there any games on an ipod 2nd generation that will download?

    are there any games on an ipod 2nd generation that will download? my daughter was given one from a family member and we haven't been able to download any apps to it. It tells me I need to update by OIS. But you can't for this generation. Does any gam

  • JTabbedPane content inserted at selection time

    Hi, I have a jtabbedpane with a few tabs. I want to insert the content of each tab at selection time. That means by default the content of the first tab is inserted. When I select the next tab it should retreive data from a DB and update this selecte

  • Help adding my contacts back into iTunes

    My hard drive crashed recently, so now that i have a new one I'm trying to add all of my old information back on my computer which includes what I had in my iTunes before. The music is easy, but when I plugged my iPhone in to update the software it w