Hi all,

I have the following 2 codes under same top hirearchy. The Qtp is 
able to recognise the component in the repeater in the code 1 and not 
in the code 2. The only difference in the 2 code bases is that code2 
has an extra hbox container. If i remove that extra hbox then the 
code base 2 is also recognisable. Which makes me think that this has 
to do something with the hirerarchy of the components.

Any one any idea or has faced any issue like this before.


code 1:

<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"; 
        width="100%" height="100%" 
        paddingTop="10" 
        paddingBottom="10"
        paddingRight="10"
        paddingLeft="10"
        verticalGap="10" 
        creationComplete="init()" 
        xmlns:common="com.fitness.pricingTool.view.common.*" 
        xmlns:index="com.fitness.pricingTool.view.index.*">     
        
        
<mx:Repeater id="indexRepeater" 
                dataProvider="{indexData}" >            
        <common:FitnessButtonList id="fitnessButtonList" 
                        rowHeightType="variable"
                        buttonLabel="{indexRepeater.currentItem.name}"
                        listData="{indexRepeater.currentItem.data}"
                        dataObject="{indexRepeater.currentItem}"
                        ScreenChange="handleSelectionChange(event)" />
                
</mx:Repeater>  
</mx:VBox>

code 2:

<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"; 
        width="100%" height="100%" 
        paddingTop="10" 
        paddingBottom="10"
        paddingRight="10"
        paddingLeft="10"
        verticalGap="10" 
        creationComplete="init()" 
        xmlns:common="com.fitness.pricingTool.view.common.*" 
        xmlns:index="com.fitness.pricingTool.view.index.*">     
        
<HBox>  
<mx:Repeater id="indexRepeater" 
                dataProvider="{indexData}" >            
        <common:FitnessButtonList id="fitnessButtonList" 
                        rowHeightType="variable"
                        buttonLabel="{indexRepeater.currentItem.name}"
                        listData="{indexRepeater.currentItem.data}"
                        dataObject="{indexRepeater.currentItem}"
                        ScreenChange="handleSelectionChange(event)" />
                
</mx:Repeater>
</HBox> 
</mx:VBox>

Thanks
jk

Reply via email to