Accessing library component properties

Im having trouble accessing my library components properties... For example, a textInput doesn't have a text property.
Any thoughts?

Nope.textDisplay is the id of the richTextEditor inside the component. I need to access the text property of the textDisplay object via MXML so I can use dataBinding.
Any thoughts? Maybe someone besides myself?
catalyst code view for component
<?xml version="1.0" encoding="utf-8"?>
<s:Skin xmlns:s="library://ns.adobe.com/flex/spark" xmlns:fx="http://ns.adobe.com/mxml/2009">
     <fx:Metadata>[HostComponent("spark.components.TextInput")]</fx:Metadata>
     <s:states>
          <s:State name="normal"/>
          <s:State name="disabled"/>
     </s:states>
     <s:RichEditableText x="0" y="0" color="#000000" fontFamily="Calibri Bold" fontSize="130" tabStops="S0 S50" text="(Text)" height="109" width="236" heightInLines="1" id="textDisplay"/>
</s:Skin>
mxml view
<local:temp id="temperature" x="185" y="200">
example of it working in AS3
     public function init():void {
          temperature.textDisplay.text = "78.4";

Similar Messages

  • How to access the library and properties in captivate 8

    hello ...i should see the library and the properties buttons in the upper right corner of my screen...
    but i do not....please advise....i need to know how to do that...

    Please check if you get the same buttons for library and properties as mentioned in the screen shot below.
    Please click on the library or properties as indicated in the screenshot.
    If you still face any concerns please post your screen shot how exactly you are getting the library and properties button in Captivate.
    Regards,
    Rajeev.

  • Component properties don't exist anymore.

    I have an component called: Event.cfc
    Long story short, I init() it by issuing a command like:
    <cfset eventObject = new 'com.Event'() />
    This component has 2 properties: data (a structure) and name (a string).
    The init() method calls a private method:
    <cfset VARIABLES.setName( VARIABLES.getAttribute( 'event' ) ) />
    The setName() method is implicit, ColdFusion builds it based on the name attribute.  I manually created the getAttribute() method which works with the data property.  In the getAttribute() method, I have a command that reads:
    <cfset LOCAL.retVar = VARIABLES.data[ ARGUMENTS.attributeName ] />
    Well, CF keeps saying that 'data' does not exist in VARIABLES.  But I thought that properties that were defined in a component were put into the VARIABLES scope.  So how can this variable NOT exist when I have it defined at the top of the Event.cfc component as a <cfproperty>?

    <!---
              <!--- ***************************************************************************************** ************************** --->
              <!--- ***************************************************************************************** ************************** --->
              Name:                     Event object component.
              File:                              Event.cfc
              Desc:                              Handles View-initiated Event objects.
              Version:          1.0.0 (2013-10-10T12:00:00-0500)
              Todo:                              [none]
              <!--- ***************************************************************************************** ************************** --->
              <!--- ***************************************************************************************** ************************** --->
    --->
    <cfcomponent
              output                     = "false"
              accessors          = "true">
              <!--- ========================================================================================= ========================== --->
              <!--- ========================================================================================= ========================== --->
              <!--- Component methods (explicit):
                                            Component methods (implicit):
                                            Component properties:
                                            Private variables:
                                            Public variables:
                                            --->
              <!--- ========================================================================================= ========================== --->
              <!--- ========================================================================================= ========================== --->
              <!--- Component properties: --->
              <cfproperty
                        required          = "true"
                        type                              = "struct"
                        name                              = "data"
                        getter                    = "false"
                        setter                    = "false" />
              <cfproperty
                        required          = "true"
                        type                              = "string"
                        name                              = "name" />
              <!--- ========================================================================================= ========================== --->
              <!--- ========================================================================================= ========================== --->
              <!---          Method: init(). --->
              <cffunction
                        access                              = "public"
                        returntype          = "Event"
                        name                                        = "init"
                        output                              = "false">
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
                        <!--- Arguments. --->
                        <cfargument
                                  required          = "true"
                                  type                              = "struct"
                                  name                              = "constructorData"
                                  default                    = "#{ 'event' = '' }#" />
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
                        <!--- Set LOCAL variables: --->
                        <cfset LOCAL.attributeName = '' />
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
                        <!--- Set instance variables: --->
                        <cfset VARIABLES.setName( VARIABLES.getAttribute( 'event' ) ) />
                        <cfif structCount( ARGUMENTS.constructorData )>
                                  <cfloop collection="#ARGUMENTS.constructorData#" item="LOCAL.attributeName">
                                            <cfset VARIABLES.setAttribute( LOCAL.attributeName, ARGUMENTS.constructorData[ LOCAL.attributeName ] ) />
                                  </cfloop>
                        </cfif>
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
                        <!---          Return.          --->
                        <cfreturn THIS />
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
              </cffunction>
              <!--- ========================================================================================= ========================== --->
              <!--- ========================================================================================= ========================== --->
              <!---          Method: getAttribute(). --->
              <cffunction
                        access                              = "private"
                        returntype          = "any"
                        name                                        = "getAttribute"
                        output                              = "false">
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
                        <!--- Arguments. --->
                        <cfargument
                                  required          = "true"
                                  type                              = "string"
                                  name                              = "attributeName" />
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
                        <!--- Set LOCAL variables: --->
                        <cfset LOCAL.retVar = '' />
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
                        <!--- Capture the attribute value: --->
                        <cfset LOCAL.retVar = VARIABLES.data[ ARGUMENTS.attributeName ] />
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
                        <!---          Return.          --->
                        <cfreturn LOCAL.retVar />
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
              </cffunction>
              <!--- ========================================================================================= ========================== --->
              <!--- ========================================================================================= ========================== --->
              <!---          Method: setAttribute(). --->
              <cffunction
                        access                              = "private"
                        returntype          = "void"
                        name                                        = "setAttribute"
                        output                              = "false">
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
                        <!--- Arguments. --->
                        <cfargument
                                  required          = "true"
                                  type                              = "string"
                                  name                              = "attributeName" />
                        <cfargument
                                  required          = "true"
                                  type                              = "any"
                                  name                              = "attributeValue" />
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
                        <!--- Store the attribute value: --->
                        <cfset structInsert( VARIABLES.data, ARGUMENTS.attributeName, ARGUMENTS.attributeValue, true ) />
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
                        <!---          Return.          --->
                        <cfreturn />
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
                        <!--- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::: --->
              </cffunction>
              <!--- ========================================================================================= ========================== --->
              <!--- ========================================================================================= ========================== --->
    </cfcomponent>

  • Accessing a component property

    How can a access a component property defined in the portal.xml file
    simulair to this
    <property name="plainDescription" value="Number of messages"/>
    I use a JSPDynPage.
    what I realy want is this.
          <env-entry>
              <env-entry-name>CONFIGURATION_FILE</env-entry-name>
              <env-entry-value><![CDATA[/configuration.properties]]></env-entry-value>
              <env-entry-type>java.lang.String</env-entry-type>
          </env-entry>

    see accessing a property

  • Access a component in an mxml file from a different mxml file

    Hi,
    I want to access a component in an mxml file 1 such as this one  <mx:Image id="img" width="101" height="200" source="{product.image}"/> using the
    id
    from the actionscript function from a different mxml file 2
    public function init():void
           HERE.addEventListener( MouseEvent.MOUSE_DOWN, beginDrag );    
    so i can make it dragable, Please help me  in this if u can urgently!!!!

    okay,
    I have the image component in ProductCatalogThumbnail.mxml, which has an id of "img"
    so, i created a public variable in the file and a public function that returns the value of the object.
    public var imagecopy:Object;
            [Bindable]
             public function imagecopyfunction():Object{
             imagecopy  = img;
             return imagecopy;
    now, I want to access this image in the mxml file ProductList.mxml in a function
      public function init():void
          ProductCatalogThumbnail.imagecopy.addEventListener( MouseEvent.MOUSE_DOWN, beginDrag );
         // accepting a drag/drop operation...
           this.area.addEventListener( DragEvent.DRAG_ENTER, acceptDrop );
           // handling the drop...
          //this.area.addEventListener( DragEvent.DRAG_DROP, handleDrop );
    I tried to use the variable, and then i tried to use the function:
    I got this error when I tried the variable : 1119: Access of possibly undefined property imagecopy through a reference with static type Class.
    ProductCatalogThumbnail.imagecopy.addEventListener( MouseEvent.MOUSE_DOWN, beginDrag );
    and this error when i tried the function:  1061: Call to a possibly undefined method imagecopyfunction through a reference with static type Class.
    ProductCatalogThumbnail.imagecopyfunction().addEventListener( MouseEvent.MOUSE_DOWN, beginDrag );
    i made sure i imported ProductCatalogThumbnail file in the beginning of my application.
    I am not sure what went wrong.

  • I have mac book air os x 10.8.2  i create a photo library on iPhoto and i moved it to my time capsule disk now i try to access  library from my wife mac book running on mac os x 10.5.8 i always receive library locked on locked disk

    i have mac book air os x 10.8.2  i create a photo library on iPhoto and i moved it to my time capsule disk now i try to access  library from my wife mac book running on mac os x 10.5.8 i always receive library locked on locked disk

    Unless you can set the Time Capsule's drive to have it's ownership ignored
    you won't be able to use the library on the same volume as the Time Machine backups. 
    OT

  • Creating Sawtek filter library component

    Hello all. I couldn't find anything related to my question so I'll write my first post.
    I am trying to replicate the RF 70MHz on Multisim. 
    Then I encountered a Sawtek Filter 854660 within the circuit diagram.
    I followed the steps on creating a new library component from the NI website:
    http://www.ni.com/tutorial/3173/en/
    but to no avail.
    On the 854660 pdf datasheet, I cannot find the type of package required to create this filter on the multisim library.
    Can any one offer some advice as to how can I create a new package for the sawtek filter? Or perhaps the package is already in multisim but I might have missed it?
    Kind Regards,

    Sorry, I couldn't attach the files on the previous post.
    Attachments:
    854660.pdf ‏543 KB
    RF 70MHz.jpg ‏60 KB

  • Creating a library component containing Excel apiu0092s in NWDI

    chk it
    Using External JARs in Web Dynpro Dev.Component for NW04s SP16

    Hi Kanwal,
    Thanks for the link.  I've followed similar steps, but still unable to get the jars in my library component. 
    Mr. Kent has resolved using Enterprise Application component. I don't know how to create an Enterprise application with the jars declared in its public part.
    Please help,
    Yuvaraj

  • Data Access Library for Oracle like Microsoft Ent Library

    Hi there
    Is there a plan to create a data access library over the odp.net providers
    like the Microsoft Enterprise Library.
    For people who have been using Microsoft Enterprise Library for sometime.
    The coding examples pasted here on the Oracle website looks newbie and lengthy.
    Accessing the provider via a library would
    - reduces the amount of code that developers must write
    - reduces the need to write boilerplate code to perform standard tasks
    - reduces difficulties in changing the database type
    As the Microsoft Enterprise Library Team is not keen in implementing odp.net into
    the data access code.
    Is there anything you guys can do.
    It would lot better to have the same library to access Sql Server and Oracle database that way
    Thanks
    Martin A

    You will have to roll your own for ODP.NET
    Looking through the source for the Microsoft Enterprlise Library, you use the System.Data.OracleClient as an example.
    It can be found here: [EntLibSrc Location]\App Blocks\Src\Data\Oracle\
    You can also look at the Enterprise Library Contrib (http://www.codeplex.com/entlibcontrib) which provides community contributions to MEL - there is an open issue for ODP.NET, found here:
    http://www.codeplex.com/entlibcontrib/WorkItem/View.aspx?WorkItemId=3167

  • Can not access a component already placed in Ultiboard, only way to highlight is in spreadsheet view/parts. It is not locked.

    Can not access a component already placed in Ultiboard, only way to highlight is in spreadsheet view/parts. It is not locked.
    Anyone encountered anything similar?

    How is your  selection filter set up?... make sure that you have 'enable selecting parts' checked. In that way you can select the component. Otherwise you can go to Edit >> Selection Filter >> Enable selecting parts.
    If that is not the problem, then please attach your project file here so we can check it out.
    Nestor
    National Instruments

  • How Can I Access Library Data on External Drive ?

    i bought an ssd upgrade kit and had an apple tech install the ssd
    i formatted and did a clean usb install of mavericks
    i then put the standard 5400 drive from the mini into an external usb case
    it all works great
    but i cannot access the library files on the external drive
    obviously if i hold option and go to "go" in the menubar, it takes me to the library on the new drive
    how can i access library files (i need to get at the application support files for 1password) on an external usb drive ?
    thanks

    Open the folder containing the library, choose Go to Folder from the Go menu, and provide either Library/ or Library/Application Support/ as the path.
    (93967)

  • Item renderer - accessing component properties

    I have a component containing datagrid. Inside itemrenderer I
    am aware of the data and listData object that are availlable. Is
    there also a way to get at the properties of the component that
    contains the datagrid.
    For one of the columns I want to compare the passed data with
    one of the properties (data maintained at component level) of the
    component and use it to determine the contents to be
    rendered.

    I understand Application.application but let me clarify my
    problem.
    My application object has several flex components. Each
    component has one or more datagrids. All Datagrids use a common
    itemrender. Inside itemrenderer I can use Application.application
    to get to parent object but then how do I know which component's
    datagrid called the renderer.

  • How do you access parent component from a child in Flex 4?

    Suppose I have a Component A (as a Spark Group) that generates an event, eventX.  Inside Component A, I add Component B (also a Spark Group) that wants to add itself as an event listener for eventX.  How do I access Component A from Component B to register for the event?
    For reference, this relationship should be similar to the MVC pattern where Component B is the view, and Component A is the model and controller.
    If I were implementing this in ActionScript, I'd have no problem coding this.  However, I am using flex, and am still trying to figure out how the FLEX API works.

    GordonSmith wrote:
    B could "reach up" to A using the parentDocument property. Or you could set a reference-to-A onto B.
    Gordon Smith
    Adobe Flex SDK Team
    B could "reach up" to A using the parentDocument property
    Would you mind explaining that?
    set a reference-to-A onto B.
    That is something I am trying to avoid.  I do not want to create tightly coupled code.
    Here is a generic form of the code I am using.  Feel free to tell me what I'm doing wrong in your explanation of how B can "reach up" to A.  Thanks!
    Component A
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx" width="837" height="733"
                     creationComplete="componentA_creationCompleteHandler(event)"
                     xmlns:components="components.*">
         <fx:Script>
              <![CDATA[
                   import mx.events.FlexEvent;
                   public static const STATE_CHANGED:String = "stateChanged";
                   private var currentModelState:String;
                   protected function componentA_creationCompleteHandler(event:FlexEvent):void
                        changeModelState("second");
                   public function changeModelState(newState:String):void
                        if (newState != currentModelState)
                             currentModelState = newState;
                        dispatchEvent(new Event(IP_Dragon.STATE_CHANGED));
                   public function getModelState():String
                        return currentModelState;
              ]]>
         </fx:Script>
         <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <components:Component_B id="b" x="0" y="0"/>
    </s:Group>
    Component B
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx"
               xmlns:components="components.*"
               width="837" height="733" contentBackgroundAlpha="0.0" currentState="first"
               creationComplete="componentB_creationCompleteHandler(event)">
         <fx:Script>
              <![CDATA[
                   import mx.events.FlexEvent;
                   protected function componentB_creationCompleteHandler(event:FlexEvent):void
                        currentState = parent.getModelState;
                        parent.addEventListener(Component_A.STATE_CHANGED, modelStateListener);
                   private function modelStateListener (e:Event):void
                        currentState = parent.getModelState();
              ]]>
         </fx:Script>
         <s:states>
              <s:State name="first"/>
              <s:State name="second"/>
              <s:State name="third"/>
         </s:states>
         <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <components:Component_C includeIn="first" x="220" y="275"/>
         <components:Component_D includeIn="second" x="2" y="0"/>
         <components:Component_E includeIn="third" x="0" y="8"/>
    </s:Group>
    For the record, I know this code does not work.  It has to do with the parent calls in Component B.  Comment out those lines, and the code will compile.

  • Can't open/access Shared Variable Properties Dalog Box

    I've just upgraded to LV 8.6 from 8.5.  Now I can't open up the Shared Variable Properties Dialog Box.  In the Project Explorer, I expand the shared variable library, select the shared variable, right-click on it to get the pop-up menu, select Properties, nothing happens.  The same is true when I right-click on the shared variable library or My Computer and select New>>Variable.
    On another computer that I upgraded to LV 8.6, I can do the same things and get the dialog box, albeit it looks different in 8.6 than it did in 8.5. 
    There were no errors reported in upgrading these computers.  Any ideas as to what is wrong?

    I've tried re-installing LV 8.6 from the DVDs sent to me.  I get the following errors:
    Error 1335. the cabinet file 'mib.cab' required for this installation is corrupt and cannot be used. This could indicate a network error , an error reading from the CD-ROM, or a problem with this package. -  I responded with 'ignore'
    The NI Assistant Framework LabVIEW Code Generator 8.5 installaion has failed with the following error.
    Internal Error 2350.
    Continue? - I responded with 'yes'
    LabView installs but I still can't get access to the dialog box.

  • How to access the component id from another mxml?

    I tried to set the data to a DataGrid in another mxml, but the complier said there's a problem, like this:
    the components/FileDataGrid.mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
         xmlns:s="library://ns.adobe.com/flex/spark"
         xmlns:mx="library://ns.adobe.com/flex/mx" >
        <mx:DataGrid x="150" y="50" id="dgFile">       <mx:columns>
             <mx:DataGridColumn headerText="COL"/>
           </mx:columns>
        </mx:DataGrid>
    </s:Group>
    the main mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
              xmlns:s="library://ns.adobe.com/flex/spark"
              xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
              xmlns:custom="components.*" layout="absolute">
         <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <fx:Script>
              <![CDATA[
                   private function loadDG():void
                        var arrFile:Array= new Array("abc","123");
                        dgFile.dataProvider = arrFile;
                        trace( "The data has successfully loaded" );
              ]]>
         </fx:Script>
         <s:Button  x="300" y="50" label="Load"  click="loadDG()" />
         <custom:FileDataGrid/>
    </mx:Application>
    The compiling error is :
    Multiple markers at this line:
    -1120: Access of undefined property dgFile.
    -arrFile
    Anybody can tell me, how to achieve it?
    Thanks a lot!

    Hi, You cant access it like this. To access, first give some id to the custom component you have added.
    i.e
    <custom:FileDataGrid id="custFDG"/>
    Then you can acces it from script,
    custFDG.dgFile.dataProvider = arrFile;
    Hope this shud work fine.
    Thanks.
    Abhinav

Maybe you are looking for