KWaris Posted October 5, 2012 Report Share Posted October 5, 2012 I had never known that the controls inside the cluster contained in the 2d array were unavailable to be used in the Edit Event Handling for this case dialog box. So I just did my best to trigger the events for the boolean controls. Please see attached my attempt. I will be glad to know there is a better way to achieve this. Any ideas? Kind Regards Austin Triggering Events For Booleans in an Array.zip 1 Quote Link to comment
Ton Plomp Posted October 6, 2012 Report Share Posted October 6, 2012 You need to use Dynamic Event registration to get the event. Use the following code register the event: And inside the event More info on dynamic events. Ton 2 Quote Link to comment
Yogesh RPF Posted October 10, 2012 Report Share Posted October 10, 2012 Nice Idea Ton, I have modified littel because, the event registration is applicable only for 'Buy?'. Take a look! Regards, Yogesh Redemptor Triggering Booleans Events in Array.vi Quote Link to comment
Ton Plomp Posted October 10, 2012 Report Share Posted October 10, 2012 In your code the event is triggered when any of the fields inside the cluster is modified. Have a look at the first image I posted to see how you can get a specific field inside the cluster. First we caste the ArrElem to a cluster, then we get all elements inside the cluster, and afterthat we take the third element (the boolean) and register the event for that control only. Here's your code: (spot the differences) Ton Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.