Dynamic ctrl:event

I need to bind ctrl:event to a DataObject which currently lives in a TableDataProvider.
1. Dose UIX Support this behavior. If so:
a. Whats wrong with the following syntax:
1. ctrl:event="validKey@validNS:validDS"
b. I am certain the DataObject is valid.
2. Dose the controller namespace support this behavior
like the 'bc4j namespace' dose?
Thanks for any help/clarification
Booker Northington II

Hi
Look at "mixing data: and ctrl: namespaces" below!
Jaap.

Similar Messages

  • Dynamic user events freeze user interface

    Hi all,
    I am having problem with dynamic user events.
    Dynamic user event is registered to the event structure, and many dynamic user events come in very fast, about every 30 ms. It freezes up the user interface, no response to mouse and keyboard, even after all user events finish execution.
    Any idea or work around?
    Thanks for any help.
    Anne

    Hi Anne,
    > Dynamic user event is registered to the event structure, and many dynamic user events come in very fast, about every 30 ms.
    The 30ms rate is not unreasonably fast as long as the processing for the event(s) can be completed in less than 30ms.
    What tasks are you doing in the User Event?
    For tasks that may take time to complete (like logging) you could queue up the data and send it to a consumer loop.
    > It freezes up the user interface, no response to mouse and keyboard, even after all user events finish execution.
    My *guess* here is that you got stuck in an event that never completed.
    steve
    Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
    question. Give "Kudos" to replies that help.

  • Dynamic user event

    Hello, I am a newbie regarding dynamic user events.
    Basically, I want to create a user event that triggers  an event structure in a subvi.
    To do this, I wire up a "create new user event" and then pass the refnum to my subvi "more info" as seen below.  But this piece of code get's stuck in the sub-vi and never leaves :[
    here is my subvi below:
    I'd greatly appreciate any help :]

    To stop your main vi you will need to provide a mechanism to stop your sub vi.
    I would use an additional boolean User Event to do this.
    (This could be shared among other subvis).
    When the (let's call it) Shutdown event is received, set your subvi while loop control terminal true.
    Note: When using this scheme in an exe file, if the subvi front panel is open and you shutdown the main vi, the subvi can remain open. This happened to me using LabVIEW 2010. I had to use a Front Panel Close Method to avoid this issue.
    When using the Front Panel Close Method you should first check if the front panel is open or not to avoid an error.
    Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
    question. Give "Kudos" to replies that help.

  • Xcontrols and dynamic User Events

    Hi all,
    I'm trying to build a XControl with an Event Structure that accepts User Events generated by a separate parallel loop on the block diagram.
    A monitoring loop with its own Event Strucure on the block diagram seems to handle the User Events generated by my producer loop but the XControl seems to ignore the User Events.
    Example LabView 8.5.1 project is attached
    Any ideas?
    Attachments:
    XControl.zip ‏75 KB

    Hi Anne,
    > Dynamic user event is registered to the event structure, and many dynamic user events come in very fast, about every 30 ms.
    The 30ms rate is not unreasonably fast as long as the processing for the event(s) can be completed in less than 30ms.
    What tasks are you doing in the User Event?
    For tasks that may take time to complete (like logging) you could queue up the data and send it to a consumer loop.
    > It freezes up the user interface, no response to mouse and keyboard, even after all user events finish execution.
    My *guess* here is that you got stuck in an event that never completed.
    steve
    Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
    question. Give "Kudos" to replies that help.

  • Crashing LabVIEW with dynamic user events

    Hello,
    we are able to execute the attached sample with a german LV 8.2.1 on a Pentium 4 2.4 GHz PC with 1GB Ram and W2K SP4.
    However we seem to have problems on a faster machine with an english Windows XP Server but also LV 8.2.1. Could this please be verified?
    So start the test, first manualy load the "Button Menue 13.vi", then the "Button Wrapper 13.vi" and finally the "Button Receiver 13.vi".
    After this activate "Button Menue 13.vi" and let it run for a short while. After softly stopping "Button Menue 13.vi" with the local "Stop"-button, all VIs should indicated the identical amount of received dynamic user events.
    On our local PC we can run sucessfully and quickly to e.g. 10000 events and more.
    Attachments:
    ButtonTest13.zip ‏52 KB

    Hello,
    after disabling hyperthreading in the BIOS the english XP Professional and the examples now run nicely!  

  • Dynamic Change event getting error with cascading LOV's

    Hi all,
    In my application (v4.0.0), I have two sets of cascading drop-down select lists, these each make up a date (year, month, day) plus a time value (not cascading).
    I also have a dynamic action that gets the hours difference between the two dates set above. This fires on the change event.
    When I change, say the month drop-down, the day list is refreshed. But before it is refreshed, it looks to be emptied and the change event fires. I then get an error from the dynamic action because the day value passed to the query is empty (confirmed when looking at POST data).
    Can anyone think of a workaround idea for this? e.g. a way to set the dynamic action to conditional?
    Thanks!

    Hi Peter
    Thanks for the tip, I have tried this and it has helped, although not solved the problem. I was originally getting two errors appear ("AJAX call returned server error ORA-01843: not a valid month for Set Value.") and this has removed one of them...
    When looking in Firebug, it seems to me that although the dynamic actions (cascading update + set value) are running one before the other, the values aren't updated in order. e.g. the cascading update is not applied before the set value action is run.
    Could this be a bug with dynamic actions?

  • Dynamic keyboard-event

    hello!
    i want to make some dynamic buttons which are able to use by
    pressing a letter and klick them. the problem is, that i try do
    test it by using trace() and so on but there is no feedback by the
    flesh when i pressed something. does anybody know what's wrong?
    the event looks like that:
    private function mausMarkiert(n)
    n.currentTarget.alpha = 1;
    // AENDERN --- hier noch die möglichkeit des
    tastendrückens und exemplare verschiebens einbauen
    container_kalkulator_variante.addEventListener(KeyboardEvent.KEY_DOWN,
    reportKeyDown);
    private function mausUnmarkiert(n)
    n.currentTarget.alpha = .8;
    the alpha-manipulation works. do i have to write something
    more? container_kalkulator_variante is a sprite.
    thanks for reading, understanding and re-writing!

    so well. i've try it and it doesn't work and that make's me
    sad.
    so i will explain what's on my monitor and what's happaning
    and what i want to do.
    1) monitor
    i've a container (a for example) with an container (b) and a
    container (c). container (c) is my butten, and in it i have a big
    sqare and some text.
    2) what's happaning
    ++ when flash loaded everything and i move my mouse around
    whithaut pressing it anywhere and after this i press a letter ...
    nothing
    ++ when i pressed the mouse on anywhere exept (c) and after
    this a letter ... nothing
    ++ when i pressed the mouse in (c), but not the text, and
    after this a letter ... nothing (and this nothing is bad)
    ++ when i pressed the mouse in the text on (c) and after this
    a letter ... i get a trace with the letter and it's character code
    (like in the "f1"-help-example) --- but when i pressed with the
    courser anything else after this eccept the text in (c) and use my
    keyboard, again nothing happaned.
    ++++ this is the effect when i type
    b.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown);
    in a function for my "mouse over (c)" and it's also the
    effect when i put this line after the first lines like
    public class ...
    public function ...
    (right here)
    the hole other buttom-stuff like manipulating alpha etc is
    working - so the funcions and events are working like they should.
    for me it seems like the is the need of something like "fokus" on
    my (c)-container to become a reaktion for the keypressevent, but i
    don't know if this is right and when how to do something like that.
    3) the final user should be able to, for example, put 5
    cookies from the first butten (c) to an other button (c') by drag
    ond drop (c) over (c') by holding the keyboard-ding "5". so, for
    this i think i need a mouse over (so that flash knows where the
    cookies come from), a keyevent and after this a mousemoouveevent.
    until now the user is not able to use the keyboard because i
    have no code for it.
    thank's for reading and for any, maybe, help

  • EP6: Dynamic Navigation - Eventing

    Hi everybody,
    I want to navigate to the same page/iView from my dynamic navigation nodes (which implement INavigationConnectorNode). The dynamic navigation shows a list of customers. Clicking on one of them should show the same page/iView, obviously for different customer ids.
    Trying the simple approach to append the parameters ("....?customerid=4711") to the launchURL does not work.
    I assume the whole concept works differently: do I have to implement getPRTEvent() (or maybe getJScript() or ..) to parameterize my navigation event ?
    I cannot find any info on that subject, so I'd be really grateful for ideas and hints.
    Cheers,
    Heiko

    Hi Altafin,
    thanks for your reply, unfortunately this does not work: you assume that I build an iView and thus can control the HTML output. What I do, though, is to dynamically build a navigation structure (not in an iView but in a Navigation Connector). There I only have a couple of fields I can set, most notably the "launchURL". The standard Portal Navigation Service takes my data structure, merges it and forwards it to the (standard) detail navigation iView.
    In the meantime I have been able to solve it (actually thanks to Sven Kannengiesser): I put the following into my launchURL:
    "/irj/servlet/prt/portal/prtroot/<escaped pcd url>?myparam=4711"
    where the escaped pcd url looks something like
    "pcd!3aportal_content!2fmyfolder!2f .... !2fmypage"
    That works fine.
    Cheers,
    Heiko

  • Dynamic array events

    hi there!
    I have a array of objects and I want to apply TO ALL an Event.
    here is the code:
    for (int i=0;i<s.size();i++)
    teste=i;
    JFormattedTextField t = (JFormattedTextField)s.get(i);
    t.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseEntered(java.awt.event.MouseEvent evt){
    feedsMouseEntered(evt);
    t.setVisible(true);
    noticias.add(t);
    t.setText(new String(Integer.toString(i)));
    It only applies to last element of array....
    if someone could help me..
    thanks in advanced

    Well, first of all you shouldn't be creating a new ActionListener for each component. Create one ActionListener and add it to each component.
    If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting.

  • Missing dynamic user events across VIs

    We have a sub-Vi Statemachine.vi, which has its own event structure with a 5ms time-out, everything enclosed into a loop.
    This sub-VI is called repeatedly from the main application with command lists to execute. This can be a longer list or e.g. an empty list.
    It turned out, that we can miss successfully sent events, despite the documented internal queues.
    Placing the event structure into an added parallel executing, non-terminating loop in the sub-VI seems to help.
    Is there a link to further informations about this behaviour? We are using a german LV 8.2.1.

    Martin,
    I don't know of a good document describing the use of the user event in the way the you and I are using them.
    I've learned from bits and pieces lying around and my collegue. After using it for two years now I have a framework in which the use of user events is relatively easy.
    I know this doesn't help you a lot, but I know that if get the hang of it, it will provide a good and usable architecture.
    I hope the attachments helps you a bit. It is the way I define user event for inter process communication. It will get rid of a lot of wiring.
    Kind regards,
    André
    Regards,
    André
    Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)
    Attachments:
    Event buffer.zip ‏13 KB

  • Dynamic Up Event?

    I'm just starting out with flash and I was trying to solve a
    very specific problem.
    I create a new document, create a new layer, and draw an
    object on that layer. Convert that to a Button and then I add an
    Over and Hit event. Now, as far as the Up event goes, I wanted to
    have it so that it would remain transparent when "x" equals 0, load
    red if x = 1, and Blue if x = 2.
    How would I go about this? I don't see an area to attach any
    code in the Up event. Do I have to create the variable on my main
    tab?

    That is a very good idea.  The caption is good to use for the label you show to the user.  You can change it to show different things, even programmatically, such as if you need to make your application more international and have it display controls in different languages to different users.  It lets you use longer or more descriptive names, without having those long names eat up block diagram space.
    Another thing I've done is take the control reference and search for it among the array of control ireference.  Search 1-D array will give you the index of the control within the array.  Then I can use that index and apply it to a different array and index out a value from that.  It could be a name, or perhaps a numeric value I use as a multiplier or something like that.  Just make sure there is a one to one correlation between the references in the array and whatever is the other array you are getting additional data from.  For what you have drawn now, it could be a little bit complicated because you actually have two different 1-D arrays of references.  But if you concatenated those arrays together, you'd have a single 1-D array you can search.

  • Dynamic Action, validation check, on an Item, could not use Change event

    I am learning how to use Dynamic Actions in a 3.2.x app that was upgraded to 4.0.x. I wanted to share what I learned adding client side validation with these actions. Perhaps an Apex guru could suggest an easier method to use this feature.
    I have an existing function where a user selects multiple rows in a report page, and then assigns a single status and enters justification text for the selected rows in another page, then saves changes (via submit).
    One item, justification, is required. I replaced my JavaScript validation of an empty value, e.g., P10_JUSTIFICATION.value, with a dynamic action. The Change event was a candidate for this item, with the "is not null" Condition. However, it is possible to initiate this screen to review the status, overlook the justification text and immediately select a button to save changes. No Change event has fired. The Before Page Submit event was applicable here. This Event selection in the wizard does not provide the Item for definition and then the Condition wasn't the right context though available for selection. I selected JavaScript expression for the Condition, actually entered my original JS test expression, and created one True Action. The True action displays an Alert to tell the user that required text is missing.
    Test of this DA was not completely successful. The alert appeared but the page went on to submit anyway. I found I had to add another True Action, Cancel Event, to stop the submit. The DA was then successful.
    The Apex site examples, [http://st-curriculum.oracle.com/obe/db/apex/r40/apexdynactions/apexdynactions_ll.htm] , do a great job showing use of Change and Set Value events for Items but a user may not always navigate through items. These features were promoted for developers with no to little knowledge of JavaScript to use Apex for application development. This DA required using/understanding JS anyways.
    My next step is to implement actions on a tabular form that that has required values. It is disconcerting that I have read in the forum that the column value references such as f0x and its row number are required to get it all working (as a DOM or JQuery selector). I have already found that tabular form columns can be re-ordered from v3.2.1 to 4.0.x. I was hoping I could declare dynamic actions or simpler Javascript methods that would not rely on f0x array references.
    Thanks,
    Kelly

    It is disconcerting that I have read in the forum that the column value references such as f0x and its row number are required to get it all working (as a DOM or JQuery selector).Not necessarily. One possibility is to use descendent jQuery selectors to attach the dynamic action event handler by column heading:
    td[headers="HIREDATE"] input

  • How can I terminate a subVI using dynamic events?

    I've got a VI which can bring up a user-interactive subVI.  The subVI front panel is visible and has event structure associated with it.
    I'd like to programmatically terminate the subVI from an action on the parent VI.  Can I do this through dynamically registered events, or user events, somehow?
    What I'm trying to do is implement a LabView-like Graphical Control Palette (shortcut menus).  The user should be able to kill the subVI (a menu-like VI) by clicking on the main VI.
    My not-so-good approach is to have a short timeout to the subVI and read the value of a control reference which is passed from the main VI.  I'd rather not have to use the timeout for this, though.
    Thanks,
    Tom
    LabView 8.2
    Full Development System.

    Create a user event and use it. You can see an example here.
    Try to take over the world!

  • Dynamic event multiple loops

    I'm trying to see if I can use one Dynamic User Event to control multiple Event Structures. It seems that sometimes once a dynamic event occurs and its "interrupt" is answered by an event case, other VIs only have a short amount of time (<50ms) to reach their event case state for accepting this event otherwise the event seems to be cleared and the other VIs are oblivious that the event even occured.
    My Question: Is it possible to use one dynamic event to control multiple Event Structures reliably?
    A previous post somewhat speaks of this issue but does not provide a solution or anything insightful.
    http://forums.ni.com/ni/board/message?board.id=170&message.id=223495&query.id=135563#M223495
    I've included an example of my issue
    Attachments:
    DynamicUE.zip ‏61 KB

    Thanks to both of you. I found the answer to my question in the second posted link. "the common, correct use case is to have one Event structure per dynamic event registration". I tested this out with the previous attachment by registering the User Event refnum from the ESTOP functional global to another Event Registration node. I then ran this refnum to the top loop. (instread of the top loop sharing the registration refnum with the middle loop). Now I can put a delay of 2000+ ms and not even miss an event. cooool. This will probably NOT be my final solution but its good to know in the future.
    Most likely I am going to design each of my main VIs to have a main while loop with a User Event Structure listening for dynamic events. Associated with each of these VIs will be a functional global which contains its User Event Refnum and Registration Refnum. This functional global will act as a gateway into the associated VI for other VIs/Subvis to use. This will follow the "one Event structure per dynamic event registration" rule while keeping my API organized and allowing room for scalability by simply adding more functional globals in the future.
    Just putting this info out there for other users.
    Thanks again,
    Craig

  • Creating a dynamic event from a control reference

    Does anyone have an example of creating a dynamically driven  event from a control reference?

    Hi 4BoysDad,
    There is a good example that can achieve what you're looking for in the example finder.  It is called "Dynamically Register For Events.vi".  It will be under
    <labview>\examples\general\dynamicevents.llb\Dynamically Register for Events.vi
    Regards,
    Che T.
    Applications Engineer
    National Instruments

Maybe you are looking for

  • Open popup in dynamic region once region changes flows

    I need to open a popup in a flow if boolean is set to true in the pageFlowScope bean of the dynamic flow bean used in a dynamic region. The parent page/flow is configured in the adfc-config.xml and is controlled by a session bean. So the scenario is

  • IDVD 3 calibration problems when burning

    Help! I'm having calibration error messages when burning iDVD-R discs in iDVD 3. I've had success in the past with Maxell DVD-R 8X discs but other brands and other speeds won't work. I can't find Maxell DVD-R 8X discs anymore. Do I need to update the

  • Connectivity from Customer to sender AS2 adapter

    Hi Guys, My scenario is EDI to File, to send the data we provided our HTTP IP, port and URL to customer, here URL is https://<host_name>:<port> by using this URL we are able to receive the message upto our network, so how to get that data from networ

  • Retraction of Budget from BW to ECC

    Hello, We have a request from the FI/CO folks to retract Budget Information from BW into ECC in order for them to create reports of Budget vs Actuals. 1. Does anyone have an opinion on if this is the best practice? 2. Would it make more sense to crea

  • Node functions in PCK

    Hi all, Does PCK provide Node Functions in Message Mapping?