Component Parameters in Properties

Hey gang,
I've got some components with lots of properties. When I bring them into CS5, it alphabetizes the parameters in the Component Parameters window. I can't figure out a way to prevent this from happening. I've even gone to Component Definition and reworked the order, but when I save, close, and come back, they're alphabetized again. Anybody know a way around this?
Thanks,
Dan P.

You can assign as text format to the button.  If the instance name is btn...
var myTF:TextFormat = new TextFormat();
myTF.size = 30;
btn.setStyle("textFormat",myTF);

Similar Messages

  • Component parameters not showing

    Hi - I have a series of components I've written in AS3 that work fine in CS3 & CS4. In the Flash CS5 authoring environment, the parameters are not visible in the Component Parameters section of the Property Inspector. The really strange thing is that if I create a .fla in CS4 with the same components on the stage, and then open that doc in Flash CS5, the parameters are visible and work.
    Any ideas for how to fix this? What changed in CS5 to make them not work?
    Notes:
    I've rebuilt the .swc files in CS5 - doesn't fix it
    I created an .mxp file for the components and installed with Adobe Extension Manager CS5 - doesn't fix it
    The standard components that come with CS5 work fine
    My components work fine other than not being able to access the parameters
    Any help would be appreciated.
    Thanks,
    .phil

    I think there are several problems going on in the change from CS4 to CS5 with regard to components. But I did find a fix to the problem I had, which is that in components that I built myself, inspectable parameters that worked fine in CS4 did not show up in CS5 (note that parameters moved their location in CS5 - in CS4 they were visible in the Component Inspector panel, in CS5 they accessible in the Properties panel).My components still worked, and were visible in the Components panel, just no parameters.
    Here's the solution. When coding a component, you define your inspectable parameters in some code like this:
    private var _controller:String = "arduino";
    [Inspectable (name = "controller", variable = "controller", type = "String", enumeration="arduino,make,xbee,osculator,inputSource", defaultValue="arduino")]
    Elsewhere in the code, you define your getter and setter functions:
    public function get controller():String { return _controller; }
    public function set controller(value:String):void {
       _controller = value;
       draw();
    Based on the examples I had seen when I first started creating components, I put the definition right at the beginning of my class definition, and my getters/setters at the end. Well, in CS5, this approach does not work. To make inspectable parameters work, the definition and getter/setters functions must be together in the code! I put mine right at the end of the class. Like this:
    private var _controller:String = "arduino";
    [Inspectable (name = "controller", variable = "controller", type = "String", enumeration="arduino,make,xbee,osculator,inputSource", defaultValue="arduino")]
    public function get controller():String { return _controller; }
    public function set controller(value:String):void {
       _controller = value;
       draw();
    Here's where I found the solution: http://f9foractions.tumblr.com/post/903211215/inspectable-parameters-not-showing-up-on-cus tom
    Hope this helps!
    If you are curious about my components, they are a free system to enable people to work with sensors etc. with the Arduino and other hardware in Flash with no coding required.
    http://www.netlabtoolkit.org/
    .phil

  • How to sort component parameters?

    Hi! I am creating components and want to sort component parameters from more important to less and not alphabetical. I've tried to use InspectableList metadata tag and sorting optionb in "Component definition" panel and it wont save and sort parameters as expected. Is there are any other way to do this?

    Steve42 wrote:
    Here is a sample. I want the table to be sorted on the input parameters (20,40,30,10).
    Drop table dummy; 
    create table dummy(aname varchar2(20) 
    ,acode number(4,0)); 
    insert into dummy(aname,acode) values ('Wyoming',30); 
    insert into dummy(aname,acode) values ('Texas',10); 
    insert into dummy(aname,acode) values ('Iowa',40); 
    insert into dummy(aname,acode) values ('Kansas',20); 
    commit; 
    Select acode, aname 
    from dummy 
    where acode in (20,40,30,10); 
    I want the output to be sorted by the (20,40,30,10) - this input could have more numbers than these 4 and look like this:
    20, Kansas
    40, Iowa
    30, Wyoming
    10, Texas
    Suggestions?
    TIA
    Shall42
    What is the logic behind this seemingly arbitrary ordering?

  • How to create a text Component With Certain Properties

    I need to create a text component with the following properties:
    Has Capability to be italic, right/left aligned, have different background / foreground colors, and most importantly, the ability to have a fixed width and a height that is set by the amount of text in it (ie line wrapping expands the field vertically).
    It should be a simple exercise, but I cannot seem to figure out how to do it.

    Here is the correct syntax :
    private static JEditorPane constructPane(String text, int normWidth, int normHeight, boolean rightAlign, boolean italic,boolean isWhite) {
              JEditorPane pane = new JEditorPane();
              pane.setEditable(false);
              pane.setContentType("text/html");
              pane.setText(
                   "<html><head></head><body>"
                   + (italic?"<i>":"")
                   + "<table><COLGROUP><COL width=\""+normWidth+"\"><THREAD><tr><td valign=\"top\" align="+(rightAlign?"\"right\"":"\"left\"")+">"
                   + text+"</td></tr></table>"
                   + (italic?"</i>":"")
                   + "</body></html>");
              pane.setSize(normWidth,normHeight);
              if(isWhite)
                   pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createMatteBorder(1,0,1,0,Color.WHITE),BorderFactory.createEmptyBorder(0,1,0,1)));
                   pane.setForeground(Color.WHITE);
              else {
                   pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createMatteBorder(1,0,1,0,Color.BLACK),BorderFactory.createEmptyBorder(0,1,0,1)));
                   pane.setForeground(Color.BLACK);
              return pane;
         }

  • Problem with WebStart & applicaton parameters or properties..

    Ok. I have a WebStart application which is supposed to be launched from a website only (not offline-allowed - even though you seem to be able to launch it offline! grr) and the application needs to take TWO parameters from the website. I am currently using Properties to accomplish this. The website (using Enhydra) dynamically generates a .jnlp file that specifies the correct properties. I can confirm this by DOWNLOADING the .jnlp file and viewing it in notepad. However, when WebStart actually runs this, it's caching the very first JNLP my app was ever launched with, and using THOSE parameters. My question is.... WHY AND HOW DO I MAKE IT STOP. ^_^ This is just another twist in my way-too-complicated-and-painful quest to simply pass some parameters to my application. (another other suggestions on how to simply pass two strings are also appreciated.)
    Thanks,
    -xanatos

    Hi,
    the short answer is leave jnlp.href empty and Web Start won't reload/cache you startup file.
    For more details check out the Unofficial JNLP/Web Start FAQ at http://www.geocities.com/vamp201/jwsfaq.html
    - Gerald

  • Cfc component with readonly properties and web services

    I want to transfer a cfc component across coldfusion web
    services as a data transfer object. This cfc component is received
    when calling a load web service, and then supplied to an update web
    service. Some properties within the cfc need to be readonly since
    the update web service would ignore them.
    In java I would have my data transfer object with only public
    set methods for those properties which are not readonly. How can I
    achieve this in coldfusion?

    Hi,
    Please check note 1004108.
    Methods of Application and/or Entity Services (Business Objects) of CAF of SAP NetWeaver CE 7.1 cannot be exposed in document style, only RPC/literal is possible. Sorry.
    It's a restriction that is planned to be solved in one of the next releases.
    Regards,
       Jan

  • Referencing component parameters from other components

    I have a training application that uses a variety of
    components, including a browser that, as a parameter, takes a movie
    clip instance and will move it around when the scroll bars and the
    browser are used. I also have transparent buttons that on
    mouse-over turn slightly opaque so the user can see very obviously
    that they're mousing over something. I also have popups that, as a
    parameter, take the button instance name, and comes up when the
    button is moused over. When the button is clicked, is passes a
    parameter to an isCorrect variable (true or false) that is used by
    the popup to determine what color to turn the text (green if
    isCorrect == true, red else). The popup then puts up some
    additional text, to steer the user right. The problem with this is
    that all the wrong answers usually say the same thing, and only to
    correct one says something different, and often there are well over
    50 popups per page, meaning each must be changed manually. And if,
    when reviewed, the text is determined to have to change, then it
    takes far too long to change it! So, as a solution, I put a
    parameter on my browser component called Popup Text with a variable
    name _browserPopupText. I need to be able to refrence it from the
    popup component. I am able to refrence the button currently because
    the instance name is entered as a parameter.
    By way of extra information, the popup instances are are
    placed inside of the movieClip that is moved around by the browser,
    so it isn't on the same layer. I've tried using
    this._parent._parent, which resolves properly (this being the
    button, this._parent refrencing the movieClip object,
    this._parent._parent being a relative way to say _root (since I
    have multiple _levels that need to move around on each other a
    lot), which resolves to the _level# that the clip and browser are
    on). however, I don't know how to refrence the browser without
    giving it an instance name, which I'd rather not force users to do
    (this training building app will be used by more-or-less computer
    illiterate people to build training Flash apps, and so I want to
    make it as uninvolved as possible).
    So, if there is a way to NOT have to give the browser an
    instance name and still refrence parameters in it from the popup, i
    would greatly appreciate hearing it.
    JA

    k. I found myself a work-around. In the browser component,
    during the init() function initiallizing the browser, i simply
    added the following line of code:
    _global.browserPopupText = _browserPopupText;
    This works just fine. Then, i just refrence the _global
    variable. Also, I moved the isCertify from the buttons to the
    browser, so that I don't have to change every button from
    "isCertify = false" to "isCertify = true". Now All these things
    that used to be in literally hundreds of components has been moved
    to a handful of them--just the browser. Anyway, there's my
    work-around. I'm still open for a better way to do it.

  • Custom component parameters

    Hello, I have a movieclip that I want to export as a SWC with
    a single parameter.
    I have defined that parameter in the 'Component Definition'
    panel by specifying an external class holding the parameter,
    however when I drag an instance of that component onto the stage in
    another document, the parameters panel does not display any
    parameters ?
    Any ideas ?
    Also, do I have to define an external class to define this
    parameter or can I define it in timeline code ?

    This may help
    http://www.flashbrighton.org/wordpress/?p=31
    senocular(adobe employee) said on another forum that info
    about components would be available shortly on the adobe
    site.

  • Component with Generic Properties

    I am looking for a way to create a component with facelets that can take any generic properties. For instance, if the namespace of my taglib is "myns", I would like to be able to put the following in my xhtml pages:
    <myns:general a="foo" b="bar" somethingCompletelyDifferent="#{helloWorld}" />I would like to reference the property in a template file as follows:
    <h:outputText value="#{generalInstance.a}" />#{generalInstance} evaluates to a ComponentRef instance, so I get a PropertyNotFoundException.
    All the component needs to do is store the properties as it would any normal attribute. Is this possible?
    Thanks,
    David
    Edited by: dgreenbean83 on Sep 2, 2008 8:27 PM
    Edited by: dgreenbean83 on Sep 2, 2008 8:29 PM

    I've not really following where "generalInstance" came from in your example.
    If you make a Facelets tag handler based on a file, it will accept any attribute and make it available via EL within the definition file. See the proper section in the [Facelets developer documentation|https://facelets.dev.java.net/nonav/docs/dev/docbook.html#taglib-create-source] for more details.

  • How to write a query on a component-item-type properties

    hi
    For the following sample repository definition file.
    <item descriptor name ="student" idcolumn="id">
    <property name="name" data-type="string"/>
    <property name="department" component-item-type="department" data-type="list" />
    </item descriptor>
    <item descriptor name ="department">
    <property name="name" type="string"/>
    <property name="HOD" data-type="string" />
    </item descriptor>
    If I get a view of the student Itemdescriptor and will I be able to query on the department item descriptor in the same rql ?

    Nitin,
    Thanks for the mail.
    I am getting below error.
    Attempt to create a sub-property query expression for the property: "department", which is not a RepositoryItem. Only properties that are RepositoryItems can have sub-properties.*
    atg.repository.RepositoryException: Attempt to create a sub-property query expression for the property: "department", which is not a RepositoryItem. Only properties that are RepositoryItems can have sub-properties
    For more clarity PFB how the ItemDescriptor looks like
    <item-descriptor name="student" display-property="displayName">
    <property name="isActive" data-type="boolean" default="false"/>
    <table name="student" type="auxiliary" id-column-names="student_ID">
    <property name="studentId" display-name="student" column-name="student_id" data-type="string" required="true"/>
    </table>
    <table name="student_department" type="multi" id-column-name="student_ID" multi-column-name="sequence_id">
    <property name="department" display-name="department" column-name="department_id" data-type="list" component-item-type="departmentl" />
    </table>
    </item-descriptor>
    <item-descriptor name="department" super-type="superDepartment" sub-type-value="department" display-property="name" display-name="departmentname">
    <table name="department" type="auxiliary" id-column-name="department_id">
    <property category="Basics" name="location" data-type="int" column-name="location" display-name="Location" required="true" default="1">
    <attribute name="propertySortPriority" value="-5"/>
    </property>
    <property category="Basics" name="name" display-name="name" column-name="name" data-type="String" />
    <property category="Basics" name="HOD" display-name="HOD" column-name="HOD" data-type="String"/>
    </table>
    </item-descriptor>
    Thanks
    Shobby

  • No video parameters in properties of max for a sony dfw-sx900

    I have NI-Imaq for ieee 1394 cameras and a sony dfw-SX900, this camera appear in MAX but nothing appear in his windows properties/video parameters. In result, i can't snap or grab any image.
    Attachments:
    error.jpg ‏200 KB

    You may want to post your query in the Vision section of the forum for a faster response.
    Khalid

  • Best swing component to display properties.

    In my application I have to show the properties in a Pane. I tried using JList. It is not giving the expected look . I need some swing UI component which shows the name/value pairs in an elegent way. I just need to display the data, dont need to modify it. Even 3rd party components will do.
    I appreciate any help.
    Regards,
    Srinivas

    How did you manage to make a link only showing a title instead of thr URL ?I'm not sure why this isn't a documented feature, but you can use the [url ]...[url ] tag. Reply to my post and click on the 'quote original' link to see the exact format.

  • Is there any way to reference a component and its properties in a variable ?

    I have two custom components. Only one ever displays depending on the currentState value.
    <componants:wrUnapproved
        itemCreationPolicy="immediate"
        excludeFrom="SQLSERVER"
        id="wrUnapprovedComp"
        wrIdLv="{parentApplication.wrId}"
        userTypeCdLv="{parentApplication.userTypeCd}"
        width="100%"
        height="354"
        y="25"/>
       <componants:wrUnapprovedSqlServer
        itemCreationPolicy="immediate"
        includeIn="SQLSERVER"
        id="wrUnapprovedCompSs"
        wrIdLv="{parentApplication.wrId}"
        userTypeCdLv="{parentApplication.userTypeCd}"
        width="100%"
        height="354"
        y="25"/>
    Now I want to refrence whichever one is active and dynamically reference it
    Like
    myComponanet.init();
    where myComponanet is either wrUnapprovedComp or wrUnapprovedCompSs

    Found my own answer
    var pp:Object = wrUnapprovedComp;  

  • 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>

  • Custom component property value handling at run time

    I would like to develop simple custom component which has three properties PROP1, PROP2 & RESULT . These parameters are bound to excel sheet cells as follows..
    cell A1 connected to PROP1
    cell A2 connected to PROP2 and
    cell A3 connected to RESULT.
    In excel A1 cell has excel formula set as =IF(A2<5,10,0).
    Custom component would be simple button display at runtime and on click of the same, I would like to perform following actions in sequence with N number of times.
    1. First push any random number to PROP2. (which is simple task, I believe)
    2. Pick new value of PROP1 which is changed due to existance of excel formula (+ using dispatchevent I could able to pass value to excel cell A2. But not able to read new value of PROP1+)
    3. check new PROP1 value equal to 10. If it is 10 then count it otherwise again push new random value to PROP2.
    4. Continue step 1 to 3 till N number of times. and finally
    4. Push number of counts for PROP1 value 10 to RESULT parameter.
    All the parameters are bindable (getter/setter with [Bindable]) in Flex component application and flex propertysheet application use binding ID to bind with cell address. with binding direction BOTH and SINGLETON
    Here is flex function code which triggered at button click.
    public function test002():void {
    while ( N < 100)
      this.PROP2 = Math.round(Math.random()*1000);
      dispatchEvent(new PropertyChangeEvent(PropertyChangeEvent.PROPERTY_CHANGE, false, false, PropertyChangeEventKind.UPDATE, "PROP2", null, PROP2, this));
         if (this.PROP1 == 10)
          cnt++;
       this.RESULT = cnt;
    My observations are as follows.
    - new push of value to PROP2 get reflected to excel A2 when button click event is over, not at the time of while loop process execution.
    - Also I observed PROP1 value never changes and it is the value which is recorded just before button click event of component at run time and remain the same till button click event is over.
    - Further to this I notice as click event is over, new value of PROP2 reflected in cell A2 and change value (if it passes IF formula of excel ) in A1 as well. Next button click action takes these new A1 and A2 values in consideration and process the function "test002".
    I would like to understand possibility of custom component event execution process, which can able to pass as well as read value from component parameters to underlying excel with changes due to excel formula existance.  If it is not limitations (If so) what is the set of commands which can be helpful to achieve this. I appreciate if anybody explain typical event execution required in such scenarios with some actionscript code directions.
    Thanks
    Sandesh
    Edited by: Sandesh Darne on Feb 8, 2010 11:48 AM
    Edited by: Sandesh Darne on Feb 10, 2010 5:23 AM

    Marton,
    I have tried your solution. It works well immediately after xcelsius dashboard get displayed or preview. It does not wait click event to happen. So I modified further by adding one switch ( "switch001" in code piece shown below) to control iteration by click event. That stops running of iteration immediate after dashboard display.
    In order to see iteration I have to click twice on button. First click does send "frm" parameter value to excel and excel formula operates. The excel formula result send back to component via SETTER of "frmResult" . But it stops over there. If I click second time the iteration starts for 100 times.
    Also I try to export this to PDF. PDF file get generated. If I try to open PDF file it raise error.
    My code is attached here.
    "frm" is the parameter that sends random number to excel.
    "frmResult" parameter receives excel formula output and send it back to component.
    "test()" function operate on button click event and set switch001 and then calls "Calc" function for iterations.
    MXML code..........
      <mx:VBox>
           <mx:TextInput id="frmResultLabel" width="100" />
           <mx:Button label="test..." click="test()"/>
      </mx:VBox>
    Actionscript code
    public var cnt:int;
              public var N:int = 0;
              public var sum:int = 0;
              public var switch001:Boolean = false;
             public function test():void {
                   N = 0;
                   sum = 0;
                   switch001 = true;
              public function Calc():void {
              if (switch001 == true)
                if (N < 100)
                    this.frm = Math.round(Math.random() * 1000);
                else if (N == 100)  // return the result
                     this.frmResult = sum;
                     // Label component use to display frm and frmResult values at runtime
                     frmResultLabel.text = sum.toString() + ">" + this.frm + ">" + this.frmResult;
                 N++;
              [Bindable]
              private var _frm:int;
              private var _frmChanged:Boolean = true;
              [Bindable]
              public function get frm():int
                   return _frm;
              public function set frm(value:int):void
                   //if (value == null)  value = 0;
                   if (_frm != value)
                        _frm = value;
                        _frmChanged = true;
                        invalidateProperties();
              override protected function commitProperties():void
                 super.commitProperties();
                 if (_frmResultChanged == true)
                        // start the cycle again by generating a new random number,
                        // or write out the result
                        Calc();

Maybe you are looking for

  • Wierd ColdFusion erro : Error occurred while processing request.

    Hi there , I am a graduate student and new to ColdFusion.I started working on this already developed project by someone couple of years ago , and the client wants some changes to be done.so i went ahead and did some small modifications to the appeara

  • Updated CODE1 is showing wrong values in 2LIS_05_QE1

    Hi all, I'm using 2LIS_05_QE1 extractor to report over qualitative data in BW. When the code of the characteristics is updated, the extractor takes 2 records, before and after images. The extractor is gathering wrong values for the CODE1 field  in th

  • Process Patterns in BPM

    what is process pattern in BPM? How many Process  Patterns are there namely? Please REPLY urgently?

  • Double consumption of Material while doing Picking using COIK T. code.

    Hi, I have a component for process order which is WM managed and is withdrawn from storage type 100. The component qty is  1504 PC and the stock in storage type 100 is 199 PC. While doing COIK the system issues double the qty ( 398) of the component

  • XPath and SQL

    Hey Guys, I have a huge XML with me which contains the data that i need to populate the database with. I was able to extract particular elements from the xml and populate the databse. I was wondering if i can use SQL quries with XPath to populate the