Event for Annotation Creation?

What's the easiest way to detect when the user has created an annotation on a graph? For some reason, creating a free annotation drops the annotation out in space (out of view of the user). I'd like to detect when it gets dropped out there, and center it on the visible graph. Also, it would be nice to change the default color so it's visible on a white background.
Any thoughts? I suppose I could intercept the Create Annotation Shortcut menu selection, and replace the default dialog with my own, but it just seems like there may still be a way to use the built in stuff.
Thanks,
Chris

Chris,
You could always keep track of the length of the Annotation List array and if it increases, then a new annotation has been made.  You can get the annotation list with a property node, so it would be relatively easy to keep track of.  There is a good example of adding the annotations programatically and it uses this annotation list array.  It is found in the LabVIEW examples if you search for annotation and is called "Programmatically Annotate A Graph".
This annotation list is an array of clusters where each cluster is a single annotation.  You can change the color of the annotation programmatically as well by manipulating this annotation list property of the graph.  I hope this helps.
Brian Coalson
Software Engineer
National Instruments

Similar Messages

  • Event for thumbnail creation?

    I'm using a wireless connection to send images to Bridge. Bridge updates the thumbnail pane when the new image is received. This works well if images as selected in descending order. However, the new image is not automatically selected.
    I'd like to do 'something' with this new image (something is undefined - but select it, add metadata, open in photoshop etc. are candidates). However, I can see that an event is fired at all when the new thumbnail is created in bridge. Anybody any ideas, or is this a feature request?
    regards
    Gareth

    Chris,
    You could always keep track of the length of the Annotation List array and if it increases, then a new annotation has been made.  You can get the annotation list with a property node, so it would be relatively easy to keep track of.  There is a good example of adding the annotations programatically and it uses this annotation list array.  It is found in the LabVIEW examples if you search for annotation and is called "Programmatically Annotate A Graph".
    This annotation list is an array of clusters where each cluster is a single annotation.  You can change the color of the annotation programmatically as well by manipulating this annotation list property of the graph.  I hope this helps.
    Brian Coalson
    Software Engineer
    National Instruments

  • Writing own event for Reservation creation BUS object

    I am trying to create a workflow that should get triggered when a new reservation is created for approval. I am using the BOR object for material reservation but it does not contain an event of creation. I wish to create a new event and then add code to the event so that a mail to an approver can be sent. Using the approval received I need to confirm the reservation else render it cancelled.
    I require help in creating the event and writing the event code for it.
    Thanks for taking time to go through my query
    Zankruti Parikh

    Hello Zankruti,
        Indeed, there's no such event for BUS2093. And if you try to do this to object BUS2093, you will come across error: "No change document object for business object type BUS2093".
        Given this, in your case, I am afraid that you will have to extend object BUS2093 by using delegation - then you will be able to add events CREATED or CHANGED, if necessary. Use transaction SWO1 to this, click on "settings" delegate, delegation type = ZBUS2093(for example) - you will delegate your ZBUS2093 type to BUS2093. After that, you will be able to create the events.                                                                               
    Following the idea, I believe that the easiest way to do this is thorugh enhancement MBCF0007 (Customer function exit: Updating a reservation). Click on components, and then you will see EXIT_SAPMM07R_001. Within this exit, you can call SWE_EVENT_CREATE_IN_UPD_TASK (you trigger the events you will have created above).  
    Regards,
    Andre Sousa
    Edited by: Andre Sousa on Jan 4, 2008 9:35 PM

  • Unable to capture Exchange Mailbox Auditing events for email creation

    We are looking to capture Owner mailbox auditing events using the native Exchange 2013 auditing tools (Search-MailboxAuditLog). I have auditing enabled with all actions for Owner, and capture items performed via Outlook, except for new emails created.
    If I create new emails via OWA, I am able to capture the event, but as soon as I go back to Outlook and create a new message, I don’t see anything audited. I also tried this is our Dev environment and seeing the same behavior. Has anyone else experience this
    behavior?

    Hi,
    I have a test in my environment. If I create a message on Outlook as a owner, the mailbox audit logging can't record it.
    If I create a message on Outlook as a delegate, when using the Search-MailboxAuditLog cmdlet to search the audit log, it will be displayed as follows:
    The operation is "SendAs", not "Create".
    Hope this can be helpful to you.
    Best regards,
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Amy Wang
    TechNet Community Support

  • Trace events for Transport creation.

    Hi Guru's,
    I am hoping to run a program when a transport is created or changed. Thus I was trying to find if any events are raised when a transport is created.
    I am struggling to firstly find out how to trace which events are raised and secondly to see if there is a suitable event I can use.
    If anyone has any idea how I can run a program when a transport is changed or created that would be fantastic.
    Ross.

    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
    JServer Release 9.2.0.7.0 - Production
    SQL> execute sys.dbms_system.set_bool_param_in_session(22,658,'sql_trace',true);
    PL/SQL procedure successfully completed.
    SQL> execute sys.dbms_system.set_int_param_in_session(22,658,'max_dump_file_size',10000000);
    PL/SQL procedure successfully completed.
    SQL> execute sys.dbms_system.set_ev(22,658,10046,12,' ');
    PL/SQL procedure successfully completed.
    SQL> execute sys.dbms_system.set_ev(22,658,10046,0,' ');
    PL/SQL procedure successfully completed.
    SQL>
    ==================================
    oracle:/user/app/oracle/admin/INS/udump>ll
    total 36
    -rw-rw---- 1 oracle oinstall 1695 Aug 9 09:29 ins_ora_2530.trc
    -rw-rw---- 1 oracle oinstall 26596 Aug 8 16:37 ins_ora_3352.trc
    -rw-rw---- 1 oracle oinstall 1701 Aug 9 13:53 ins_ora_3630.trc
    oracle:/user/app/oracle/admin/INS/udump>
    ================================================
    parameters from the initialisation file
    db_block_size=8192
    db_block_checksum=FALSE
    background_dump_dest=$ORACLE_BASE/admin/INS/bdump
    user_dump_dest=$ORACLE_BASE/admin/INS/udump
    core_dump_dest=$ORACLE_BASE/admin/INS/cdump
    log_archive_dest="$ORACLE_BASE/admin/INS/archive"
    log_archive_start=TRUE
    log_archive_format="%t_%s.ARC"
    please suggest
    Altaf

  • Event for Cost Planning modification in Project System ( Cj40)

    Hi gurus,
    I'm unable to find a way to raise an event for the creation of cost plannning trought the CJ40. I've considered everything i know, from status change to exits/badi. Has anyone got similar requierements? ? I've seen some similar question in SDN, buy they are unaswered. 
    The only idea I have to create a document change from scratch, but i don't know if it it's possible.
    Any suggestions.
    Regards,
    Jose Rovira Ayza
    Barcelona, Spain

    I'm not an expert in the CJ40 transaction so there could be actually a standard solution. As far as your question is concerned, I will assume that change documents didn't work for you (transaction SWEC). If that is the case, have you considered implicit enhancement spots? If not, they could be an option. Basically, you find where the cost planning is saved. I'm talking about where the record is actually inserted into the database. It will typically be a function module. At the end of that function module, create an implicit enhancement implimentation. You need to check if the creation was successful and if so, create an event using function module SAP_WAPI_CREATE_EVENT. Just make sure you don't set the commit flag if the system is going to commit after the function module is called.

  • Creation of event for background processing

    Hi,
    I need to create a event for background job. in which the job has to be created based on variant in one user exit via sm36 and i have to trigger the same in other user exit.
    thanks in advance
    shiva

    Try using the Function module "BP_JOB_CREATE" .
    rgds
    anver

  • Create new event for BOR object  for vendor creation

    Hello,
              I AM working on workflow.. Requrement is that , when a vendor is created I wanted the workflow to be triggered..
    But I dont find any bussiness object for this...
          Then I have created customized BOR object super type as LFA1. And created new event. Now I need to assign functionlity to this event, that is As soon as the vendor is created this event should be triggered so that I can use this as the start event for the workflow..
    Plz guide me ...
    Regards and Thanks,
    Poornima...

    Hi Poornima,
    Create a subtype and add the event in the BOR.
    Now call the FM  Userexit / BADI.
      CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
        EXPORTING
          OBJECT_TYPE             = 'ZKNA1'
          OBJECT_KEY              = OBJECT_KEY
          EVENT                   = 'ONSAVE'
    *   COMMIT_WORK             = 'X'
    *   EVENT_LANGUAGE          = SY-LANGU
    *   LANGUAGE                = SY-LANGU
    *   USER                    = SY-UNAME
    *   IFS_XML_CONTAINER       =
    * IMPORTING
    *   RETURN_CODE             =
    *   EVENT_ID                =
       TABLES
         INPUT_CONTAINER         = IT_CONTAINER
    *   MESSAGE_LINES           =
    *   MESSAGE_STRUCT          =
      IF SY-SUBRC <> 0.
        ENDIF.
    &******************Reward Point if helpful*************************&

  • Efficient way for Continous Creation of XML Content?

    Hi
    I have a requirement of creating xml content from the data extraced from a udp packet.
    As the packet arrives, i have to generate appropriate xml content from them and keep in the same single xml file.
    Problem:
    Since the xml file is not a flat file, i can't just append the new contents at the end. So if i have to write into xml file, Each and Every time i have to parse the content as a packet arrives and insert the new content under appropriate parent. I think this is not the most efficient way.
    Every time parsing the file may affect cpu time and as the file grows in size, the memory will also be a constraint.
    Other options i could think of
    * Hold the XML Document Object in memory until a certain event like timeout for receiving packet and write into the xml file at oneshot.
    * Serialize the objects containing the extracted packet content to a temp file and after some event, parse and create the xml file at oneshot
    Which is the efficient way or is there any design pattern to handle this situation? I am worried about the memory footprint and performance on peak loads
    I am planning to use JDOM / SAX Builder for xml creation.
    Thank you...

    Lot's of "maybe" and "I think" and "I'm worried about" in that question, and no "I have found" or "it is the case that". In short, you're worrying too much about problems you don't even know you have. XML is a verbose format anyway, efficiency isn't paramount when dealing with it. Even modestly powered machines can deal with quite a lot of disk I/O these days without noticeable impact. The most efficient thing you can do here is write something that works, and see if you can live with the performance

  • Custom Event for Purchase Requisition Create, Change & Delete

    Hello Experts,
    I want to create a custom event which triggers on Purchase Requisition Create, SAP provide's standard event's for purchase requisition release but not for create.
    What are all the steps and how to create a new event.
    Thanks in Adavance,
    Sandhya.

    Hi Sandhya,
    may i know the reason why you are trying to create custom methods.
    You have business object BUS2009(for PR line item wise release) and BUS2105(for PR overall release).
    Both those business object have events RELEASESTEPCREATED (for PR creation) and SIGNIFICANTLYCHANGED(For PR change).
    Even then if you want to create custom events, create a subtype of the standard business object, then click on events, and then select create. Now create your Z-events, say ZCREATED (For creation), ZCHANGED (for changed) and ZDELETED (for deleted). Now select each event, click on edit -> Change release status -> object type component -> to be implemented. Follow the same for all the events. Then select each event, click on edit -> Change release status -> object type component -> to be released.
    Now click on your custom object, click on edit -> Change release status -> object type component -> to be implemented.Then click on your custom object, click on edit -> Change release status -> object type component -> to be released.
    After this in SWEC tcode, click on new entries. Select change document object as BANF, business object as say ZBUS2105 and event as ZCREATED. make sure radio button on create is checked.
    Similary create entries for ZCHANGED event and ZDELETED.
    Select on change and on delete radio button for event ZCHANGED and ZDELETED event respectively.
    let me know if you have any queries.
    Regards,
    Raj

  • Workflow event for  material reservation(mb21),QA02 transaction

    Hi,
      I created material reservation(mb21), but no event was triggered for the transaction.
      I checked for event in swel.(event trace is on).
      please let me know how to handle this.
      please also let me know the event of qa32.

    Here you go:
    MB21 ==>
    1. Create a subtype of BUS2093. (Through SWO1 T.code)
    2. Create an event "Created".   (Through SWU_EWCD T.code)
    QA32 is a report for Inspection Lot. Hence I infer you probably want creation event for a inspection lot.
    QA01 ==> Inspection lot
    BUS2045    --> Inspection lot
    Follow same steps of 1 & 2 above for the "Created" Event

  • Event for dropdown selection

    Hi.
    I am working on CRM 2007 icwebclient. My requirement is for BP creation either individual or organisation depending on ROLE select mandatory fields are changed.
    If role 'Prospect' is selected then few fields are mandatory or if 'sold-to-party' is selected more fields are madatory..
    Now which event is working behind this dropdown selection. where i have to write my code. How to set fields 'mandatory' at design time. soon reply would be appreciate.

    Hello,
    as this really seems to be a big Issue for people. Thought as developers you might explore my hints on your own.
    For switching the configuration:
    Implement the P-Getter for the attribute on the context node with the following code:
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_server_event.
          rv_value = 'my_event'.
      endcase
    This will trigger a roundtrip. We do not need to handle the event.
    In your view controller implementation class redefine the method DO_CONFIG_DETERMINATION:
    METHOD do_config_determination.
    * Switch configuration that is used based on field value.
      DATA:
        lv_value         TYPE              char2,
        lv_object_type      TYPE              bsp_dlc_object_type       VALUE '<DEFAULT>',
        lv_object_subtype   TYPE              BSP_DLC_OBJECT_SUB_TYPE   value '<DEFAULT>',
        lr_node        TYPE REF TO       if_bol_bo_property_access.
      CALL METHOD super->do_config_determination
        EXPORTING
          iv_first_time = abap_false.
      lr_node = typed_context->some_node->collection_wrapper->get_current( ).
      CHECK lr_node IS BOUND.
      lr_node->get_property_as_value(
        EXPORTING
          iv_attr_name = 'SOME_ATTRIBUTE'
        IMPORTING
          ev_result    = lv_value ).
      lv_object_type = 'MY_UI_OBJECT_TYPE'.
      CASE lv_value .
        WHEN 'SOME_VALUE1'.
          lv_object_subtype = 'JIMBOB'.
        WHEN 'SOME_VALUE2'.
          lv_object_subtype = 'BUBBA'.
      ENDCASE.
      me->set_config_keys( iv_object_type          = lv_object_type
                           iv_object_sub_type      = lv_object_subtype
                           iv_propagate_2_children = abap_true ).
    ENDMETHOD.
    Just paste the above coding into the method.
    What it does:
    1. Get the value you want to check from one of the context nodes.
    2. Switch the UI Object type (Yes you have to define it in customizing)
    3. Switch the UI Sub Object type on base of the field value. (Yes you have to define your own sub object type, this is done via a class that is assigned to your UI Object type in customizing)
    For the other solution: As mentioned I have not tried it myself.
    The variable on the view controller I am talking about is CONFIGURATION_DESCR of interface IF_BSP_DLC_CONFIGURATION. It has got a method GET_CONFIG_DATA that will give you the XML stream and a method SET_CONFIG_DATA. Putting the changed XML back.
    If you had done a were used list for at least one of these methods you would have seen how SAP uses them.
    One example: CL_BSP_WD_OVW_VIEWSET->DO_INIT_CONFIG() however this will not help you on your problem.
    I know there is a method that will decode the XML stream in the single fields with their properties and there is also a counter part to it. I am afraid that many people will use it to bypass the configurations. This will make it very hard to debug the coding. Thus I will not name the class/method here!
    For the sake of maintainability please stick to the first method.
    I have seen people getting the XML and then hardcoding another part into it. Then someone changed the config and an error occurs. You try to find out why, but the original developer is no longer there and has not documented anything...
    cheers Carsten

  • Duplicate check on search term for BP creation in CRM

    HI,
    I want to do a duplicate check on search term for BP creation in CRM.
    i found one BADI ADDRESS_SEARCH. But the method address_search is not getting called.
    Is there any other BADI available? how can I handle this issue?

    hello,
    BP is BDT (Business Data toolset) enabled (you can check it by adding break point in FM BUS_PBO and executing BP transaction). You can add your check directly to standard view (the check will be executed each time when user pushes enter) or you could add you check to appropriate action (during saving etc.) there are number of actions which you could use it depends on your requirements. You can find a lot of info about BDT (if you are not familiar) in Wiki.
    br,
    dez_

  • Functional module for automatic creation of pur requisition & pur order

    hello,
    what is the functional module for automatic creation of puchase requisition and automatic creation of purchase order which we will assign in action box in service order processing management.
    please let me know as early as possible
    regards,
    rajesh kumar raju

    Hi,
             Please check with following.
    IDOC_INPUT_ACC_PURCHASE_REQUI
    IDOC_INPUT_ACC_PURCHASE_ORDER
    /ISDFPS/OR_PURCHASE_ORDER_CR
    BS01_PURCHASE_DOCUMENT_CREATE
    CO_MP_CREATE_PURCHASE_ORDER
    Thanks & Regards
    Sadhu Kishore

  • When previewing images by clicking on the thumbnail in an Event for example, I've been finding that many images preview in a 'zoomed in' way so only a small part of the photos is previewed in a highly magnified view.

    When previewing images by clicking on the thumbnail in an Event for example, I've been finding that many images preview in a 'zoomed in' way so only a small part of the photos is previewed in a highly magnified view.
    Initially I could find no cause. Then I tried right click - Edit and on the affected images, always get this warning:
    "Image Cannot Be Edited - This photo was previously edited with another application or with an early version of Iphoto. Duplicate this photo to edit it." and a "Duplicate To Edit" Button is displayed. 
    The external Editor defined for iPhoto is Adobe Photoshop Elements.
    Now, I reckon the MUST be others out there affected by this same apparent Preview bug, yet my searches have not revealed any answers.  Also seems impossible to find a contact number for adobe???
    Thanks

    Start '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Firefox in Safe Mode]''' {web Link} by holding down the '''<Shift ''(Mac Options)'' >''' key, and then starting Firefox. Is the problem still there?

Maybe you are looking for

  • Custom Validation Routine not getting triggered

    Hi, I need some information regarding the Validation Routines that is maintained in SPRO. I created a validation routine and activated it. And also I maintained all the configurations needed. But when I create an ASN in VL60, the program control is n

  • Opening HTML attatchments

    Greetings, I was recently sent an agreement form or contract as an attachment to an email, but when I opened it, it was all script or gibberish or whatever it's called. In the end, I had to have the document faxed to me. Applecare told me that there

  • Exporting music from iTunes

    Hi, I wanted to know if I could export my entire library into folders of Artists and Albums as they are listed in iTunes..and keep their artwork? I see the export library option under File, but it exports in xml which I'm assuming isn't what I want..

  • Dynamic screen layout - Hide Field Group until user selects country

    Hi. Does anyone in the PCUI commuity know how to hide a particular reference field group (field group that contains several fields) and only make it visible when the user selects a particular value from a dropdown in a differen field group on the sam

  • Hbox in view stack does not update width

    Hi there,   I'm working on flash builder and I have four hboxes nested inside a view stack. I dynamically populate each hbox with images grabbed from the database. For some reason only the visible hbox correctly updates its' width while the other 3 h