View stack issue creation

Lets say you have the following view stack with the following
components in it. When i turn on creationPolicy="all"
Any of the components will not call their
creationComplete="loadData()" any ideas as to why?

The problem is in one view stack page i have a drop down list
that you can select different companies then in the other viewstack
page it has a display of charts. So lets say the drop down country
list is in selectedIndex=1 the charting is in selectedIndex=2 when
i select different companies from the dropdown component in
selectedindex=1 it will change the data in selectedindex=2

Similar Messages

  • View stack creation policy

    I have a view stack named myViewStack. Now within the view
    stack i have components when i switch between the view stack views
    I want each component's creation complete to be executed. The
    myViewStack creationPolicy is set to all once a user logs into the
    program. Any ideas on how I would do this.
    Thanks....

    The problem is in one view stack page i have a drop down list
    that you can select different companies then in the other viewstack
    page it has a display of charts. So lets say the drop down country
    list is in selectedIndex=1 the charting is in selectedIndex=2 when
    i select different companies from the dropdown component in
    selectedindex=1 it will change the data in selectedindex=2

  • Setting selectedIndex on view stack after removal

    I'm having an issue where when I remove an element from a ViewStack its not selecting the previous item in the list. It keeps snapping back to index 0.
    here's some simple code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication
              xmlns:fx="http://ns.adobe.com/mxml/2009"
              xmlns:s="library://ns.adobe.com/flex/spark"
              xmlns:mx="library://ns.adobe.com/flex/mx"
              creationComplete="onCreationComplete();"
    >
              <fx:Script>
                        <![CDATA[
                                  import spark.components.Label;
                                  import spark.components.NavigatorContent;
                                  private function onCreationComplete():void {
                                            for (var i:int = 0; i < 10; i++) {
                                                      addNew();
                                  private function removeCurrent():void {
                                            var child:NavigatorContent = layouts.selectedChild as NavigatorContent;
                                            if (child) {
                                                      layouts.removeChild(child);
                                  private function addNew():void {
                                            var title:String = "item " + layouts.length;
                                            var content:NavigatorContent = new NavigatorContent();
                                            content.label = title;
                                            var label:Label = new Label();
                                            label.text = title;
                                            content.addElement(label);
                                            layouts.addElement(content);
                        ]]>
              </fx:Script>
              <s:layout>
            <s:VerticalLayout/>
        </s:layout>
        <!-- Drop down list to show the view stack, uses double data binding -->
              <s:DropDownList id="dropDown" width="200" labelField="label" dataProvider="{layouts}" selectedIndex="@{layouts.selectedIndex}" />
              <!-- TabBar to show the view stack, uses single data binding -->
              <s:TabBar id="tabBar" width="100%" dataProvider="{layouts}" />
              <!-- Content view stack -->
              <mx:ViewStack id="layouts">
              </mx:ViewStack>
              <!-- Buttons to test -->
              <s:Button label="remove" click="removeCurrent();"/>
              <s:Button label="add" click="addNew();" />
    </s:WindowedApplication>
    when you remove the current item, the stack selects item 0. I cannot seem to override this. I want the view stack to select the previous item in the list

    Using SuperTabBar from the flexlib solves this issue. http://flexlib.googlecode.com/svn/trunk/examples/SuperTabNavigator_Sample.swf
    when you delete a tab, the bar selects the next one in line. Am I wrong in expecting this functionality out of the box in the spark componenet library?

  • Why do I need to declare "defaultButton" ? (In a component form part of view stack)

    After doing some research and some help from FlexGuy in another thread, I realize that I need to make sure I have custom components initialized before accessing parts of the component.  Just recently I was thrown for a long time when I tried to first click on a form field that was part of a component in my view stack, I'd get:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at mx.managers::FocusManager/focusInHandler()[C:\autobuild\galaga\frameworks\projects\framew ork\src\mx\managers\FocusManager.as:601]
    With the debugger it's occuring in the focusInHandler method of FocusManager.as: (apparently _defaultButton is null.)
    // restore the default button to be the original one
                    if (defButton && defButton != _defaultButton)
                        defButton.emphasized = false;
                        defButton = _defaultButton;
                       _defaultButton.emphasized = true;
    This prompted me, on a whim, to delcare a defaultButton:
    <mx:Form id="empForm" defaultButton="{submitButton}">
    which refers to my submit button:
    <mx:Button id="submitButton" click="submitEmployee()" label="{submitLabel}"/>
    My question, is why is this necessary? In some examples I don't see this declared at all, but I seem to need it? (I'm calling creationPolicy="all" to make sure my components are initialized but I still seem to have to this defaultButton declared?)

    It's a way of proving that you are able to purchase content from that country's store i.e. that you have a valid billing address in it
    From Why can’t I select None when I edit my Apple ID payment information? - Apple Support :
    If you changed your country or region
    When you change the country or region of an existing Apple ID, you must provide a payment method and update your billing options. If you want to remove your payment method after you change the country or region, you can change your payment information to None.

  • SharePoint Online list view threshold issues: "because it exceeds the list view threshold enforced by the administrator"

    SharePoint Online list view threshold issues: "because it exceeds the list view threshold enforced by the administrator"
    Office 365 SharePoint Online can be problematic when it comes to exceeding the list item threshold (e.g. 5,000).
    Examples of what happens after exceeding the threshold (e.g. 5,000 items):
    You can’t create new forms for the list in SharePoint Designer.
    You may have challenges with metadata fields in the forms (e.g. adding metadata values, editing metadata values, deleting the metadata column from the list).
    Cannot save the list as a template (i.e. you get the threshold error).
    Issue I'd like assistance with: how can I create a custom NewForm in SharePoint Designer
    when the list exceeds the threshold limit, given this is Office 365 SharePoint Online and I don't have access to increase that limit?
    As a control for my testing, I created another list with just a few custom columns with no list items --it worked fine for that list.
    I also tried clearing local AppData cache which didn't solve it. I'd need Central Admin on O365 SharePoint Online to increase the threshold which I don't have access
    to do. Errors received in SharePoint Designer:
    "Could not save the list changes to the server." After getting this, I tried to work around
    the create new forms issue by saving a copy of the original NewForm as NewForm2 and got the root error that I suspected was underlying it all:
    “Server error: the attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator”.
    Any ideas for how to create a new list form in SD?

    Thanks Alex.
    I just found a couple new workarounds instead of using SharePoint Designer:
    Method 1: Add web parts to the form pages on the client side:
    Go to the list and execute one of these actions depending what form you want to edit: create a new item (NewForm), edit an item (EditForm), or display an item (DispForm).
    With the form you want to edit displayed, go to the gear icon and click "Edit Page".
    You should now see the web part page show up with "Add a Web Part" as an option.
    Add a Content Editor or Script Editor web part.
    Add your custom code to either one to manipulate the HTML objects using your favorite web languages.
    Method 2: Use InfoPath 2013.
       The InfoPath 2013 route appears to work.

  • Hierarchy Viewer CSS issue

    Hi,
    I have a Fusion Web Application in Jdeveloper 12C that gets the colors and skinning from a CSS file.
    When i add:
    af|dvt-hierarchyViewer
        background-image: -webkit-linear-gradient(bottom, #FFFFFF 0%, #000000 300%);
        background-color: currentColor;
        background-attachment: scroll;
    to my CSS file and run my application, the Hierarchy opens with a grey colour but then it flashes back to the default light blue gradient of fusionFx-simple-v2.desktop as soon as it tries to fetch data.
    But if i change these settings on the Hierarchy itself, the colour changes to the grey and it stays grey.
    Any help with this will be appreciated
    Stefan du Preez

    Duplicate Hierarchy Viewer CSS issue
    Timo

  • Hbox in view stack does not update width

    Hi there,   I'm working on flash builder and I have four hboxes nested inside a view stack. I dynamically populate each hbox with images grabbed from the database. For some reason only the visible hbox correctly updates its' width while the other 3 hbox takes on the width of this one so I end up with all four hbox having the same width. This is a problem when I have lots of images in one than the other and some of them gets cut off.
    The hboxes do not have scroll bars as the viewstack has a mouse easing scroller function attached to it - the hbox scrolls according to the position of the mouse.
    Am I doing something wrong here?
    <mx:Canvas height="110"
                       width="663"
                       visible.loginState = "false"
                       x="10"
                       y="577" horizontalScrollPolicy="off" verticalScrollPolicy="off" id="viewStackContainer">
                <mx:ViewStack id="myViewStack" creationPolicy="all"
                              borderStyle="none">
                    <!-- Books Library -->
                    <mx:HBox horizontalAlign="left" verticalScrollPolicy="off" horizontalScrollPolicy="off" verticalAlign="middle" horizontalGap="0" id="books" />
                    <!-- EBooks Library -->
                    <mx:HBox horizontalAlign="left" verticalScrollPolicy="off" horizontalScrollPolicy="off" verticalAlign="middle" horizontalGap="0" id="ebooks" />
                    <!-- Recordings Library -->
                    <mx:HBox horizontalAlign="left" verticalScrollPolicy="off" horizontalScrollPolicy="off" verticalAlign="middle" horizontalGap="0" id="recordings" />
                    <!-- Readings Library -->
                    <mx:HBox horizontalAlign="left" verticalScrollPolicy="off" horizontalScrollPolicy="off" verticalAlign="middle" horizontalGap="0" id="readings" />
                </mx:ViewStack>
            </mx:Canvas>

    Hi thanks for your reply. As the hbox gets populated i need it to resize itself. Once each hbox has been populated with the images I attach a function to the viewstack which allows me to scroll the hbox with mouse position - so it scrolls horizontally depending on where the mouse is in relation to the viewstack. So as you can see I need by this point for each hbox to have resized in order to correctly calculate my scrolling function.  The bizarre thing is the selected Index hbox displays all the images but the rest of the hboxes takes on the same width as this one and this is a problem because some of my other hbox contains more images.  As a test I set the selected Index of the viewStack to be the third Hbox, then I restarted the application and now all the hbox takes on the wdith of this one.   I am creating a library of thumbnails which is dynamically driven. It's not possible for me to predetermine the width of each. Do you have any suggestions for this?

  • Show a custom component on button click in a view stack`

    Hello folks
    I have a view stack in which i have some custom components.
    Now there is one custom component in which there is one button. On the button click, i want to show another custom component but i dont know how to do it. Should i write the inline mxml click event in custom component?? If yes then how??
    Currently i am doing it as
    click="{customcomponent}"

    As you know, ViewStack  has containers, lilke VBox for its views.
    Assuming one of your views VBox has an id of myVBox, and that VBox has the Button that when clicked will display the component, just have the component in the view already, but you can make it invisible with visible=false and includeInLayout=false, and then upon button click set those two variables to true.
    You will probably want a show handler for the view VBox to make those properties false each time that view is displayed.
    Here is some simple sample code.
    If this post answers your question or helps, please mark it as such.
    ---------- MySimpleComponent.mxml ----------
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
      width="100%" height="100%" horizontalAlign="center">
      <mx:Label text="My Custom Component"/>
    </mx:VBox>
    ---------- MainApp.mxml  ----------
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      xmlns:comp="*" horizontalAlign="center" verticalAlign="middle">
      <mx:Script>
        <![CDATA[
        ]]>
      </mx:Script>
      <mx:LinkBar dataProvider="{vs}"/>
      <mx:ViewStack id="vs" width="100%" height="100%">
        <mx:VBox label="view1" width="100%" height="100%"
          horizontalAlign="center">
          <mx:Label text="View One"/>
        </mx:VBox>
        <mx:VBox label="view2"  width="100%" height="100%"
          show="myComp.visible=false;myComp.includeInLayout=true;"
          horizontalAlign="center">
          <mx:Label text="View Two"/>
          <mx:Button label="Make myComp Visible" click="myComp.visible=true;myComp.includeInLayout=true;"/>
          <comp:MySimpleComponent id="myComp" visible="false" includeInLayout="false"/>
        </mx:VBox>
      </mx:ViewStack>
    </mx:Application>

  • View stack call

    Lets say i have a component with the name "Accounts" in this
    component it has a view stack named "stkView". How do i reference
    the "stkView" in the main application?

    Usually you just chain the ids to the ViewStack.
    So if the component instance is created in AS:
    private var acct:Accounts = new Accounts();
    private function init():void{
    acct.stkView.selectedChild = "cont2";
    }

  • Automatic issue creation

    Hello,
    Is there any function like automatic issue creation in Issue mangement? Like if the system finds same incident multiple times it creates an issue automatically.
    If any such thing exists, could you please put some light on that?
    Thanks and Regards,
    Rajeev

    Hi,
    Please check the Solution. Only those SID will be displayed which are in that particular Solution.
    Regards,
    Shyam.

  • Flex 4 custom component with children inserted directly into view stack

    I give up. Hopefully I am just missing something easy, but I feel like I am pulling teeth trying to get this to work. All I want is a custom 'wizard' component whose children are placed within a ViewStack and beneath the ViewStack there is a next and back button. Here are some code excerpts to illustrate my approach:
    WizardGroup.as:
    [SkinPart(required="true")]
    public var nextBt:Button = new Button();
    [SkinPart(required="true")]
    public var backBt:Button = new Button();
    [SkinPart(required="true")]
    public var stack:ViewStackSpark = new ViewStackSpark();
    WizardGroupSkin.mxml:
    <s:VGroup width="100%" height="100%"
              paddingBottom="10" paddingTop="10" paddingLeft="10" paddingRight="10">
         <container:ViewStackSpark id="stack" width="100%" height="100%">
              <s:Group id="contentGroup" width="100%" height="100%" minWidth="0" minHeight="0"/>
         </container:ViewStackSpark>
         <s:HGroup horizontalAlign="right" width="100%">
              <s:Button id="nextBt" label="Next" enabled="{hostComponent.permitNext}" enabled.last="false"/>
              <s:Button id="backBt" label="Back" enabled="{hostComponent.permitBack}" enabled.first="false"/>
         </s:HGroup>
    </s:VGroup>
    While this comes very close to working, the major problem is that the children of the WizardGroup component are not added as children of the viewstack. Instead, they are added as children of the contentGroup. So the viewstack will always only have one child: contentGroup.
    I also tried the approach of binding the contents of the view stack to the children of contentGroup, but with Spark containers, there is no way to access an array of children or array of elements (ie, there is no contentGroup.getChildren() or contentGroup.getElements()).  Finally, I tried making the id of the ViewStackSpark "contentGroup" but since the ViewStackSpark inherits from BorderContainer, Flex complains at runtime that it can't cast the BorderContainer to Group.
    Help would be greatly appreciated.
    Thanks everyone.
    Josh

    I finally figured it out. The trick is to set the default property of the WizardGroup to a public member array I am calling "content"
    [DefaultProperty("content")]
    public class WizardGroup extends TitleWindow
        [SkinPart(required="true")]
        public var nextBt:Button = new Button();
        [SkinPart(required="true")]
        public var backBt:Button = new Button();
        [Bindable]
        public var content:Array;
    And then within the skin, bind the content of the viewstack to the hostComponent's content array:
            <s:VGroup width="100%" height="100%"
                      paddingBottom="10" paddingTop="10" paddingLeft="10" paddingRight="10">
                <container:ViewStackSpark id="stack" width="100%" height="100%" content="{hostComponent.content}"/>
                <s:HGroup horizontalAlign="right" width="100%">
                    <s:Button id="nextBt" label="Next" enabled="{hostComponent.permitNext}" enabled.last="false"/>
                    <s:Button id="backBt" label="Back" enabled="{hostComponent.permitBack}" enabled.first="false"/>
                </s:HGroup>
            </s:VGroup>

  • View previous issues for magazines in newsstand

    I have a magazine subscription in newsstand and every month when a new issue downloads last months disappears. How can I view previous issues?

    it disappears but its still in your icloud.. it depends how large your device is it 16, 32, or 64 gigs? Its probably becuz you are running out of space on your device.. just remove a few apps and re-dl your magazine

  • View Stacks or States?

    So I have this interface where someone logs into a system and
    they go to a dashboard. That's part is cool. But then I have the
    option of then using a view stack to allow people to navigate the
    different menu options/tabs or I could use states to accomplish the
    same thing. It isn't entirely clear to me which way I should go
    when I'm building out the interface.
    When should I choose one over the other?

    Gregory Pierce wrote:
    > So I have this interface where someone logs into a
    system and they go to a
    > dashboard. That's part is cool. But then I have the
    option of then using a view
    > stack to allow people to navigate the different menu
    options/tabs or I could
    > use states to accomplish the same thing. It isn't
    entirely clear to me which
    > way I should go when I'm building out the interface.
    >
    > When should I choose one over the other?
    >
    In my limited experience I base it on the amount of change
    between one
    view to another. In my first live application I have a two
    element view
    stack and two view states. The view states are used to
    add/remove a
    single control from the user interface. The view stack is
    used to
    completely change every element of the view from one 'page'
    to the next.
    For a small application with only four main UI views it works
    nicely.
    Let me know if you would like more details.
    <mx:states>
    <mx:State name="comment">
    <mx:AddChild position="lastChild">
    <Ctrl:comment
    id="commentDialog"
    saveCommentEvent="saveCommentEventHandler(event)"
    cancelDialogEvent="cancelCommentEventHanderl(event)"
    commentType="{commentType}"
    horizontalCenter="0" top="50"/>
    </mx:AddChild>
    </mx:State>
    <mx:State name="login">
    <mx:AddChild position="lastChild">
    <mx:Container
    top="0" left="0"
    width="100%" height="100%"
    backgroundColor="#000022"
    backgroundAlpha=".85"/>
    </mx:AddChild>
    <mx:AddChild position="lastChild">
    <Ctrl:loginForm
    id="loginForm"
    horizontalCenter="0"
    top="100"
    loginSubmitEvent="loginCheck(event)"/>
    </mx:AddChild>
    </mx:State>
    </mx:states>
    <mx:ViewStack id="troubleLog"
    width="100%" height="100%"
    minWidth="0" minHeight="0">
    <views:masterList x="0" y="0" id="master"
    gridSource="{troubleLogAry}"
    loadTroubleEvent="readTroubleEvent(event)"
    newTroubleEvent="initTroubleEvent()"
    selectTroubleLogView="viewDetails(1)"
    filterUpdateEvent="updateFilterHandler(event)"/>
    <views:logDetails x="0" y="0" id="details"
    colorsAry="{colorsAry}"
    troubleLogEntry="{troubleLogEntry}"
    assigneesAry="{assigneesAry}"
    applicationsAry="{applicationsAry}"
    saveTroubleEvent="saveTroubleEvent(event)"
    selectTroubleLogView="viewDetails(0)"
    showCommentDialogEvent="displayCommentHandler(event)"/>
    </mx:ViewStack>

  • View Criteria issue on ADF Tree

    Hi,
    JDev 11.1.1.5.0
    I am facing an issue while displaying ADF tree. I've created ParentVO & ChildVO from a single table with view criteria to filter the nodes.And then created two View links ParentToChild & ChildToChild.
    Added VOs & corresponding ViewLinks to ApplicationModule. When I tried to run application module, getting the results as per expectation (applying view criteria at each level).
    Now i've dragged the parent vo from data control on to jspx page. when I run the jspx page, it's displaying the tree structure.
    Issue is only view criteria is applying for top level nodes(parent VO) but not sub levels. If there is some issue with creation of View criteria then it should give same problem while executing AM. But while running AM, getting the expected results.
    It would be great if you provide any clue on this issue
    Thanks,
    Samba

    Thanks for your response.
    But my usecase is different. I need to filter the sublevels of the tree.
    Following is the sample
    Level1
         Level1.1
         Level1.2
         Level1.3
    Level2
         Level2.1
         Level2.2
         Level2.3
         Level2.4
    Level3
         Level3.1
         Level3.2
         Level3.3
    If I gave View Criteria as contains '2' then, Need to filter the nodes contains character 2. Able to filter first level nodes according VC. But VC is not applying for sub levels. Is there any way to set the VC in my case?

  • 3750x stack issue adding additional unit

    I have a 3750X stack with 2 48 port members that have been up and running for over a year without issue.
    I'm trying to add a new 24 port 3750X. I've made sure the priority is correct, and I've added a provision for the new member in the stack.
    they are all running the exact same version of IOS.
    I think the problem is, the version of the stack.  the existing stack states it is version 1.45, while the new member states it is version 6.45
    According to what I've read, the way to upgrade the stack version is to upgrade the IOS, but the IOS is already at the version of the new member.
    I've not tried to reboot the existing stack because it's in high usage production.
    here's the data I think is relevant. if anyone has a clue or needs more info, let me know.
    Here's the existing stack:
    The System image file is "flash:/c3750e-universalk9-mz.122-55.SE5/c3750e-universalk9-mz.122-55.SE5.bin"
    BOOTLDR: C3750E Boot Loader (C3750X-HBOOT-M) Version 12.2(53r)SE2, RELEASE SOFTWARE (fc1)
                     Stack State Machine View
    ==============================================================
    Switch   Master/   Mac Address          Version    Current
    Number   Member                          (maj.min)  State
    1        Master    7cad.74eb.3300          1.45        Ready
    2        Member    bc16.656a.5a80          1.45        Ready
    Here's the new Member:
    System image file is "flash:/c3750e-universalk9-mz.122-55.SE5/c3750e-universalk9-mz.122-55.SE5.bin"
    BOOTLDR: C3750E Boot Loader (C3750X-HBOOT-M) Version 12.2(58r)SE1, RELEASE SOFTWARE (fc1)
                     Stack State Machine View
    ==============================================================
    Switch   Master/   Mac Address          Version    Current
    Number   Member                          (maj.min)  State
    3        Master    e4c7.22a1.f400          6.45        Ready

    I actually need the IP Base because this stack does routing.
    I think I need a license upgrade on the new switch.
    I'm looking into it now.

Maybe you are looking for

  • 3D HDMI output question

    I'm very new to Apple iMac computers. I purchased the 27" 2013 iMac. I also recently started using a cheap passive mini-displayport to HDMI adapter from ebay. It is connected to my 55" LG 3Dtv. I can view 1080p60 just fine, as well as 24, 25, 30 & 50

  • TS3694 We were trying to backup an Ipod touch and received an error message, "This Ipod cannot be synced. An unknown error occurred(13014).

    The error message was, "This ipod cannot be synced. An unknown error message occurred(13014). Any suggestions?

  • Computer Telephone integration with CRM

    Hi , We have a requirement to integrate existing Interactive Voice Response system,Computer Telephone Integration and Automatic Call Distribution with proposed SAP CRM. In order to integrate them we would like to use third party adapters from compani

  • Linked text frame in enumeration

    in one document there are many embedded text frame (object style applied = "myObjSty1") I want to write increasing numbers I tried to write but did not Can you help me in this regard Thank you in advance var sNo = 1; var doc = app.activeDocument;  ap

  • ComboBox and button symbol interaction

    (Sorry-- I had this posted in ActionScript as well -- not really an AS issue...) I thought it would be easier for folks if they didn't have to create this from scratch: Here is the Sample SWF and the Souce FLA Greetings -- I traced back a bug that I