Tabnavigator

pliz help me.i have a cfform with 3 tabs.one with a form for
client details ,the other for property details and the third for
payment details.each of these forms has three buttons
add/edit/delete.how do i code those buttons to interact with my
database.it looks like its not the ordinary way like u had one
form.

> how do i code those buttons to interact
> with my database.it looks like its not the ordinary way
like u had one form.
What makes you say that?
Adam

Similar Messages

  • How can I initialize all TabNavigator Tabs upon a state change?

    Here's the basic goal. I want to provide two views to the
    user that display the same panels. I configured each view as a
    separate state but I am having trouble initializing each of the tab
    views since they are only created by Flex when the user first
    selects it. I need them all created when the user changes to that
    state so that I can insert my view objects. Does that make sense?
    Ok, how about an example program. I define three view objects
    in ActionScript which will be used in two different states. I use
    AddChild to put them in the proper layout location. The problem is
    with the Tab state. The AddChild operation only works for the first
    tab because it is visible. The other two tabs don't get setup
    properly. Can anyone help me resolve this?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical"
    creationComplete="onCreationComplete()">
    <mx:Script>
    <![CDATA[
    import mx.containers.VBox;
    import mx.controls.Label;
    [Bindable] public var view1:VBox;
    [Bindable] public var view2:VBox;
    [Bindable] public var view3:VBox;
    private function onCreationComplete():void
    var label1:Label = new Label();
    var label2:Label = new Label();
    var label3:Label = new Label();
    label1.text = "This is view 1.";
    label2.text = "This is view 2.";
    label3.text = "This is view 3.";
    view1 = new VBox();
    view1.label = "View 1";
    view1.addChild(label1);
    view2 = new VBox();
    view2.label = "View 2";
    view2.addChild(label2);
    view3 = new VBox();
    view3.label = "View 3";
    view3.addChild(label3);
    currentState = "wizardState";
    private function changeState():void
    switch(stateBox.selectedItem.data)
    case 0: currentState = 'wizardState'; break;
    case 1: currentState = 'tabState'; break;
    ]]>
    </mx:Script>
    <mx:Panel id="mainPanel" title="Tab View Bug" width="400"
    height="320"/>
    <mx:ComboBox id="stateBox" change="changeState()">
    <mx:dataProvider>
    <mx:Object label="Wizard" data="0"/>
    <mx:Object label="Tabbed" data="1"/>
    </mx:dataProvider>
    </mx:ComboBox>
    <mx:states>
    <mx:State name="wizardState">
    <mx:AddChild relativeTo="{mainPanel}"
    position="lastChild">
    <mx:HBox width="100%" height="100%"
    verticalAlign="top">
    <mx:ToggleButtonBar id="wizardButtonBar" width="20%"
    direction="vertical"
    dataProvider="{wizardViewStack}"/>
    <mx:ViewStack id="wizardViewStack" width="80%"
    selectedIndex="{wizardButtonBar.selectedIndex}"/>
    </mx:HBox>
    </mx:AddChild>
    <mx:AddChild target="{view1}"
    relativeTo="{wizardViewStack}" position="lastChild"/>
    <mx:AddChild target="{view2}"
    relativeTo="{wizardViewStack}" position="lastChild"/>
    <mx:AddChild target="{view3}"
    relativeTo="{wizardViewStack}" position="lastChild"/>
    </mx:State>
    <mx:State name="tabState">
    <mx:AddChild relativeTo="{mainPanel}"
    position="lastChild">
    <mx:TabNavigator id="tabViewStack" width="100%"
    height="100%">
    <mx:VBox label="Tab 1" id="tab1"/>
    <mx:VBox label="Tab 2" id="tab2"/>
    <mx:VBox label="Tab 3" id="tab3"/>
    </mx:TabNavigator>
    </mx:AddChild>
    <mx:AddChild target="{view1}" relativeTo="{tab1}"
    position="lastChild"/>
    <mx:AddChild target="{view2}" relativeTo="{tab2}"
    position="lastChild"/>
    <mx:AddChild target="{view3}" relativeTo="{tab3}"
    position="lastChild"/>
    </mx:State>
    </mx:states>
    </mx:Application>

    Ok, here is an even simpler scenario. I take each view from
    the default state and put them in the new tab view when the state
    changes. If you compile and run this example, the only view that
    makes it into the tabview is the one that was active when the state
    changed. Why is that?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical">
    <mx:Script>
    <![CDATA[
    private function changeState():void
    switch(stateBox.selectedItem.data)
    case 0: currentState = ''; break;
    case 1: currentState = 'tabState'; break;
    ]]>
    </mx:Script>
    <mx:Panel id="mainPanel" title="Tab View Bug" width="400"
    height="320">
    <mx:HBox id="wizardView" width="100%" height="100%"
    verticalAlign="top">
    <mx:ToggleButtonBar id="wizardButtonBar" width="20%"
    direction="vertical"
    dataProvider="{wizardViewStack}"/>
    <mx:ViewStack id="wizardViewStack" width="80%"
    selectedIndex="{wizardButtonBar.selectedIndex}"
    creationPolicy="all">
    <mx:Canvas id="view1" label="Part 1" >
    <mx:TextInput text="This is view 1"/>
    </mx:Canvas>
    <mx:Canvas id="view2" label="Part 2">
    <mx:TextInput text="This is view 2"/>
    </mx:Canvas>
    <mx:Canvas id="view3" label="Part 3">
    <mx:TextInput text="This is view 3"/>
    </mx:Canvas>
    </mx:ViewStack>
    </mx:HBox>
    </mx:Panel>
    <mx:ComboBox id="stateBox" change="changeState()">
    <mx:dataProvider>
    <mx:Object label="Wizard" data="0"/>
    <mx:Object label="Tabbed" data="1"/>
    </mx:dataProvider>
    </mx:ComboBox>
    <mx:states>
    <mx:State name="tabState">
    <mx:AddChild relativeTo="{mainPanel}"
    position="lastChild">
    <mx:TabNavigator id="tabView" width="100%" height="100%"
    creationPolicy="all">
    <mx:Canvas label="Tab 1" id="tab1"/>
    <mx:Canvas label="Tab 2" id="tab2"/>
    <mx:Canvas label="Tab 3" id="tab3"/>
    </mx:TabNavigator>
    </mx:AddChild>
    <mx:RemoveChild target="{view1}"/>
    <mx:AddChild target="{view1}" relativeTo="{tab1}"/>
    <mx:RemoveChild target="{view2}"/>
    <mx:AddChild target="{view2}" relativeTo="{tab2}"/>
    <mx:RemoveChild target="{view3}"/>
    <mx:AddChild target="{view3}" relativeTo="{tab3}"/>
    <mx:RemoveChild target="{wizardView}"/>
    </mx:State>
    </mx:states>
    </mx:Application>

  • Flex 3 TabNavigator getting tab name when tab clicked

    Hi All, I am using Flex 3.
    I have <mx:TabNavigator  id="dbtabs" width="100%" height="100%" click="changeTabs()"  />
    I am also adding tabs dynamically. 
    In the grand scheme of things, I want to let a user add tabs as needed and chose what content is on the tab.  This is saved data, so when they come back I need to reload their saved settings.
    What I am trying to do is find out how to get the index of the tab when it is clicked. Right now I have to click the tab then click in the vbox to get the selectedIndex.  Is there a way to get the selectedIndex as soon as the tab is clicked?
    Thanks.

    private function handleTabClick(evt:IndexChangedEvent):void
           var i:int = evt.newIndex;
    <mx:TabNavigator change="handleTabClick(event)">
            <mx:Canvas width="200" height="200" label="Tab 1"/>
            <mx:Canvas width="200" height="200" label="Tab 2"/>
    </mx:TabNavigator>
    Dany

  • How can you change the style of a flash tabnavigator with css

    I'd like to change the colors of a tabnavigator in flash
    form.
    I found an example how to change the layout for a panel but
    it doesn't inherate it to my tabnavigator.
    Here a simple example for a panel that works:
    quote:
    <cfsavecontent variable="contentPanelStyle">
    panelBorderStyle:'roundCorners';
    backgroundColor:#EFF7DF;
    headerColors:#CBEC84, #B0D660;
    </cfsavecontent>
    <cfform name="myform" width="420" format="Flash"
    timeout="100" >
    <!--- skinned --->
    <cfformgroup type="panel" label="With styles"
    style="#contentPanelStyle#" width="400">
    <cfinput type="text" name="someinput" label="your name"
    />
    </cfformgroup>
    </cfform>
    Actually, I just want to colorize my tabnavigator items
    (don't want even a panel around it). How can I do this, as example
    with the same colors like the panel?
    pawel

    Found 1 solution for the active Tab
    quote:
    <cfform name="myform" width="420" format="Flash"
    timeout="100" >
    <cfformgroup type="tabnavigator"
    style="themeColor:##CC0000;">
    <cfformgroup type="page" label="Tab 1">
    <cfinput type="text" name="someinpu1t" label="your name"
    />
    </cfformgroup>
    <cfformgroup type="page" label="Tab 2">
    <cfinput type="text" name="someinput2" label="your name"
    />
    </cfformgroup>
    </cfformgroup>
    </cfform>
    But still, how do I controll the colors of the inactive Tab
    and the highlight Tab (rollover mouse)?
    pawel

  • How to access a function in a tabnavigator container?

    I have a tabNavigator container that I create the tabs using
    the following code:
    var tabFieldsBase1:Canvas = new Canvas();
    var _userFields:userFields = new userFields;
    tabFieldsBase1.label = "User Fields";
    _userFields.id = "userFields";
    tabFieldsBase1.addChild(_userFields);
    tabHolder.addChild(tabFieldsBase1);
    inside the tabed document/class I have a function/method
    named: startMeUp(). How can I call this function in the currently
    active tabed class using AS3 in my app?
    I've tried many ways including: var testTemp:Object =
    tabHolder.selectedChild.getChildAt(0);
    testTemp.startMeUp();
    userFields.startMeUp();
    Thanks for the help;
    Carlos

    Thanks Tracy for your input, I think my problem is
    understanding Flex 2 scopes properly.
    I'm under the impression that when you create an mxml file
    compoenent that Flex 2 converts that into an AS2 class, but I guess
    not.
    I solved this situation by using Actionscript 3 classes to
    build my tabs. Now when my main form changes I'm able to
    automatically synchronize the displayed tab by calling a method in
    the class.
    Thanks!!
    Carlos

  • How do I have a tabnavigator page specific cfsavecontent?

    How do I write this so that a button on a tabnavigator page
    calls javascript function
    that will pass the correct identifier for the page?
    Any ideas?
    <script language='JavaScript'>
    <cfoutput>
    function GotoPage(ID)
    var sLocation;
    sLocation = "gotoPage.cfm?ID=" + ID;
    parent.location = sLocation;
    </cfoutput>
    </script>
    </head>
    <body >
    <h1>Information</h1>
    <cfoutput>
    <cfform name='form_Info' format="flash" method="POST"
    width="90%" height="500" skin="haloBlue" action="NextPage.cfm">
    <cfformgroup type="hbox" label="Client">
    <cfformitem type="html">
    <cfinput type="text" id="ClientName" name="ClientName"
    value="John Smith, Inc." size="60" label="Name: "/>
    </cfformitem>
    </cfformgroup>
    <cfformgroup type="tabnavigator">
    <cfformgroup type="page" label="John Smith">
    <cfformitem type="html">
    <cfinput type="text" id="EmployeeName"
    name="EmployeeName" value="John Smith" size="60" label="Name:
    "/>
    </cfformitem>
    <cfinvoke
    component="PhoneNumbers"
    method="List"
    returnvariable="rsContactInfo"
    >
    <cfformgroup type="tabnavigator" id="tabContactInfo">
    <cfloop query="rsContactInfo">
    <cfformgroup type="page" label="#rsContactInfo.type#">
    <cfformitem type="html">
    <cfinput type="text"
    id="ContactInfoPhone_#rsContactInfo.id#"
    name="ContactInfoPhone_#rsContactInfo.id#" size="20" maxlength="14"
    mask="(999) 999-9999" validate="telephone"
    validateAt="onBlur,onSubmit" message="Error in Phone
    entry.\nFormat: (999)999-9999" value="#rsContactInfo.phone#"
    label="Phone: "/>
    </cfformitem>
    <!--- Problem: --->
    <cfsaveContent variable="gotoPagejs">
    <!--- Use getURL to call JS from Flash --->
    getURL("javascript:GotoPage(#rsContactInfo.id#);");
    </cfsavecontent>
    <cfinput name="Order" type="button" value="Create Book
    Order" onClick="#gotoPagejs#">
    </cfformgroup>
    </cfloop>
    </cfformgroup>
    </cfformgroup>
    </cfformgroup>
    <cfinput name="Save" type="submit" value="Save
    Changes">
    </cfform>
    </cfoutput>
    </body>
    </html>

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    * http://kb.mozillazine.org/Zoom_text_of_web_pages
    You can use one of these extensions to adjust the default font size and page zoom on web pages:
    * Default FullZoom Level - https://addons.mozilla.org/firefox/addon/6965
    * NoSquint - https://addons.mozilla.org/firefox/addon/2592

  • Tabnavigator with swfloader problem

    Hello,
    I'm trying to run a tabnavigator component with each tab having a separate swfloader.  Each swfloader is a different datagrid that I populate with the SystemManager.application['functionName'] = 'parameters' method.
    My problem is that when I a few tabs, only the very last tab's datagrid will have data, and the others will be blank.  What's wrong with it?
                public var matrixLoader:SWFLoader;
                public function addTab(tabName:String, swfURL:String, setFunc:Array, searchString:Array):void {
                    var tabCanvas:Canvas = new Canvas();
                    tabCanvas.label = tabName;
                    tabCanvas.id = tabCanvas.label;
                    tabCanvas.horizontalScrollPolicy = "off";
                    tabCanvas.verticalScrollPolicy = "off";
                    functionName = new Array(setFunc);
                    paramString = new Array(searchString);
                    matrixLoader = new SWFLoader();
                    matrixLoader.minHeight = 100;
                    matrixLoader.minWidth = 100;
                    matrixLoader.percentWidth = 100;
                    matrixLoader.percentHeight = 100;
                    matrixLoader.addEventListener(FlexEvent.UPDATE_COMPLETE, created);
                    matrixLoader.load(swfURL);
                    tabCanvas.addChild(matrixLoader);
                    tabnavi.addChildAt(tabCanvas,tabnavi.numChildren);
                public var loadedSM:SystemManager;
                private function created(event:FlexEvent):void {
                    loadedSM = new SystemManager();
                    if (matrixLoader.content != null) {
                        loadedSM = SystemManager(matrixLoader.content);
                        if (loadedSM.application != null) {
                            for(var i:int = 0; i < functionName.length; i++){
                                loadedSM.application[functionName[i].toString()] = paramString[i].toString();
    Any help would be greatly appreciated.

    Hopefully before you maybe loaded the subapp via
        swfLoader1.source="subapp.swf?foo=1
        swfLoader2.source="subapp.swf?foo=2
    And code somewhere in the Application checked parameters.foo and set foo
    appropriately:
        <mx:Application initialize="checkFoo()"...
        <mx:Script>
            public var foo:int;
            private function checkFoo():void
                foo = parameters.foo;
    Now you just load the module once w/o parameters
        private var modInfo:IModuleInfo = ModuleManager.getModule("module.swf");
    And once the module is ready:
        var module1:IMyModuleInterface = modInfo.factory.create();
        module1.foo = 1;
    And
        var module2:IMyModuleInterface = modInfo.factory.create();
        module2.foo = 2;

  • A Bug in mx:TabNavigator ? See small example here

    Hi all,
    Maybe it's a bug in the TabNavigator component... should I
    fill a new bug in the system or is that behaviour well known?
    Just compile the code attach to this message.
    It's a simple application with a mx:TabNavigator and some
    buttons. When you create a new tab, via ActionScript, the 1st tab
    ca be automatically selected.
    But when you delete all the tabs (either by calling
    removeAllChildren(), or by calling subsequently removeChildAt(...)
    on every tabs), you wont be able to select the 1st tab, unless you
    create a second one, select the new one and select the 1st one
    afterward.
    Is there any workaround for this?!
    I really need to find a fix now, I can't wait another
    revision of the Flex framework . . .
    Please someone, help me!!!
    thanks!!!
    P.S. It's not a bug in the attach code, anybody can try this
    at home, with the same result...

    This is a bug and I just checked the source.
    It seems that selectedIndex remains as 0 when you remove all.
    When you addChild again, it checks if the index of added children
    == selectedIndex and if yes, it do not focus. The patch should
    affect removeAllChildren and removeChild, by setting -1 to
    selectedIndex when numChidren reaches 0.
    Where do I report this bug? It's the second one I found....
    Regards,
    Guilherme Blanco

  • Error in app with TabNavigator loaded with SWFLoader - WebKit browsers

    Hiya,
    I use a flex app (A) to load another flex app (B) using SWFLoader (both built using Flex Builder 3 sometime ago).
    Everything works fine as expected across all (IE, FF, Chrome, Safari) desktop browsers.
    However, if I use a TabNavigator within the flex app (B) then when you click on any of the tabs it unloads the flex app (B) and re-starts flex app (A). This behaviour is limited to Webkit based browsers (Chrome & Safari) the rest of the browsers (IE, FF) it works fine.
    I wonder if anyone can throw some light on this.
    Many thanks
    Kind regards,
    klem

    Resolved:
    Replacing the HTML template files with the latest copy from Flash Builder 4.5 seemed to resolve the issue. It appears they have replaced the AC_OETags.js with swfobject.js
    Tried to explore upgrading the code to 4.5 but seemed to throw a lot of incompatibilities, created a test/dummy project instead in 4.5 and used the html file created to replace the old html files created by Flex Builder 3.0
    Clearly not a very common problem, but hope this saves someone time and effort.
    Thanks Harui

  • Tabnavigator validates when switching pages??

    I would like to build a cfform with a tabnavigator and two pages. Each page contains fields with some validation rules. I find that when the user switches pages, any integer, range, or other numeric validation rules are fired immediately. Simple isrequired style rules are not.
    It is most annoying, since it looks to the user like there are errors before he has even had a chance to enter data.
    <cfform name="myform" height="400" width="400" format="Flash" timeout="600">
    <cfformgroup type="tabnavigator" id="tabBar">
      <cfformgroup type="page" label="Page 1">
       <cfinput type="text" name="Name" label="Name"
        required="Yes" message="Please enter a name.">
      </cfformgroup>
      <cfformgroup type="page" label="Page 2">
       <cfinput type="text" name="age" label="Age" value="0"
        validate="range" range="1,1000000" message="This value must be greater than 0.">
      </cfformgroup>
    </cfformgroup>
    </cfform>

    Chris,
    The DB is Oracle 10g, OS is Windows 2003 Server, The Web Server is in the same machine. The server is Dell 1420 SC Xeon @ 2.8GHx, 512MB RAM. It has not much traffic since we are on the development phase, so i don't think it is a capacity problem.
    The problem happens when connecting from the internet as well as from the intranet.
    I have not seen the Apache access logs, I will see them and update the thread.
    Thanks.
    Francisco.

  • One instance of a component in two TabNavigator children

    Hello,
    I currently use a TabNavigator composed of two tabs in which
    I have two instances of the same component and I was wondering if
    it were possible to have a unique instance in those two tabs. Let's
    suppose that I have a TextInput in the tab `A' of my TabNavigator,
    is it possible to have the same instance of this TextInput in the
    `B' tab ?
    The component in my problem is a big component that I would
    like it to be shared in those two tabs without using something
    complicated as addChild() removeChild() on the fly or something too
    complex. For now, I have simply a common model to those two
    instances but I am mostly worried about memory use, this component
    is huge and it would be really cool to have the same instance.
    The best would be something like having a reference in the
    `B' tab of the instance of the `A' like a pointer but I do not have
    enough knowledge in Flex to conceptualize such architecture, so if
    anyone has an idea, I'm all hears. Thanks

    "Bobito7" <[email protected]> wrote in
    message
    news:ghr1v2$1hm$[email protected]..
    > Hello,
    >
    > I currently use a TabNavigator composed of two tabs in
    which I have two
    > instances of the same component and I was wondering if
    it were possible to
    > have
    > a unique instance in those two tabs. Let's suppose that
    I have a TextInput
    > in
    > the tab `A' of my TabNavigator, is it possible to have
    the same instance
    > of
    > this TextInput in the `B' tab ?
    >
    > The component in my problem is a big component that I
    would like it to be
    > shared in those two tabs without using something
    complicated as addChild()
    > removeChild() on the fly or something too complex. For
    now, I have simply
    > a
    > common model to those two instances but I am mostly
    worried about memory
    > use,
    > this component is huge and it would be really cool to
    have the same
    > instance.
    >
    > The best would be something like having a reference in
    the `B' tab of the
    > instance of the `A' like a pointer but I do not have
    enough knowledge in
    > Flex
    > to conceptualize such architecture, so if anyone has an
    idea, I'm all
    > hears.
    > Thanks
    There's an example of something like that with an Accordion
    here:
    http://flexdiary.blogspot.com/2008/09/groupingcollection-example-featuring.html
    It does use addChild, though (addChild handles removeChild,
    so you don't
    need to call it separately.
    HTH;
    Amy

  • 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?

  • Avoid showing of a canvas in TabNavigator while playing effect?

    Hello,
    I´m using the great distorsion effect of Alex Uhlmann (part of Tour de Flex) in a TabNavigator with Canvas containers. The effect works fine but while fireing the IndexChangedEvent by pressing a tabsheet for a blink of an eye the target-canvas gets visible before the effect should make it visible which is very annoying.
    As you can see in the Code-Snippet
    The function  playrotate() which is called in the EventHandler only set the right parameters for the CubeRotator method, which create an effectinstance and playing the effect.
    public  
    function ChangeListener(e:IndexChangedEvent):void{oldI = e.oldIndex;
    newI = e.newIndex;
    playrotate();
    private function CubeRotator(DC:String, oldI:int, newI:int):void{  
    var cr:CubeRotate = newCubeRotate( navtab.getChildAt(oldI) );cr.siblings = [ navtab.getChildAt(newI) ];
    if( DC == DistortionConstants.LEFT ){cr.direction = DistortionConstants.LEFT;
    else{cr.direction = DistortionConstants.RIGHT;
    cr.horizontalLightingLocation = DistortionConstants.LEFT;
    cr.duration = 1000;
    cr.distortion = 40;
    cr.play();
    If somebody has an idea how to avoid this behaviour it would be great.
    Thanks to everybody answering

    Well for what it's worth...
    I agree that it's a bad idea using a canvas like that.
    Check this out:
    http://social.technet.microsoft.com/wiki/contents/articles/29777.wpf-property-list-editing.aspx
    Baically, it puts your label and edit controls into a collection of contentontrols presented by a listbox of itemscontrol.
    <ListBox HorizontalContentAlignment="Stretch" Background="AliceBlue">
    <ListBox.Resources>
    <Style TargetType="{x:Type TextBox}">
    <Setter Property="HorizontalAlignment" Value="Stretch"/>
    </Style>
    </ListBox.Resources>
    <local:EditRow LabelFor="Label for property One:" >
    <TextBox Text="aaaa"/>
    </local:EditRow>
    <local:EditRow LabelFor="Label for Property Two:">
    <TextBox Text="bbbb"/>
    </local:EditRow>
    <local:EditRow LabelFor="Label for Property Three:">
    <DatePicker/>
    </local:EditRow>
    <local:EditRow LabelFor="Label for Property Four:">
    <TextBox Text="dddddd"/>
    </local:EditRow>
    <local:EditRow LabelFor="Label for Property Five:">
    <TextBox Text="eeee"/>
    </local:EditRow>
    <local:EditRow LabelFor="Label for Property Six:">
    <TextBox Text="fffffff"/>
    </local:EditRow>
    <local:EditRow LabelFor="Label for Property Seven:">
    <TextBox Text="ggggg"/>
    </local:EditRow>
    <local:EditRow LabelFor="Label for Property Eight:">
    <TextBox Text="hhhhhhhhhhh"/>
    </local:EditRow>
    </ListBox>
    Listbox has a scrollbar for zero effort and there's no messing about working out all the positioning of each control.
    Because editrow is a contentcontrol you can put any old control in it - textbox, passwordbox.... whatever you like.
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • TabNavigator tabs collapsed

    I am using data binding to populate a canvas label in a TabNavigator.  The actual number returned is correct, however the non-selected tabs do not show the text that they are set to, because the tab label is only about 20 pixels wide.  If I click on the tab that is too narrow, it repaints itself, displaying all text at the proper with.  How can I tell the Canvas to keep it's label wide enough to see all the text therein, at all times?   (The canvas.label.length property is read only, and there is no repaint, refresh method)
    <mx:TabNavigator x="6" y="77" width="366" height="487">
           <mx:Canvas label="Subjects: {grdSBJs.dataProvider.length}"

    Hi Alex, the code is contained in the .zip attached to the previoius message.  However, here it is, pasted into this message body.
    --------------  START OF CODE LISTING --------------------
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768">
        <mx:TabNavigator x="469" y="216" width="318" height="200">
            <mx:Canvas label="Subjects {grd1.dataProvider.length}" width="100%" height="100%">
                <mx:DataGrid x="12" y="17" width="277" height="124" id="grd1">
                    <mx:columns>
                        <mx:DataGridColumn headerText="Tab 1 Col 1" dataField="col1"/>
                        <mx:DataGridColumn headerText="Tab 1 Col 2" dataField="col2"/>
                        <mx:DataGridColumn headerText="Tab 1 Col 3" dataField="col3"/>
                    </mx:columns>
                </mx:DataGrid>
            </mx:Canvas>
            <mx:Canvas label="Sessions {grd2.dataProvider.length}" width="100%" height="100%">
                <mx:DataGrid x="13" y="5" width="279" height="148" id="grd2">
                    <mx:columns>
                        <mx:DataGridColumn headerText="Tab 2 Col 1" dataField="col1"/>
                        <mx:DataGridColumn headerText="Tab 2 Col 2" dataField="col2"/>
                        <mx:DataGridColumn headerText="Tab 2 Col 3" dataField="col3"/>
                    </mx:columns>
                </mx:DataGrid>
            </mx:Canvas>
            <mx:Canvas label="Images {grd3.dataProvider.length}" width="100%" height="100%">
                <mx:Label x="9" y="9" text="I'm on Tab 3"/>
                <mx:DataGrid x="13" y="13" width="282" id="grd3">
                    <mx:columns>
                        <mx:DataGridColumn headerText="Tab 3 Col 1" dataField="col1"/>
                        <mx:DataGridColumn headerText="Tab 3 Col 2" dataField="col2"/>
                        <mx:DataGridColumn headerText="Tab 3 Col 3" dataField="col3"/>
                    </mx:columns>
                </mx:DataGrid>
            </mx:Canvas>
        </mx:TabNavigator>
        <s:TextArea x="96" y="31" height="106" width="500">
            <s:text><![CDATA[Notice, in the src code and the TabNav in design mode, the tabs contain some text, and are visible (wide).  However, at runtime, the tabs are narrow, and contain no text.  The tabs should show the text that I entered in the source code "Subjects", "Sessions" and "Images" followed by either nothing, or zero.]]></s:text>
        </s:TextArea>
        <mx:Label x="158" y="218" text="Look here at the TabNav, not the column headers. ----&gt;" width="308"/>
    </s:Application>
    --------------  END OF CODE LISTING --------------------

  • TabNavigator - How to change what happens when a user clicks a tab

    I am using a TabNavigator in my Flex application and I'd like
    to be able to change what happens when a user clicks a tab on the
    TabNavigator. I'd like to be able to handle the click on the tab
    myself and stop Flex from perfoming it's default actions. Anyone
    have a clue how to do this? Any help would be much appreciated!
    Mike

    Yeah, in the following code, the changeHandler has an effect
    but the click effect does not:
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml">
    <mx:Script>
    <![CDATA[
    private function clickHandler():void{
    accounts.setStyle("fontSize",20);
    stocks.setStyle("fontSize",20);
    futures.setStyle("fontSize",20);
    private function changeHandler():void{
    accounts.setStyle("fontSize",7);
    stocks.setStyle("fontSize",7);
    futures.setStyle("fontSize",7);
    ]]>
    </mx:Script>
    <mx:TabNavigator borderStyle="solid"
    click="clickHandler()" change="changeHandler()">
    <mx:VBox id="accounts" label="Accounts"
    width="300"
    height="150">
    <mx:Label text="Accounts"/>
    </mx:VBox>
    <mx:VBox id="stocks" label="Stocks"
    width="300"
    height="150">
    <mx:Label text="Stocks"/>
    </mx:VBox>
    <mx:VBox id="futures" label="Futures"
    width="300"
    height="150">
    <mx:Label text="Futures"/>
    </mx:VBox>
    </mx:TabNavigator>
    </mx:Application>

  • TabNavigator's tab dynamic visibility handling problem.

    Hello All,
    I am facing problem in TabNavigator component.
    My application has one tabnavigator with 4 tabs. (T1,T2,T3,T4)
    Tabs visibility is depend on data which are load in those tabs.
    If data is getting Null from database for T2, T2 tab will not displayed. Only other 3 are displayed.
    I have tried this....
    myTabNavigator.getTabAt(myTabNavigator.getChildIndex(myT2tab)).visible = false;
    myTabNavigator.getTabAt(myTabNavigator.getChildIndex(myT2tab)).includeInLayout = false;
    but problem is if once tab is hide by above code, will not visible again by setting visibile & includeInLayout property to true.
    Anyone else noticed this, have any suggestions?
    Thank you.

    Hi Tejas S Patel,
    I dont see any such kind of problem...I have run a test...it works perfectly fine.
    Below is the sample test I have done..
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:TabNavigator width="103" id="tabone">
      <mx:Canvas label="First Canvas" width="100%" height="100%">
       <mx:Label text="First Canvas"/>
      </mx:Canvas>
      <mx:Canvas label="Second Canvas" width="100%" height="100%">
       <mx:Label text="Second Canvas"/>
      </mx:Canvas>
      <mx:Canvas label="Third Canvas" width="100%" height="100%">
       <mx:Label text="Third Canvas"/>
      </mx:Canvas>
    </mx:TabNavigator>
    <mx:HBox top="100">
      <mx:Button id="btn1" label="HIDE SECOND TAB" click="tabone.getTabAt(1).visible=false;tabone.getTabAt(1).includeInLayout=false;"/>
      <mx:Button id="btn2" label="SHOW SECOND TAB" click="tabone.getTabAt(1).visible=true;tabone.getTabAt(1).includeInLayout=true;"/>
    </mx:HBox>
    </mx:Application>
    Thanks,
    Bhasker Chari

Maybe you are looking for

  • Outlook 2007/2010 hangs on Windows 7

    Hi all, We are all of suddenn facing issue where Outlook hangs/freezes or stop responding while accessing the pst files over the network. The machines are running on Windows 7 with either Outllok 2007/2010. Exchange server version used is 2003 Sp2 ru

  • Error 8003 - can't empty trash

    I have deleted loads of ex-vidio clip files from iMovie and have got down to the last few. The trash will not delete these saying Error 8003. I am trying to reduce the files in my external 1TB drive which also contains back-ups of my hard drive and T

  • Using Java Advanced Imaging (JAI) in Applet

    I'm trying to port a JAI user interface to an applet using Apache Tomcat. When I try to display an image in the applet I get an exception and I have no idea what the cause is. I've opened up security completely (temporarily) to ensure that I'm not ge

  • Export data to excel without header in OBIEE

    Dear experts, I have some reports in OBIEE and I want to export them to excel or text(.csv), I want to export without header . How can I do that? Regards, David

  • User statuses and budgeting

    Hi Experts, I want control on generation of PR , PO before project has been budgeted. For that I have created status profile and 2 status as BUGD and NBUD. I also link this status profile in OPSA. But still my PR and PO are generated without allocati