How to change a labels text which created at runtime?

hi,
i am creating label controls in runtime dynamically and adding them to a group component. this group component is in another custom component and i have lots of custom comp. in my app.
my question is how can access (via id) and change a labels text whict created at runtime?
i can change like this but i am setting id's and want to reach via id.
var lbl:mx.controls.Label = mx.controls.Label(subMenu5.group_subMenu5.getElementAt(1));
lbl.text = "good job";
thank you, have a good day.

First off, if you are already using a Spark Group, I would suggest you use a Spark Label instead of an MX Label. If you want to reference the Labels from the group, loop through the group's elements and check the if the element id matches the Label you want to assign text to.
var lbl:Label;
var n:int = myGroup.numElements;
for (var i:int = 0; i < n; i++)
     lbl = myGroup.getElementAt(i) as Label;
     if (lbl && lbl.id == "myLabel")
          lbl.text = "newText";

Similar Messages

  • CR VS 2005 - How to change series label text?

    Hi...
    I got this problem while creating a chart in Crystal Report, hope someone can help me
    I'm using Crystal Report for Visual Studio 2005 and the type of the chart is 3D Riser.
    I would like to change the series axis (Y) label but it appears that its using the object name and I can't find anyway how to change it in designer.
    The only solution that I can find is change it in preview but I can't get it edited while in preview mode.
    Thanks before...
    Regards,
    Marry

    Obtain Crystal Reports 2008 and test the report design there. The Stand-alone versions of CR are way more featured, particularly when it comes to charts. Get  the report working in the CR2008 designer 1st, then see how it behaves at runtime. An eval of CR2008 can be downloaded from here:
    http://www.sap.com/australia/solutions/sap-business-objects/sme/freetrials/previous-versions/index.epx
    Report design questions should be posted to the SAP Crystal Reports Design forum.
    - Ludek
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place
    Share Your Knowledge in SCN Topic Spaces

  • How to change a label of User Type in OIM 11g

    How to change a label of User Type in OIM 11g. If we have to change label of First Name or Last name then we can change in User.xml and some in resource properties file but what is the procedure to change for User Type.

    Follow this: http://download.oracle.com/docs/cd/E14571_01/doc.1111/e14309/uicust.htm#BABDEGFE
    i .Copy the $OIM_ORACLE_HOME/server/apps/oim.ear/admin.war/WEB-INF/lib/IdentityTaskFlow.jar to a local work directory, unzip it and locate UserAttributes.properties at /oracle/iam/resources/IdentityTaskFlow.
    ii. Update the userAttributes.properties file in the IdentityTaskFlow.jar/oracle/iam/resources/IdentityTaskFlow and create a new IdentityTaskFlow.jar
    iii. Copy the updated IdentityTaskFlow.jar to $OIM_ORACLE_HOME/ server/apps/oim.ear/admin.war/WEB-INF/lib/
    For "User Type", try putting the property name as "user_type" or try "role". One should work.
    HTH,
    BB

  • How to change the answer text within the review widget of iBooks Author?

    I want to change the answer text which appears after one has finished a test within the review widget of iBooks Author, but I can't figuere out how to do that.
    I also want to sum up the result of a couple of questions as a percentage. How does that work?
    Can anybody help?
    Thanks
    Reinhard

    Notice the answers inside the widget, each with a circle to the left - tap on one of those, which will then appear green with a checkmark in the center to indicate the correct choice.

  • Change Icon Label Text Color

    So, I wanted to change the Finder Window background color to black. But when I do so, the text for the labels of the icons become un-readable. See picture.
    So I wanted to change the Label Text to white or some other lighter color. I'm surprised Mac OS X did not do it automatically. How do I change it?

    AFAIK, you can't. All I can suggest is use one of Apple's Desktop pictures and be done with it.

  • How to change the default text title of Detached table/treetable

    Hi,
    Is anybody know How to change the default text title of Detached table/treetable.
    I have already read the post on "http://vtkrishn.com/2010/07/28/how-to-change-the-default-text-title-of-detached-tabletreetable/"
    as per this post It will change the title throughout the application.
    I wanted to change only for one particular table.
    Thanks,
    Charu
    Edited by: Charu on Sep 13, 2012 4:14 AM

    Hi,
    please don't double post and instead continue with your original threat. In the previous post you got the correct answer to use skinning. You did not like the solution as it doesn't allow per-instance titles. I agree with this and a logical consequence is to file an enhancement request instead of re-posting the question. I'll file the ER, so no need to follow up for you anymore
    Frank

  • How to change the Short text of a GUI Status .

    Hi Guys ,
       Can any one guide me on how to change the short text of an already existing GUI Status .
    I have already tried doing these :Opened the GUI Status in change mode and changed the short texts of the Application tool bar ,
                               Menu Bar ,
                               Function Keys ,
    thinking that this will update in the Short text .. but that didnt happen ...
    Below is what I need ...
    Requirement :
    GUI Status : Status_001 .
    Short Text :  New GUI Status .
    Change the Short Text to " Changed GUI Status ' . 
    Regards,
    Ranjita

    Hi Ranjita,
    Do this...
    go to SE80
    Open the program.. open node GUI Status
    Double click on the status you want to change
    go to menu GOTO>ATTRIBUTES>STATUS
    click on continue or simply enter
    Here change the short text and continue or enter
    activate it
    Hope this helps..
    Regards,
    Kinshuk

  • Can't change the label text for the first time of  loading

    I have some problem to change the label text in the prerender method.
    I put a label on the form and set the text value to "Customer" on the text properities , and I would like to change the lable text to "Supplier" in the prerender method, I found some strange behaviour.
    If I type nothing on the label text of the properties , I can change the lable text on the prerender method on the first time of the form load .
    If I put something on the label text of the properties , the text label can't be changed on the first time of form loaded, the lable can be changed if I refresh the form or reload the form.
    Could anyone help me to solve this kinds of problem ?
    Thanks

    This is a tough one to explain. Here is one explanation from the Delving Into Components tutorial:
    As with the JavaServer Pages implementation, when the server constructs a page from JSP source, the tag attribute settings in the JSP source take precedence over runtime settings. For example, if you set the text property for a Static Text component to "moon," the IDE adds text="moon" to the Static Text component's tag in the JSP file. Even if the page's prerender method has a staticText1.setText("sun") statement, the Static Text component shows "moon" when the application renders the page. If the page is rerendered, the staticText1.setText("sun") statement takes affect and the Static Text component shows "sun." If you visit another page and come back, the server once again constructs the page from the JSP source, the values set in the JSP tag attributes take precedence, and the page displays "moon."

  • How to change format of text in ticker view?

    Hi all,
    How to change format of text in ticker view?
    Thanks

    Hi,
    If you want to format the entire ticker with particular format then put in the Beginning text
    before Table tag
    put the font tag with needed attributes
    <Font> <table....>
    In the end text after table tag
    <table> close the font tag
    Thanks,
    Vino
    Edited by: Vinodh NK on Mar 18, 2010 4:36 AM
    Edited by: Vinodh NK on Mar 18, 2010 4:36 AM

  • How to change color of text is value is equal to 0

    how to change color of text or background if value is equal to 0

    HI,
    In Template Builder,Insert the conditional region,there you select the column and give condition is equal to 0 and in advanced enter the following code
    <?if:XMLfield=0?><xsl:attribute xdofo:ctx="block" name="background-color">red</xsl:attribute><?end if?>
    try this it works.
    Regards
    Uday

  • How to change the menu text for menu exit in Version 3.1i

    Hi,
    I am working on an enhancment in CJ02 transaction in 3.1i version. I have implimented menu exit for it , but I am unable to change the menu text for it.Please let me know how to change the menu text for that menu.
    Thanks
    Suman

    Hi Shree,
    Thanks for the response. Please find the Enhancement name here "CNEX0006".
    Thanks
    Suman

  • How to change a connection with the database in Runtime?

    How to change a connection with the database in Runtime?
    My connection was made using ADF Business component (ApplicationModule).
    ADF Swing.
    JDeveloper Studio 11.1.1.4.0.

    When deploying ADF applications with database connection, you should be using JDBC data sources configured in the weblogic server.
    You could change the JDBC data sources to a different DB instance or location - by changing the JDBC data source and restarting the weblogic server.
    For more details, check
    http://techiecook.wordpress.com/2010/12/02/oracle-weblogic-adf-datasources/
    Thanks,
    Navaneeth

  • How to change the default text style?

    The MacOS system seems to maintain a collection of text 'styles' available in applications such as TextEdit, Bean, MacJournal, Notebook and DevonThink. This collection contains a default style, used by some (but not all) of these applications as the default text style for new documents.
    At my computers this default style is characterized in the 'favorite styles' panel as 'left aligned, spacing 0.0x' and it has strange tab stops (0.99, 1.98, 2.96, 3.95, 4.94, 5.93, 6.91, 7.90, 8.89, 9.89, 10.86, 11.85 cm).
    I prefer tab stops at 1.00, 2.00, 3.00 etc., and 1.2x line spacing.
    I guess I have changed the default style by accident, as I cannot imagine Apple putting such strange tab stops in a default style (0.0x spacing sounds a bit strange too). If so, it must somehow be possible to change the default style.
    I have tried to change the default style via TextEdit (which does not use the default style as default, but spacing 1.0x and tab stop at each centimeter) and several other applications (Bean, MacJournal, Notebook) in the following way: select a piece of text with the intended format, open the document styles panel, click 'Add to Favorites', enter 'Default' as the name for the style and click 'Replace'. Unfortunately, that doesn't work. Although I do not get an error message, the Default style hasn't changed. I can save my preferred style as, for example, 'Preferred' but that does not prevent MacJournal and other applications from using Default for every new document.
    Any idea how to change this default style, or, if that is not possible, reset it to its original state?

    I suggest you have a look at [https://addons.mozilla.org/en-US/thunderbird/addon/stationery/?src=api Stationery].
    It won't help you in defining styles, as such, but will give you templates wherein you can set up styles.

  • How to change the default text "There are no items to show in this view" in the visual webpart

    Hi,
    I am using a visual webpart and in that if there are no items in the list it is showing the default text "There are no items to show in this view." I want to change this default text. 
    I checked the forums here there are multiple ways are shown but no one is working for me.
    Kindly help me to change this text.
    Thanks in advanced.

    It seems you're retrieving items inside a specific you.. why not having a <div> inside you're visual web part and check to see if the count of items retrieved is > 0 then insert that in the div, otherwise, insert your custom message and not rendering
    the web part itself. What you're describing is the default message from SharePoint which comes from default views, and this can be changed from xslt in SP 2010 or in JSLink in SP 2013, here's a link how to do so in JSLink :
    http://www.idubbs.com/blog/2015/jslink-csr-to-override-there-are-no-items-to-show-in-this-view/ .
    But as said, since you're doing a visual web part, keep your stuff in the visual web part and check for the count of items before adding the rendered data to your div.  
    Mohamed Derhalli
    SharePoint Consultant
    Blog: SharePoint Thoughts
       Twitter:
    LinkedIn:
      

  • How to change the document type while creating a PO by ME59N

    Hi,
    I  have 2 groups of PR's, for group one the document type is picked as NB and PO is created and for the group 2 it should pick as XYZ and PO should be created using ME59N tcode.
    How to change the document type for group 2 in ME59N? Which user exists to use to change the document type while creating PO in ME59N? 
    Can any one suggest me.

    Hi,
    There a config area, where you can define default PO doc types for a particular Pr doc type. If you maintain the settings properly there, then your requirement can be fulfilled.
    SPRO->IMG->MM->Purchasing->Purchase requisation->Define doc types.
    This will serve your purpose.
    Thanks,
    Srinu

Maybe you are looking for