Programmatically trigger cursor release?

Hello,
I am using the Actor Framework to develop a large application in LabVIEW. I have cursors on a graph that trigger data to be populated into actors using an event structure and a cursor release event. The data is also populated (initialized) when the program starts.
I currently accomplish this initialization using a structure below, and a value change event on the 'Init' Boolean:
also described here:
http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Add-First-Run-event-on-event-structure/idc-p/1044975#M...
The problem with using the "init" Boolean is that I duplicate the same code within two events: "init":Value Change and "graph":Cursor Release events (the two event do the exact same thing).  Does anyone know a slick way combine these the Init event with the cursor release event so that the cursor release event fires on startup? This way I would not have to duplicate my code in two places...
I have searched and didn't find exactly what I needed, Sorry if this has been covered somewhere in the forum.
Solved!
Go to Solution.

Where will your common code run? In the Event Structure? Could you just register for both events:
Or register the event separately to send it to the nested actor:

Similar Messages

  • Programmatically trigger method TreeCell.startEdit() to be invoked

    If a TreeView is assigned a cell factory that creates a TreeCell with edit capabilities, is it possible to programmatically trigger method TreeCell.startEdit() to be invoked to put a selected tree item in edit mode? Currently a user can edit the name of a tree item by selecting it, but I would also like to provide a context menu that contains a rename menu item similar to Windows Explorer, which would programmatically trigger method TreeCell.startEdit() to be invoked for the selected tree item. Is that possible?
    Thanks.
    Stefan

    This turned out to be a lot easier than I first thought. Method TreeView.edit(TreeItem<T> item) puts the selected tree item in edit state.
    Cheers.
    Stefan

  • Xcontrol Cursor (XY Graph) with cursor release

    I try to build a Xcontrol who give the values of a cursor.  The only data I send to the Xcontrol is the reference of a XY Graph.  It is working fine when using the boolean left  and right (see drawing).  When I try to to utilize the "cursor release event" (in the Xcontrol) it is not working and the cursor freezes, any idea?
    Jean-Marc
    Jean-Marc
    LV2009 and LV2013
    Free PDF Report with iTextSharp
    Attachments:
    Xcontrol image.jpg ‏50 KB
    Curseurs XY.zip ‏97 KB

    Jon S. wrote:
    Hello J-M,
     I think I figured out what was causing the hang in LabVIEW when you moved the cursor.  You need to put an Unregister for Events at the output of your Event Structure in the Facade of your Xcontrol.  After I did this LabVIEW didn't hang.  The values didn't update in your cluster but the hang didn't occur.  You might need to do some more coding the case for "Mouse Up".
    This actually is bad advice.
    What it does is unregister the event refnum every time the VI is run, this means that the event only is registered during execution of the XControl.
    The fact that the FP gets locked means that there is a valid registration that has the 'Lock FP during processing'==True.
    For dynamic events you need to right click on the registration node and deselect that option.
    What might work is setting the timeout of the event node to -1 and not stop the while loop. However I am not sure what happens in these cases.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • ML81N Enhancement to trigger the 'Release Strategy'..very urgent !!

    Hi Guys,
    ML81N work in a manner such that if the net amount for any PO/Service entry is less than $2500 then its 'Release Strategy' tab is not active, because the minimum value should be 5000$ to trigger the 'Release  Strategy'.
    I have a requirement where i have to make that tab active and select the Lowest Release Strategy (the one for 5000$) even when the amount is less than $2500.
    I have already tried with the ser exit EXIT_SAPLEBND_003, its a blank user exit and the structure available is CESSR.
    Can any one tell me how to activate the 'Release Strategy' tab and the lowest Release stratedy should be selected ????
    What i have investigated is that once i will set the Release Strategy to the lowest Release stratedy then that tab will automatically become active.
    Please tell me how to select the lowest Release strategy using the CESSR structure ?
    Points will be awarded...
    Thanks
    Rahul

    Use this exit.
    MM06E005

  • Re-trigger PO release on any change in PO

    hi,
    I have set a release strategy for PO.
    Now, the requirement is to re-trigger the release in case of any change in PO.  I searched the forum and found a reply regarding setting the release indicator accordingly i.e. to 3.
    But, my question here is can we set only 2 release indicators i.e. one when PO is not released and another when PO is released --> can't we have more than 2 release indicators ??
    Secondly, i also tried changing the release indicator - changeable code to 3 but still on changing the PO value - release is not re-triggred.
    Do i need to do any other setting or what is right process for this.
    Awaiting the reply.
    Thanks to all in advance.
    Regards,
    Laxmi

    Hi,
    Go for  changeable indicator 6 in release indicator
    OR
    Go for User exit EXIT_SAPLEBND_002 or check to modify function module ME_REL_STRATEGIE_EKKO for to reset existing release strategy for reduced quantity and/or values.
    Regards,
    Biju K

  • To trigger Overall release for PR workflow (WS20000077)

    Hi,
    I want to know that how can i trigger overall release for PR workflow ( WS20000077 ) of BUS 2105.
    rightnow in my system workflow WS0000038 is activated & when i perform ME51N it is triggred perfectly. and in SWEL BUS2009 is triggered, but it wont trigger BUS2105.
    So how can i trigger BUS2105 & instead of BUS2009, so it will trigger WS20000077 workflow.
    Which seetings needs to be done in SPRO, so it will trigger BUS2105?
    And please give me some idea about overall release for PR workflow & item level release for PR workflow.
    Regards,
    Smit

    Hello,
    Right now, the release strategy is configured item-wise for the PR and so the business object BUS2009 is triggered. To make the release of PR from Item-wise to overall, please make the following configurations in SPRO
    SPRO -> MM -> Purchasing -> Purchase Requisition -> Define Document Types and check the 'OvrelReq' checkbox and then
    SPRO -> MM -> Purchasing -> Purchase Requisition -> Release Procedure-> Procedure with classification->Set Up Procedure with Classification and maintain the Release Groups by checking the 'OvrelReq'  checkbox.
    Once these configurations are done, first check whether the event 'RELEASESTEPCREATED' is published in the system from the event log(SWEL). Once an entry is found,deactivate the linkage between template WS0000038 and activate the linkage of the template WS20000077 which is for the BO BUS2105.
    Hope this will help.
    Thanks,
    Samson

  • On-Lock Trigger and Releasing the Lock

    I have a data block which has a View as a Datasource.
    I want to update some fields from that View so I use On-Lock and On-Update triggers.
    In the On-Lock trigger I use a select for update nowait to lock the row.
    My problem is that if I don't save the changes the lock is not released.
    My problem is reproduced with the Following steps
    1. Open two sessions of the form
    2. Update field in one session. (The On-Lock trigger is fired)
    3. Try to enter query in the Form.
    4. The message Do you want to save the Changes? appears.
    5. I answer No
    6. I go to the second session
    7. I try to update the same row and I get an error cause the Row is Locked.
    Should I code another trigger? Should I issue a rollback somewhere ?
    Thanks in advance.

    Francois wrote:
    Forms_ddl('ROLLBACK') will only rollback explicit SQL orders (Nothind done by Forms itself), so the risk is minimum because you lock the record when entering it then unlock it when exiting it.Is that documented anywhere? How can the Oracle database server tell the difference between row locks set by Forms automatic processing and locks expressly set by his "select for update"? Unless things have changed, a ROLLBACK removes everything... all locks, all posted changes, etc. You get a clean slate, ready to start over.
    Dimitris:
    I think you're going to have to re-think your application. I do not believe there is any way to unlock specific rows from one block, while preserving your uncommitted changes in others. Oracle and Forms simply do not work that way.
    ...unless you start setting savepoints each time the user goes in and updates a different block. Then you could potentially determine which savepoint was set, and do a rollback to savepoint. And managing that on a form with multiple updateable blocks could be a nightmare if the user bounces around from block to block making changes here and there.
    It would be easier to just stop the user when he decides to enter a new query. If he has updated any other blocks, or even made changes to the block in question, then he needs to first commit, or you need to clear the entire form with a CLEAR_FORM(NO_VALIDATE,FULL_ROLLBACK);

  • Problem to trigger PO Release Workflow

    Hello experts,
       I am working in a workflow to release PO.For this I have copied the standard workflow template wf_po_rel(20000075).
    In my custom workflow I have used RELEASESTEPCREATED
    of BUS2012 object as triggring event(as like the standard workflow).
      Now when I am creating a new PO the workflow is not being triggred.But I am receiving a message in my workspace inbox with title:Error in event receiver.
    And the body is as given below.
    Error processing following event linkage:
    BUS2012 RELEASESTEPCREATED WS99900005
    Following error occurred:
    SWF_RUN 594
    Message text:
    Import container contains errors (are any obligatory elements missing?)
    Event container appended as attachment.
    Event linkage with errors deactivated.
    Can anyone suggest what to do to recover the problem and successfully trigger the workflow.
    Thanks & Regards
    Manas
    Edited by: Manas Santra on Feb 13, 2008 7:55 AM

    Hi JMB,
      I have gone to SWE2 transaction in 200 client.
    There I saw that the corresponding type linkage was unchecked.I double click the row and check the Linkage Activated check box and save that.After that  I check the start event tab of my workflow template and that is active now.
    But when I create a new PO in 200 client the workflow has not been triggred.But a message has been received in my inbox from Workflow-System...
    Title:Workflow 388121 set to status ERROR
    and the body like as given below..
    Please repair the suspended workflow
    Context Information:
    ID: 388121
    Work Item Text: Workflow for PO release
    User: WF-BATCH
    Language: E
    Press 'Execute' to display the workflow that has errors.
    Regards,
    Manas

  • Can I programmatically trigger a menu item tag selected event?

    I am trying to trigger a menu item selected event using built-in vi's. I want my Handle Menu vi to handle the case where the user checks on a boolean control as well as slected the menu option. I don't want to use POSTMESSAGE with acceleration key combination. Are there any built-in vi's which can "post" such a message?

    I have a similar situation and understand why adding a message to the menu queue would be an elegant solution to the problem.
    I have lots of menu bar selections in my program, and I would like to set up a button bar like most applications now have. To do this using the "in parallel" way becomes a ratsnets of wires and would take up a lot of window space.
    I have attached a file that is a good example of how to solve this problem with Event Structures in LabVIEW 6.1. It doesn't take up much additional diagram space and it can be quickly and easily reconfigured.
    It would be nice if future versions of LabVIEW had a more integrated button bar.
    Matt
    Attachments:
    Menu_and_button_bars.vi ‏68 KB

  • Trigger PO release strategy

    How to retrigger PO release strategy after delete the items in ME22N?
    It only be retrigger when we increase the price.
    Any user exits dat retrigger the changes made?
    Where is the user exits located?
    Or any standard configuration need to be done.
    I already set the Release indicator, changeable = 6, and % = 0.
    I am using 470 version.
    Please help to provide some solution.
    Thanks.
    Edited by: Elaine Tang on Jul 3, 2009 8:02 AM

    Hi,
    As for as I know, SAP has not provided the retrigger of PO release strategy if the Value of PO is decreased than the released PO price. It will only retrigger if PO price is increased than released one.
    There is no User exit available for this, you can use the Version management usuage for any changes made in PO using the availble user exits.
    There are lot of discussions done on this Retrigger of PO release strategy for any changes in PO -- but till now there is no positive result. Don't why SAP has not taken this issue very seriously.
    If any others has found any solutions on this, let them share the information on this .
    rgds
    gsc

  • How can I programmatically retrieve Cursor Locations from 3D Measurement Tool window

    I like to know if there is API which allows me to retrieve cursor locations shown on the 3D Measurement Tool window.
    Thanks

    I'm sorry I missed this request. :-(
    To accomplish your goal, you could use a MouseEventHandler, which would report back mouse positions in the 3D window (known as the canvas). You can get momentary positions on events such as MouseDown or MouseUp, or if you really need it, you can obtain real-time mouse positions using MouseMove.
    Here's a hunk of example code:
    //===================================================
    myMouseHandler = new MouseEventHandler();
    myMouseHandler.onMouseDown = true; //this prop is true by default
    myMouseHandler.reportAllTargets = false;
    myMouseHandler.onEvent = function(event)
    console.println("canvasPixelHeight = " + event.canvasPixelHeight );
    console.println("canvasPixelWidth = " + event.canvasPixelWidth );
    console.println("mouseX = " + event.mouseX );
    console.println("mouseY = " + event.mouseY );
    console.println("currentTool = " + event.currentTool );
    console.println("isMouseDown = " + event.isMouseDown );
    console.println("isMouseOut = " + event.isMouseOut );
    console.println("isMouseOver = " + event.isMouseOver );
    //Register the handler and turn the mule on
    runtime.addEventHandler(myMouseHandler);
    //===================================================

  • Programmatically trigger the ClassNotFoundException

    I'd like to simulate the class not being found.
    class MyClass{
       static{
          if(someCondition) ????;
       public MyClass(){}
    }Is it possible to replace the '????' with something that causes the ClassNotFoundException in the following code:
    try{
       Object o=Class.forName("MyClass").newInstance();
    }Note: ClassNotFoundException is a CHECKED exception, so I cannot simply throw it!

    What you can do is throw an ExceptionInInitializerError that wraps the CNFE. static {
        try {
            whatever
        catch (CNFE exc) {
            log it
            throw new ExceptionInInitializerError("couldn't load class " + classname, exc);
    } Just remember that EIIError is an unchecked exception so if that static initializer is in, say, MyClass, you could have this situation: Foo foo = MyClass.staticMethodThatReturnsFoo(); // ExceptionInInitializerError thrown here if MyClass' static init fails and the compiler won't complain about declaring or catching the EIIError.

  • Purchase Order Release Strategy didn't trigger

    Hi Gurus and SAP People!
    Good Day!
    I currently have a problem regarding one purchase order which didn't trigger a release strategy. I checked the classification/conditions/classes and it's all satisfied. I tried replicating the scenario in our Development server and I always end up triggering a release strategy.
    Moreover, as far as i know, the release procedure is not locked as it is one of the most commonly used release group and code. Can anyone have any ideas why that certain PO didn't trigger any release procedure upon saving?
    More details that might help.
    1. PO was initially on hold status then saved. (tried to replicate this as well and yet a release strategy was triggered)
    2. Upon saving, PO triggered an IDoc successfully. (my replication results always stayed "yellow" as it is still waiting to be released/approved before the actual Idoc generation (green)).
    3. Line item details had been changed between the PO being on hold and the actual saving. (but yet it still satisfies the release classifications)
    4. Line items came from PRs, Contracts, RFQs.
    Will greatly appreciate your help.
    Thank you very much!
    Regards,
    JV

    Hi Suzy!
    Thanks for the answer.
    I already checked the classification and searched our documentation repository if there were changes made and did not find any. Development and Production environment customization are the same.
    I forgot to include that after a few days the PO was created, they deleted one line item. That deletion made the PO trigger a release strategy.
    Nevertheless, the question still remains - why the PO didn't trigger any release procedure upon the initial saving.
    Regards,
    JV

  • Programmatic Report Trigger

    I'm evaluating Reports as one the final candidate report writers for integration with a new application. I have been reading much of the documentation on the product, but I still have a question: Is there any way to programmatically trigger a report from a C++ application? I've seen discussion about Java integration, but none about C++. Am I missing something?
    Also, I ultimately need to generate reports from both files and DB queries, and output results to local files and probably an application GUI. I believe this should be fairly straightforward, but I would welcome any comments on my options and/or the feasibility of these requirements.

    I'm not familiar with C++, but I believe you can issue a host command, right? You can start a report like this:
    host_command('rwrun report=......')
    You can issue this command on the reports server host machine.
    One thing to remember is that Reports 9i and 10g are web based, not a client/server application. If you want to run a report from a client c/s application, it would be:
    host_command('http://......')
    which should open a browser.
    ultimately need to generate reports from both files and DB queriesA report is based on DB queries, of course, but what do you mean by "generate reports from files"?

  • BAPI_PO_CREATE1 not triggering Release Strategy

    Hi,
    We are using the BAPI, BAPI_PO_CREATE1 to create Purchase Orders Programmatically. But this way the Release strategy is not being triggered and the PO is directly being sent instead of blocking for the Releases.
    Whereas the appropriate release strategy is being triggered when the PO is created using ME21N using the same data that was used in the BAPI (Same Purchase Value, Purchase Group etc..).
    Is there any Option in the BAPI to trigger the Release Strategy or any OSS Note or any customization requirement to resolve this issue.
    Regards,
    Rajeshwar Rao J

    Hi,
    I hope this issue was resolved...
    Please help how it was released .
    i am also getting the same problem (my system is upgraded from 4.7 to ecc6 in ecc6 only we have implemented Bapi to create PO)
    Thanks
    A. Prasad

Maybe you are looking for