Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6706093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:28:47+00:00 2026-05-26T07:28:47+00:00

i have the component below. and in the VGroup component,are two Form components, one

  • 0

i have the component below. and in the VGroup component,are two Form components, one in the ‘initial’ state and the other in the ‘onlyVariable’ state.yet i get the error:

"Component cannot be realized within state 'onlyVariable' because an ancestor is     
excluded from 'onlyVariable".

Anyone cares to tell me what this error means?

Thanks

<s:VGroup width="217" height="270" gap="3">

        <s:Form width="334" height="235" includeIn="initial">
            <s:layout>
                <s:FormLayout gap="0" />
            </s:layout>
            <s:FormItem width="137" label="Description:" height="25">
                <s:TextInput id="descTI" width="228" height="23"/>
            </s:FormItem>
            <s:FormItem width="137" label="Name:" height="25">
                <s:TextInput id="nameTI" width="227"/>
            </s:FormItem>
            <s:FormItem width="193" label="ModelType:">
                <s:DropDownList id="modelDDL" width="153"></s:DropDownList>
            </s:FormItem>
            <s:FormItem >
                <s:CheckBox x="-35" y="-32" width="92" id="chkBoxId" label="All variables" click="checkbox_clickHandler(event)"/>
            </s:FormItem>



            <s:FormItem label="Only variable:" includeIn="onlyVariable">

                <datasheet:SparkDataSheet
                    id="geoTableDG"
                    selectionMode="multipleRows"
                    width="226"
                    height="100"
                    dataFactory="{new ClassFactory(XML)}"
                    editable="true"
                    >
                    <datasheet:rendererMap>
                        <datasheet:CellMap>
                            <datasheet:types>
                                <datasheet:TypeMap
                                    type="text">
                                    <datasheet:rendererFactory>
                                        <cells:CellFactory productClass="{DefaultGridItemRenderer}"/>
                                    </datasheet:rendererFactory>
                                    <datasheet:editorFactory>
                                        <cells:CellFactory productClass="{XmlItemEditor}"/>
                                    </datasheet:editorFactory>  
                                </datasheet:TypeMap>
                                <datasheet:TypeMap
                                    type="text">
                                    <datasheet:rendererFactory>
                                        <cells:CellFactory productClass="{DefaultGridItemRenderer}"/>
                                    </datasheet:rendererFactory>
                                    <datasheet:editorFactory>
                                        <cells:CellFactory productClass="{XmlItemEditor}"/>
                                    </datasheet:editorFactory>  
                                </datasheet:TypeMap>
                            </datasheet:types>
                        </datasheet:CellMap>
                    </datasheet:rendererMap>
                    <datasheet:dataDescriptor>
                        <descriptor:ComplexVarDescriptor id="geoTabDescriptor">
                            <descriptor:properties>
                                <descriptor:TextVarDescriptor name="variable" type="text" >
                                    <descriptor:groupOptions>
                                        <descriptor:Option name="headerText" value="{resourceManager.getString('modelChainUI','variable')}"/>
                                    </descriptor:groupOptions>
                                </descriptor:TextVarDescriptor>
                                <descriptor:TextVarDescriptor name="level" type="text" >
                                    <descriptor:groupOptions>
                                        <descriptor:Option name="headerText" value="{resourceManager.getString('modelChainUI','level')}"/>
                                    </descriptor:groupOptions>
                                </descriptor:TextVarDescriptor>
                            </descriptor:properties>
                        </descriptor:ComplexVarDescriptor>
                    </datasheet:dataDescriptor>
                </datasheet:SparkDataSheet>
            </s:FormItem>

        </s:Form>   
    </s:VGroup>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:28:48+00:00Added an answer on May 26, 2026 at 7:28 am

    You see how you have that s:Form element?

    <s:Form width="334" height="235" includeIn="initial">
    

    That’s one of the ancestors (parent, grandparent, all the way up to root) of the s:FormItem element. Your s:FormItem is set only to be included in the “onlyVariable” state, but the ancestor is set only to be included in the “initial” state. To fix this, change your s:Form element to be included in both initial and onlyVariable states.

    <s:Form width="334" height="235" includeIn="initial,onlyVariable">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a label component in a mxml file like below <mx:Label x=700 y=409
I have a base class, defined as below (I'm also using DevExpress components): public
I have a component that is made up of various components such as a
I'm attempting to remove Component elements from the XML below that have File children
I have a code like the one below <mx:Button id=TestingID width=100% height=20> <mx:Script> <![CDATA[
I have created a custom component based on spark.components.HGroup and it works mostly as
I have a problem. I used Gridbaglayout in my JFrame. One of the component
I'm trying to build a simple component extending spark.components.Group to have a background color,
I have Flex 4 application in which I have one component as top layer
I have an Intraweb application which is using the TTIWDBAdvWebGrid component. Two columns of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.