2 Replies Latest reply on May 3, 2012 7:04 AM by majester8425

    Help - How do I reference a dataprovider for a custom itemrender within a component ?

    majester8425 Level 1

      I have a custom component that references a cutsom itemrenderer.

       

      In the item renderer I have

       

      <s:ComboBox

        id="ddl"

        itemCreationPolicy="immediate"

        includeIn="normal"

        width="100"

        open="ddl.skin['dropDown'].owner = this"

        labelField="ACCT_TYPE_R_NM"

        selectedItem="{data.ACCT_TYPE_NM}"

        dataProvider="{parentDocument.acctTypeAc}">

       

      But beacuse this item renderer resides within the component the reference to parentDocument is the Module that the component is in. The data however is in the component. As a result the item renderer is blank. I have tried outerDocument and that will not compile.

       

      Does anyone know what I should use instead of parentDocument. Moving the data to the module is not an option as the component is used within multiple modules.