Transfers data between children ViewStack

Hello

What is considered best practice to pass data between ViewStack children.

Thank you.

Hi, M * A * S * H

You will get a different answer from everyone who meets you. There are several definitions of 'best practice', and all depends on how you define your project, the third frame type you use, if any, and other factors.

If you are just using the Flex framework, consider creating a singleton (in ActionScript) class to contain all your data. Then, each component can just bind to data in this singleton. The components write to data in the class, and then they have all updated at the same time. Do not worry if a child in the viewstack component is created, it will get some it is bound to data when it created.

Tags: Flex

Similar Questions

  • Core 1 page 9-4: "...". pass data between parallel patterns... »

    «.. . If allows you to pass data between parallel block diagrams... son"this can be done?

    They mean transfers data between parallel loops/structures?

    The question is a Hue. It is not parallel, using wires. Two loops are not connected is perhaps parallel. We read your table of contents it a game of guessing on the sentence of your thread. Maybe if you get into the details.

  • Passage of data between functions

    Hello

    Is it possible to pass data between functions? What I try to do is the following:

    I have a private function called onBtnBook which will do what (component .mxml) page of my application will be sent to the user when the user clicks a button. I need to capture the page that the user performed before they have clicked on the button and you can do this by capturing the selectedIndex value in a variable of the ViewStack I use for Navigation and is in my main Application file.

    What I have to do then is when the user clicks the back button, it sends back to the page they were on. I have a second private function called onBtnBack to handle this. However, as I need to use the variable created in the onBtnBook (which contains the value of the selectedIndex of the page that the user did) in my onBtnBack function, to return the user to the correct page, I am short of problems with access to the data in this variable.

    Is there a way to access the data of the variable in the 1st onBtnBook of function and handling in the 2nd onBtnBack of function?

    Thank you

    You must make a public variable and it may be related.

    [Bindable]
    public var myLastIndex:int;

    private function onBtnBook (): void {}
    myLastIndex = viewstack.selectedIndex;

    }

    private function onBtnBack (): void {}
    viewstack.selectedIndex = myLastIndex;
    }

    or something in that sense

  • PX1268E - 1 40 transfers data at 0.5 MB per second

    Hello

    I recently bought the indicated HARD drive from Toshiba. Toshiba readers usually work great with Mac OSX what and this drive even came with the software for my Mac to use the password on disk.

    However, the reader only transfers data at about USB1 speed (certainly not faster than USB1 anyway) and I was wondering if anyone had a solution to this?
    I tried to format the drive to Mac Standard format, but unfortunately the same problem occurred. I'm certainly using the USB2 port on my mac (it's a MacBook Pro is shipped only with USB2 anyway) and a G4iMac (also only comes with USB2 ports) and none of the ports on computers improve the speed!

    It's really annoying because the speed is excrutiatingly painful to watch! If anyone can help me I would be very grateful!

    Thank you very much for the support!
    Scott

    Hi Scott

    Don t think that it s an external HARD drive problem!
    I m not a Mac expert and I don t know if you can list properties on the OSX USB but I found a very interesting thread on the problems of speed USB on the laptop with windows OS.
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=20996

    The USB ports have been shown as improved in the normal startup mode but go to safemode the found user other entries. He simply deleted and after the restart, USB devices running at full speed!

  • How to transmit DATA between several state machines.

    Hi I'm doing a project that needs to acquire data from a simulated data file and display it on a graphical interface. Two of them are manufactured in a state machine. I wonder if it is a good way of communication of data between two state machines? It would be very appreciated if you can provide a few examples. Thank you very much.

    OK, there are plenty of ways to communicate, but who are these state machines in the same project? Same VI? All LabVIEW?

    I like functional global variables due to the functionality that can be included in the. If they are used wrongly, as most of the things with the coding, you will create the races and break your code.

    Work of local variable, but I try to clear them tsar when possible. If they are used wrongly, as most of the things with the coding, you will create the races and break your code.

    Queues are pretty popular to connect, but try to stay with fixed size data, if you think that the limits of memory could be a problem.

    If you speak through the eyes of network to published static Variables (do not use these unless you have a stable network) network, TCP/IP, UDP, or Web Services flow (you need experience in this field. It is not just together.

    LabVIEW is a good way to program, but this kind of key options.

  • How to make the exchange of data between 2 whole loop real-time

    Hello
    I have 2 while loop
    the 1st loop includes data acquisition program
    the 2nd loop includes control program
    --------------------------------------------------------------------------------------------------------------
    My question is how do the exchange of data between 2 whole loop real-time

    --------------------------------------------------------------------------------------------------------------
    I tried with the variable and direct wiring between the 2 local while loop
    It does not work (there is a delay)


  • Share data between a PC host and NEITHER sbRIO-9626 connected by Ethernet


    Hi Sophiec,

    In fact, shared Variables are a good way to share data between a host and a target. However, this is not the only way for data sharing.

    On the follow-up document, you will find different ways to do it: http://digital.ni.com/public.nsf/allkb/48D244EC86971D3986256BD4005CCC28 as:

    Shared variables
    TCP
    UDP
    DataSocket
    Other methods of Communication

     

     

    I hope this will help!

     

     

  • What is the best way and to share data between a server and a Client app?

    Hello

    I'm trying to communicate a Client-Server application.

    In fact, I already have a simple data transfer via TCP/IP. However, I don't know yet, if TCP/IP is the best (and by that I mean, better, faster, safer, etc.)

    How to do.

    What are the cons and Pros between TCP/IP, STM and shared Variable?

    Do you recommend another type of communication in addition to these 3?

    Thank you

    Matt.

    In my view, that a general question cannot have a response says.

    Then, there is no way 'the best' for sharing data between a client and a server app.

    I like to use TCP/IP, but sometimes (when data loss is not critical) I use UPD (quick and dirty).

    I generally avoid shared variables, especially on embedded devices.

    Some other times I have I like to Exchange data in a database...

    A few other times I Exchange data using file...

    Marco

  • Help on the passage of data between vi when built in exe

    Hello

    I have this problem and grateful if someone can give me a heads up the right direction.

    I'm trying to write a program for acquisition of data and control of two instruments simultaneously.

    An instruments is a rotating stage that I control the movement and data read using activex controls. I do this in a vi that I have two distinct time of lines, one for updating the Rotary floor continuous data and other while loop for the handles of event structure.

    The second instrument is a detector that follows the rotation of scene. For this, I have an another vi with two loops for example, for data acquisition hollow rs232 and another while the loop is to the structure of the event.

    I use globals to pass data between the vi and it works very well in a labview project environment. However when I Isaiah to compile these exe files. I can no longer spend data.

    Is there a programming method when you communicate with more than one instrument. What I want to ask is, say I have a function, oscilloscope etc engine generator How can I control them in windows separated (for example, separate programs) and pass data to the other?

    I would be grateful for any help.

    Hello

    Global variables are not accessible to separate executables because their areas of memory are not shared. This can be found in the following document: If I can use a Global Variable to share data between two executable LabVIEW? The only way to have it working would be to use a main VI that launches your two separate applications like subVIs. This would allow you to share a global variable between the two. Your other option would be to use the method described in the article, or to use shared Variables: How to communicate between several executable LabVIEW using shared Variables?

    -Zach

  • Sharing data between multiple while loops, competitor rates

    Hello

    I am trying to Exchange data between competitor while loops running at different speeds.  What is the recommended way to do this?    In practice, I have 12 indicators and 3 cards I would update (on screen) in the slower loop, although the data acquired and stored on disk in the fastest loop.  The image below is a simplified version of what really works my candidacy.

    I currently use local variables and shared to achieve this.  I heard however that local variables are evil because of their use of memory (data are copied instead of who passed by reference).

    Thanks for your suggestions,

    Adam

    Hi Adam,.

    Yes, here you go.

    Mike

  • How to make a table with all dates between two dates

    Basically, I need a vi that returns an array with elements containing all individual dates between the two dates. I am trying to build one myself... but obviously if there is already a few vi do that I would use it instead. Anyway, any help is appreciated... I'll just be over here write it too hard to pass the time.

    Just an idea

    Output is the table of dates (like timestamps) between the timestamps 'Start' and 'end '.

    Marco

  • Pass data between panels

    I have a digital slide on a Panel. When I move the cursor, I need the value update on another Panel.

    How can I do this?

    The two panels are loaded as a senior-level windows.

    It seems that I read something on the use of queues to pass data between the panels, but I can't seem to find where I read that.

    A basic concept that differentiate the CVI to other languages, it's that there is no relationship between a sign and a specific source file. I mean, you do not need to put a sign functions in a specific source file: they can be spread over multiple sources; Conversely, you might have a source only that collects reminders for all panels of files in your application. What readers recall execution are Panel handles and control ID. (One effect of this paradigm is, you might have a reminder installed on controls on different panels).

    For this reason, there is no problem by putting the cursor callback in panel1.c. In addition, you can call the file source in a different way.

    Arriving at the base of your problem, a DAQ multithreaded application is really different from a UI single-threaded application.

    Put the functions of data acquisition in a separate thread can be beneficial for your application, because they are not likely to suffer user interface events.

    CVI provides also the different methods of transmission of data between threads. the most powerful in data acquisition applications is probably a Thread Safe queue.

    I suggest you look at Programmer's Reference > chapter of the creating multithreaded Applications to aid, where the basic principles of programming are explained multithreaded and information are provided on all instruments CVI includes.

    If you want to discuss on this scenario, I suggest yu to start a new thread, as it has nothing to do with the original question with which you started this discussion.

  • When it transfers data to the microcomputer by Uart, USB etc PC, it must either be aware access to the hard drive of the PC or not?

    I want to know when it transfers data to the microcomputer by Uart PC, USB etc., it must either be aware access to the hard drive of the PC or not.
    When the Windows operating system run my programs, hard drive is accessible when there is a space of memory?
    For example, virtual memory method return page-by-page, page-out using the drive hard when memory is used in full.
    I am using Windows 7 Home Premium 64-bit. The access to my PC hard drive light flashes even though I don't run my program.

    The lamp for the drive starts flashing as the computer is running and programs are running. Windows is a program that runs all the time and access the hard disk.

  • Problems of access to data between threads

    I have a singleton who has a painting I want to access it from multiple threads.  I set the table as volatile and initialize it to certain values when you create the singleton.  When my application starts, I create a thread that periodiclly checks that the user made and adds values to the table.    I have a screen displaying, it lists all values in this table.  The wire and the screen become two different instances of singleton.  Entries added in the thread do not appear on the screen.  Any time, the display shows it shows what the table is when the object is first.  When I debug this, all calls the screen makes the get the array of the result singleton in it being created.  Is not possbile to share data between threads?

    Here's how to create the instance on the singleton:

    private static volatile DataAccess instance = new DataAccess();

    I created a simple java file that creates three threads and uses the same object that I use in the blackberry app and everything works fine.  Is there something particular aboue screens that makes them not nice game with wires?

    Thanks for your suggestions.

    runtimestore is used for exactly that. I don't know of another way to share. You can communicate using world events and have other options, but runtimestore is the easiest.

  • Find Dates between 2 dates

    Hi all

    I use SOASuite 11 g. Using XSLT, I want to find some dates between 2 dates

    For example, if I input 01-02-2016 and 2016-02-07


    The XSLT must return

    2016-02-01,.

    2016-02-02,.

    2016 02-03,

    2016 02-04,

    2016 02-05,

    2016 02-06,

    2016 02-07


    can someone suggest me how to build this logic in the xslt file?


    Thank you

    (1) fn:days - of-life feature gives you the difference in days between two dates.

    (2) use the value above in the foreach loop and then create a counter variable and map it to element position().

    (3) now use this counter variable in the Sub method within the loop for.

    xs:date(fromdate) + xs:dayTimeDuration(concat('P',$counter,'D'))

    (4) you can now print this value (or) copy it to a repetitive Xml structure element. When copying, you can use the $counter as an index for the repetitive element of the target.

    Now if you want including and to the dates too, then add 1 to the output in step 1 and step 3 use $counter - 1 in xs:dayTimeDuration.

    It will be useful.

Maybe you are looking for

  • Satellite P100: Battery LED blinks orange on

    When I turn on my Satellite P100, battery light flashes and the icon shows the power of the battery power, but do not load, then it turns into support for a few seconds. When I turn the computer off, but leave it connected to the power source, the re

  • Satellite A210 - 11 p - gos black screen and HARD drive does not

    Hello My Satellite A210 - 11 p suddenly goes to a black screen and the hard drive stops working. It is always under tension and if I want to restart I have to unplug the unit and remove the battery. I thought it was overheating and checked the time a

  • Missing drivers for Lenovo ThinkPad T430

    Hello. I have lenovo ThinkPad T430 with 10/64 bit Windows In Device Manager, I get a few missing drivers: Network adapter gw H5321 Mobile Broadband Hardware ID: USB\Vid_0bdb & Pid_1926 & Cdc_0d & Mi_06USB\Vid_0bdb & Pid_1926 & Cdc_0d & Ndis_630USB\Vi

  • WMP library organizes with WAVs

    I have a bunch of extracted WAV files to a CD later.  (Another computer etc..)  I see them in WMP 11, but they are all in an album called 'Unknown' there are a thousand or more songs in this album.  I could not find a way to enter the artist or album

  • BlackBerry Smartphones demotion of 7.1 in 7.0 OS

    I want to downgrade my OS 7.1 to 7,0 OS on my blackberry curve 9320. I have a desktop software on my PC but I can't handle. So, how do you do about it?