TabNavigator Child Control Problem on Programmatic SelectedIndex Change

I've got a TabNavigator that contains another TabNavigator as
a child control on its second page. On the child TabNavigator
there's a ViewStack and a couple of Accordion controls. On my first
parent tab I've got a Button that, when clicked, programmatically
changes the selectedIndex of the parent TabNavigator to display the
contents of the second tab (which contains the child TabNavigator).
I'm finding that when the index of the TabNavigator is
changed programmatically, all of the controls in the child
TabNavigator are stacked on top of each other and overlapping as
though the Flash player has no clue how to display these child
controls. Once I click through each tab on the child TabNavigator,
they appear intact. If I click the Button to change the tab again,
all of the controls will be jumbled and stacked.
This problem happens 100% of the time. I've changed every
single control in my app to creationPolicy="all" to no avail.
Anybody experienced this or know what to do?

I've got a TabNavigator that contains another TabNavigator as
a child control on its second page. On the child TabNavigator
there's a ViewStack and a couple of Accordion controls. On my first
parent tab I've got a Button that, when clicked, programmatically
changes the selectedIndex of the parent TabNavigator to display the
contents of the second tab (which contains the child TabNavigator).
I'm finding that when the index of the TabNavigator is
changed programmatically, all of the controls in the child
TabNavigator are stacked on top of each other and overlapping as
though the Flash player has no clue how to display these child
controls. Once I click through each tab on the child TabNavigator,
they appear intact. If I click the Button to change the tab again,
all of the controls will be jumbled and stacked.
This problem happens 100% of the time. I've changed every
single control in my app to creationPolicy="all" to no avail.
Anybody experienced this or know what to do?

Similar Messages

  • Analog output to the DAQ that changes when controls on the front panel change

    I'm using the PCI-6024E, and trying to output an analog waveform that can change when one of the two controls on the front panel change. It outputs fine setting it to continuous output and using a simple while loop around the "Is Task Done" VI, but if I put the "Write" VI in the while loop, it doesn't output steadily. I then tried to use an event structure, so that I'd only have to write every time something on the front panel changes, but for some reason it was writing finite samples, even though I set the Timing VI to continuous. I looked around the NI site, and found an article about this with an example. I tried to change it around to use my waveform, but whenever I run it, I get a memory underflow error. Has anyone needed to do this before? Thanks in advance.
    -- Josh Matloff

    Hi Josh-
    It looks like you forgot to post the code still, but I'll take a stab at the problem anyway. It sounds like you're looking for a way to update a continuous waveform at runtime.
    You will need to stop the task in order to replace the write buffer information, but this will only be a small gap in operation. I have attached a modified LabVIEW shipping example that shows how to use value change events for any of the pertinent waveform parameters to either programmatically stop the task, replace the buffer, set timing and restart or to just pass the task information straight through. This will lead to continuous operation with no breaks at the output.
    Please let us know if this clears up your questions.
    Thanks-
    Tom W
    National Instruments
    Attachments:
    Cont Gen Voltage Wfm-Int Clk with Runtime Update.vi ‏134 KB

  • Recursively iterating over all child controls

    Hi All,
    I'm trying to recursively iterate over all child controls in my Flex 4 application, and I've been doing something like this to get the immediate children of a particular container:
    public static function getElements(parent:Object):Vector.<IVisualElement>{
         var result:Vector.<IVisualElement> = new Vector.<IVisualElement>();
         for(var i:int = 0; i < parent.numElements; i++){
              result.push(parent.getElementAt(i));
         return result;
    I can then call that function recursively.  It works--kinda.  The way it doesn't work is that if I call this object on the application object itself, it will only give me back elements that are visible in the current state.  As I move from one state to another, different elements are returned by my getElements method.
    So, is there are way I can find all child elements, whether or not they are visible in the current state?
      -Josh

    Hi Josh,
    So, I've come up with some quick code for you. However, I must add my disclaimers first:
    The code is incomplete in that it excludes children of children that don't use states, but includes children of children that are associated with states of the parent. I'm also definitely not an expert in how our states system works.
    I'm not sure what your use case for all of this is, but my best guess is that it would be better to find a different way to solve your problem than to go the route of introspecting states. It's a long and dirty road =).
    Other than that, I've attached the code for you. The meat of this is:
         *  Finds all elements in all states that use the states of the specified parent.
        public static function getAllElements(parent:UIComponent):Vector.<IVisualElement>
            var container:IVisualElementContainer = parent as IVisualElementContainer;
            if (!container)
                return new Vector.<IVisualElement>();
            var result:Vector.<IVisualElement> = getCurrentElements(container);
            var states:Array = parent.states;
            for each (var state:State in parent.states)
                for each (var addItems:AddItems in state.overrides)
                    var elt:IVisualElement = addItems.items as IVisualElement;
                    if (elt && !containsElement(result, elt))
                        result.push(elt);
            return result;
    This method takes the parent container (in my case, the application) and returns a vector of children elements that associate themselves with the states of this parent container. First, it grabs all the elements already created from the parent container. Next, it iterates over each state and then each AddItems of each state. The AddItems object contains the information and pointers to the specific element that will be "added" when the current state changes to that state. By calling addItems.items, we force the creation of the specific element which is returned to us. Now, we can use a simple containsElement() method to check for duplicates and build a list of elements that would be added to each of the states.
    Again, the code is finding all of the children of the provided parent in all of its parent's states; however, it also finds children of children that may be using the parent's states as well. But if the children of children are not using the parent's states then it will not be found (easily fixable if you recurse). In addition, knowing which elements belong to which container just from introspecting the State object is pretty complicated and involves understanding how addItems.apply() works.
    Anyway, I hope this helps you. I would be interested in hearing your use case since this code is pretty complicated. I'd like to see if I could help by finding a different approach for your problem.
    -Kevin

  • Control problem

    I create a swf by Flash locally which point to a flv in a
    remote flash media server, FLVplayback component included, it work
    fine locally. Uploaded to FMS3, played without the control problem,
    such as Play/Pause, seek bar.
    Is it something I need to configure in FMS, or in Flash.
    Please advice.
    Thanks!

    Between version 1.0 and 2.0 the API in the JBCL controls has
    changed. We are actually moving away from JBCL completely (please
    do send feedback if you have a comment on that) to a Swing and
    Infobus standard based library of visual JavaBeans.
    You will still be able to use the JBCL controls in JDeveloper
    2.0. The best thing to do is to take your 1.x based application
    AND the 1.x based JBCL.ZIP file into your new environment. This
    way you will be able to continue to use these apps and
    components. Taking the 1.x JBCL.ZIP file will make sure you have
    the same version of the JBCL library that you were used to in
    version 1.x.
    Hope this help,
    -Roel.
    Hans Duijn (guest) wrote:
    : Hi,
    : I developed an applet in v1 that worked fine. I tried to
    rebuild
    : the applet in v2 but some problems occured. One, The
    : ChoiceControl populated with the method
    : 'ChoiceControl1.setItems' but in v2, this does not work till a
    : explicitly called 'queryDataset.open'. Is the way to do it or
    do
    : I have to use special properties for the
    dataset...and...second,
    : I'm using an listControl that, in response to a selected item
    in
    : the ChoiceControl, changes frequently. No new list appears till
    : I update the applet the hard way (hide it and bring it to
    front)
    : or click the mouse on the hidden items. 'listControl.repaint()'
    : has no result. Am I doing something wrong? It worked in v1...
    : and third...when can we expect the final version 2?
    : Thanx.
    null

  • I down loaded two movies to watch on a flight, when I tried two watch either one of them, it said" not authorized for this content"   Not sure what this means. I don't think I have child control on.

    I Down loaded two movies to watch on a flight. When I tried to watch either one of them it said " not authorized to watch this content" and it would load to watch. I donot believe I have child controls on.

    I have read about some cases where movies rented or purchased on one device will not play on another device. Seems to happen mostly with Apple TV and iPads. One way some have worked around it is to cable from the downloaded device to a TV or Apple TV.
    Were these movies purchased or rented from iTunes? Not sure, but that almost sounds like a iTunes Password problem. Maybe try checking that you're signed in as the same account that purchased the movies.

  • Simulate signal controlling problem

    Hi
    I have this signal controlling problem. In 10,20,30,40,50 the sine wave stops. How can i avoid that?
    Attachments:
    PWM.vi ‏251 KB

    I'm more concerned about the Wait inside of a Timed Loop.  That is totally unnecessary.  Change the timed loop into a normal while loop.
    As far as the Simulate Signal, I have no clue.  The settings look find as far as I can tell.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • User Account Control Problems with Premier Elements 7 32 bit in 64 Bit Windows 7

    I found User Account Control Problems in other forums but didn't see much in Premiere Elements, so I hope this helps others who may be having problems with 32 bit programs in a 64 bit computor. When I first got my 64 bit I didn't have problems.
    Back in February I bought a Quad Core Desktop with Windows 7 64 bit. Haven't been on the forum for 7 months since I wrote in regarding importing video with the Pyro AV Link (Premiere Elements Tips and Tricks). I was having problems importing video which started after March 28 sometime, as that was the last time I didn't have a problem importing VHS. Took me a few months off and on to find out what worked.
    I started uninstalling Windows updates and any programs I had installed back to that point in time. Checked after uninstalling each item. The capture screen would come up on a delayed basis but clicking on capture did nothing. Although no driver is required for IE1394 (so they say) I read where some people using the Legacy driver had fixed some problems, so I switched to the Legacy. Seemed to work great (for a few minutes).
    I had even uninstalled and reinstalled PE7 but no difference. Finally I noticed a shield in the PE7 Desktop icon. Thats weird. Never had that before. Just decided to show up after I had done all of the stuff I mentioned. Turns out at some point in time since I've had the computor Windows 7 decided to flag my 32 bit program as misusing the 64 bit system. User Account Control. I never bothered too much with UAC and just clicked on the yes box wen it popped up asking if I wanted this or that to take control of my computor. I tried using the minimum setting for safety reasons, and then finally turned User Account Control off. Bingo! PE7 capture works again and still working.
    While I am not recommending that people arbitrarily turn UAC off, this appeared to be my problem. I would recommed that they try turning it off before uninstallin a bunch of stuff. Having a restore point may or may not have been a fix for me. I think one of the Windows Updates caused the problem but I am not going to uninstall any more stuff at this point, I have not been back on the internet or installed any more updates in my desktop. I am going to use my laptop for internet and used the desktop for video.
    I am guessing this could be a problem for any 64 bit systems trying to use 32 bit programs. IE: XP,Vista,Windows 7 64 bit. In Vista there is also Data Execution Prevention (DEP) which you can turn on or off, supposedly to prevent misuse of memory (as I understand it), but Win7 either doesn't have it or I haven't found where it's located.
    Maybe this has been covered in the forum somewhere and I missed reading it. Hope I am not too confusing. Anyway, whatever feedback you guys have would be great.  

    John,
        Thanks for your answer, and I did check out the link you suggested. However, I have Windows 7 Home Premium as most people have I think, and the XP program was not available. I started with Vista and now have Win 7. I never could navigate around in XP anyway so am content to just leave User Account Control off.
        Interesting side note to turning UAC off is that my desktop seemed to be using more of the CPUs, where half of them were "Parked" as I wrote in also about 7 months ago when I 1st got my desktop. I am pleased to say that video processing seems to go quicker with UAC off. Have to observe things some more to confirm.
        I just thought if others were having problems after installing Windows Updates and leaving UAC off worked then they could possibly pinpoint a problem.

  • I have a problem, i can't change my lockscreen wallpaper after i upgrade my iphone 4s to ios 5.1.1... Is there anyone who can help me?

    I have a problem, i can't change my lockscreen wallpaper? Doesnt work...is there anyone who can help me regarding this problem? Thx

    To help, we need more detailed information.
    --What steps are you trying?
    --What does the device tell you (any pop-ups or messages)?
    --Are you able to change the Home screen wallpaper, or is that affected too?
    --Are you the phone's owner/administrator, or is this a device used for work (assigned/administered by IT staff, possible on an Exchange server)?
    --Have you jailbroken the device?

  • Problem: Not able to change Signature field reason code Dynamically using signatureSetSeedValue

    Problem: Not able to change Signature Settings Dynamically.  
    What I want: Need to change the Signature Field Reason code Dynamically upon selecting Radio Button.
    Here is My Code:  
    var mydoc = xfa.resolveNode("FormData.P3_443.signature[2].ePadSignatureField3");
    mydoc.signatureSetSeedValue(
    reasons: ["Advisor"],
    flags: 8
    Error Message:
    TypeError: mydoc.signatureSetSeedValue is not a function
    9:XFA:FormData[0]:P3_443[0]:signature[2]:ePadSignatureField3[0]:validate'
       Source Code: Acrobat Code for Signature.
       // Obtain the signature field object:
    var f = this.getField("mySigFieldName");
    f.signatureSetSeedValue(
    { reasons: ["This is a reason", "This is a better reason"],
    flags: 8

    Problem: Not able to change Signature Settings Dynamically.  
    What I want: Need to change the Signature Field Reason code Dynamically upon selecting Radio Button.
    Here is My Code:  
    var mydoc = xfa.resolveNode("FormData.P3_443.signature[2].ePadSignatureField3");
    mydoc.signatureSetSeedValue(
    reasons: ["Advisor"],
    flags: 8
    Error Message:
    TypeError: mydoc.signatureSetSeedValue is not a function
    9:XFA:FormData[0]:P3_443[0]:signature[2]:ePadSignatureField3[0]:validate'
       Source Code: Acrobat Code for Signature.
       // Obtain the signature field object:
    var f = this.getField("mySigFieldName");
    f.signatureSetSeedValue(
    { reasons: ["This is a reason", "This is a better reason"],
    flags: 8

  • How do I use javascript or formcalc to reference child controls (not by name)

    Hi everyone,
    I've created a ton of reports in the past, and I'm now looking at creating some reusable objects so that other people can use advanced form functionality without having to learn to use scripts.
    A lot of the coding was acheived using this, .parent, etc. so that they can rename controls and subforms without having to worry about breaking scripts. One issue that I am having is that Some of my code looks at children controls, and references them by name (for example, I have some code that uses setfocus to move the user to the first field in a subform).
    In most languages, there are ways to refer to child controls via an indexer or an items/children array. i.e. Subform.items[0].rawValue.
    I know that this would pose some issues, but I think I could sort it out, if only I knew where to start. Is there some way to reference a child control without it's name?
    Thanks for your help!
    - Scott

    Hi Scott,
    The subform has a nodes collection you can loop though, as you suspected.  If might show up more than you want but you can test the className to see if it is a field and then ui.oneOfChild.className to work out what type of field. So;
    for (var i = 0; i < Subform1.nodes.length; i++)
        var n = Subform1.nodes.item(i);
        console.println(n.className + " " + n.name + " " + n.ui.oneOfChild.className);
    Hope this helps.
    Bruce

  • Problem Facing in Mass Changes

    Hi,
    I am facing problem in Mass Transfer -----> Changes. When trying to set a new depreciation rule. The process completes normally
    1. When Preview Report shows it shows the asset preview of changes of depriciation rule.
    2. then Run Process completes successfully
    3. When we see the Review Report it does not changes Data...
    Please help me in this regards.
    Regards,
    Rubayat Newaz

    Hi Manish,
    Thank You for your reply these are your query answers..
    1) Did you try and verify the individual asset as to whether the changes have been applied or not?
    Ans: I have checked the review report and no asset changed its life. Then I arbitrarily selected some assets and found out the same.
    2) Does the Run Program lists out any error or exception in the Output or the Log file
    Ans: No error. It says successful for each asset.
    3) Does the Review report lists out any exceptions?
    Ans: No.
    Thanks
    Manish

  • How do i set tab control page size programmatically?

    Hi,
    I have a tab control in my program and each page has different amounts of controls on it. I would like to know how I can make the tab control pages resize automatically, only to fit the controls on the page and not have extra space underneath that other pages require.

    romulus wrote in message news:<[email protected]>...
    > Hi,
    >
    > I have a tab control in my program and each page has different amounts
    > of controls on it. I would like to know how I can make the tab control
    > pages resize automatically, only to fit the controls on the page and
    > not have extra space underneath that other pages require.
    You can use the tab control property 'PaneDimension' to
    programatically change the size of the tab control. To
    programatically find the areas occupied by the controls on each page:
    Use the 'Pages' property of the tab control to get a reference to the
    desired page; wire that to a property node and select the
    'ControlsOnPage[]' property; iterate through all the control
    refere
    nces, getting the position and bounds of each control, using
    'Max & Min' and shift registers to find the extent occupied by the
    controls.
    Paul Cardinale

  • Programmatic to change the Frame title

    Hi all
    It's not possible programmatic to change the Frame title. Is there any way (not-documented) to change it?

    If I am understanding your question, you could do this:
    Set_Window_Property('WINDOW NAME', TITLE, 'ANY TITLE');
    I have used this on the When-New-Form-Instance trigger.
    Edit: Sorry I miss-read your question. My solution is for the window's title not the frame.
    Sure wish there was a way to delete my incorrect post.
    Edited by: Darksky on Mar 18, 2010 10:53 AM

  • Problem with Doc type change in ME51n

    During ME51N, when I change the document type of PR system keeps on Processing/busy mode, takes long time (almost 5min) to effect the doc type change in drop down.
    there is no processing time taken if i enter the  the other data in the transaction like quantity,Plant,Purchasing organisation.
    So my Problem is that system takes too much type only when I try to change the Doc Type of PR in ME51N.
    (Note: In debug mode I try to locate the pain point, I noticed that system stuck at module 'Even_pie_finished'...there it keeps on processing continuously.)
    Please input on problem. I am putting this on MM forum at times.

    Thanks for Reply,
    But the Problem is not on changing the Doc type rather Problem is with too much time taken by system when I try to change the doc Type of PR. Prerequisites related to changing the doc type are there in place.
    System goes in into processing mode for long time movement I change the Doc type.
    Jurgen sir, Dev & Prasoon please suggest some input.
    Just to correct in my question module name is 'event_pai_finished'
    There must some infinite loop is getting executed in programme i guess.

  • Hi , I cant use the music bar in the control center I can only change the volume but I cant skip tracks or pause the song or play it. anyone knows the solution or the reason please?

    Hi , I cant use the music bar in the control center I can only change the volume but I cant skip tracks or pause the song or play it. anyone knows the solution or the reason please?

    That's normal.
    Use the Touch ID to unlock passcode.
    http://help.apple.com/iphone/7/#/iph672384a0b

Maybe you are looking for

  • How to to read/write GIf files (not animated)

    Hi,      Is there a labview vi(s) that will read a gif file and display it and also that will wirte it? I am interested in non animated gifs.      Louis

  • Is it possible have ISA-type functionality using EP alone?

    We are implementing r3/enterprise (ECC 5.0). we need to provide access to a few large customers (Distributirs/resellers) for Order entry & enquiry of their own orders etc..(with variant configuration). Internet Sales (ISA) seems to provide this funct

  • MB_SELECT_GR_BLOCKED_STOCK problem

    Hi all , i am facing a problenm in using the function module 'MB_SELECT_GR_BLOCKED_STOCK' code is as below DATA: BEGIN OF xtab2 OCCURS 10,              werks LIKE ekpo-werks,              matnr LIKE ekpo-matnr,              ebeln LIKE ekpo-ebeln,    

  • How to open forms in separate Java Applet rather then Internet explorer

    Aslam o Alikum (Hi) I want to open my form in separate Java Applet rather then in Internet Explorer. Please help Best Regards, Nasir Zeeshan.

  • After clean install Preview and MS Word won't open any documents.

    Did a clean install of Mavericks. Restored my files from dropbox. (thousands of pdf and word files, doc. and docx) Now, preview and MS Word won't open any documents. Preview fails to open PDF so as MS Word fails to open any doc or docx file. Both cra