Label Width is zero

Hi,
Unable to get the width of the label control.
code is below.
<?xml version="1.0" encoding="utf-8"?>
<s:Application
   xmlns:fx="http://ns.adobe.com/mxml/2009"
   xmlns:s="library://ns.adobe.com/flex/spark"
   creationComplete="init()">
<fx:Script>
<![CDATA[
     import mx.controls.Alert;
     import spark.components.Label;
     private var label:Label
     private function init():void
          label = new Label()
          label.text = "Hello World";
          addElement(label);
          Alert.show(String(label.width));
]]>
</fx:Script>
</s:Application>

I got the solution.
The callLater() method queues an operation to be performed for the next screen refresh, rather than in the current update. Without the callLater() method, you might try to access a property of a component that is not yet available. The callLater() method is most commonly used with the creationComplete
event to ensure that a component has finished being created before Flex proceeds with a specified method call on that component.
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7b06.html

Similar Messages

  • REP-1219: 'F_MONTH' has no size -- length or width is zero.

    Dear all,
    I want to create a .lis file through form call report. The statements in form are as below:
    lv_report_id := 'FAR017A';
    P_List := CREATE_PARAMETER_LIST(lv_report_id);
    if :ctl_blk.destype = 'FILE' then
    ADD_PARAMETER(P_LIST,'desformat', TEXT_PARAMETER,'wide180');
    ADD_PARAMETER(P_LIST,'mode', TEXT_PARAMETER, 'Character');
    ADD_PARAMETER(P_LIST,'desname', TEXT_PARAMETER,:global.path || lv_report_id || '.LIS');
    end if;
    ADD_PARAMETER(P_LIST,'destype', TEXT_PARAMETER,:ctl_blk.destype);
    ADD_PARAMETER(P_LIST,'p_company_id', TEXT_PARAMETER,:global.company_id);
    ADD_PARAMETER(P_LIST,'p_goods_no_from', TEXT_PARAMETER,NVL(:ctl_blk.goods_no_from,'00000000'));
    ADD_PARAMETER(P_LIST,'p_goods_name_from', TEXT_PARAMETER,:ctl_blk.goods_name_from);
    ADD_PARAMETER(P_LIST,'p_goods_no_to', TEXT_PARAMETER,NVL(:ctl_blk.goods_no_to,'99999999'));
    ADD_PARAMETER(P_LIST,'p_goods_name_to', TEXT_PARAMETER,:ctl_blk.goods_name_to);
    ADD_PARAMETER(P_LIST,'p_yymm', TEXT_PARAMETER,wrk_c1);
    ADD_PARAMETER(P_LIST,'P_WHERE_CLAUSE', TEXT_PARAMETER,vWhere);
    ADD_PARAMETER(P_LIST,'P_ZONE_CODE_TITLE', TEXT_PARAMETER,:ctl_blk.zone);
    ADD_PARAMETER(P_LIST,'p_cyear', TEXT_PARAMETER,:ctl_blk.accnt_cyear);
    ADD_PARAMETER(P_LIST,'p_month', TEXT_PARAMETER,NVL(:ctl_blk.accnt_period,SUBSTR(TO_CHAR(TRUNC(SYSDATE),'YYYYMM'),5,2)));
    ADD_PARAMETER(P_LIST,'paramform', TEXT_PARAMETER, 'no');
    RUN_PRODUCT(REPORTS, :global.path||lv_report_id||'.rep', SYNCHRONOUS, RUNTIME, FILESYSTEM, P_LIST);
    DESTROY_PARAMETER_LIST(P_List);
    When I press the button to produce the .lis file, I read the message in the report server log:
    Starting report FAR017A [Fri Jul 25 17:06:32 2003] ...
    REP-1219: 'F_MONTH' has no size -- length or width is zero.
    End report FAR017A [Fri Jul 25 17:06:34 2003].
    I have no idea what "has no size" means, does any know how to solve this problem?
    Thanks for your help in advance!!!
    Joseph

    rwconverter.exe is a separate executable(It is rwcon60.exe)
    1.Invoke rwconverter.exe executable.
    2. In the conversion page:
    a. Set document type to Report.
    b. Set Source Type to Report Binary File (RDF).
    c. Set Source to the name of the existing bit-mapped report, example "old.rdf"
    d. Set Destination Type to Report Binary File (RDF).
    e. Set Destination to the name of the new character-mode report, example "new.rdf".
    4. On the options page, set Destination Unit to Character.
    5. Click OK. This will convert the report to character mode repot.
    6. Use this new.rdf in your forms application. You don't need add any parameter. Just make sure you use this new report.
    This should solve the problem. If you still get the error, open the report and resize the field which gives the error.
    Regards,
    Siva

  • Frame has no size - length or width is zero

    Hi to all:
    I've created a character report that works OK without a user parameter. The moment I've created a user parameter (even without puting it in the query) an started report, instead of a report I've got the message:
    "REP-1219: name_of_a_repeating_frame has no size -length or width is zero"
    Does anyone knows solution to my problem ?

    SEGURAMENTE UN FRAME TIENE POCA ALTURA,
    A MI ME HA PASADO LO MISMO,LO QUE HAGO ES QUE LOCALIZO EL ITEM Y LE DOY MAS ALTURA, POR ALGUNA RAZON REPORTS EN MODO CARACTER NO ACEPTA UNA ALTURA CORTA

  • REP-1219 : 'Body' has no size - length or width is zero

    Hi.
    I am using reports 6i (6.0.8.11.3). There is a report which runs
    successfully, and suddenly after adding some fields to the
    layout, it start giving the error :-
    REP-1219 : 'Body' has no size - length or width is zero
    I have checked everything in the layout and it appears to be
    perfectly fine. In fact i have faced this problem several times
    on Reports 6i.
    Any help?
    Thanks

    There are two sets of circumstances that have caused this error
    for me.
    Firstly, when I have tried to run an .rdf that was written under
    version 2.5 or earlier of reports and I did not use the r25mrep
    executable to migrate the .rdf.
    Secondly, when a report is run in character mode it resizes and
    aligns objects to the nearest point on a grid 'x' characters in
    width and 'y' in height. If an objects top edge gets rounded
    down and the bottom edge gets rounded up, to the same point on
    the grid, then the object has no height or width and the error
    happens.
    Paul

  • ERR REP-1219: 'R_1' has no size -- length or width is zero.

    Hi All,
    Please tell me the solution for my problem..
    I am getting the error ERR REP-1219: 'R_1' has no size -- length or width is zero.
    .... in report builder i am getting the result..
    But in application11i it is giving error..(ERR REP-1219: 'R_1' has no size -- length or width is zero)
    plz Replay me

    try converting it into character mode before running this might help you .
    File>Administration>Convert...(navigation for 6i)
    Tools>File Conversions.... (navigation for 9i)
    1. Select the Source and Destination(preferable take a new location)
    2. Change the Destination Type to .RDF
    3. Switch to Option tab
    4. Change Destination Unit to "Character".
    Rgds...R

  • REP-1219:' Object name ' has no size -- length or width is zero.

    my report has @28 columns in one repeating frame so the horizontal width is long..
    on running the report i am getting following error..
    REP-1219'<Object name>' has no size -- length or width is zero.
    Can somebody help??
    Anu

    no need to delete any frame or any thing else
    just read my post in the following thread
    Re: Apps Error
    hth

  • REP-1219: 'MAIN_GRPFR' has no size -- length or width is zero.

    Hi ,
    I am working in reports 6i.I have a problem in character reports .I am modifying old character reports that is i am adding new data at the end.In my old report the report was extended to 154 vertically now i added some data and it increased to 200
    The report running fine in report builder but when i am trying to run the report in unix it is throwing an error
    REP-1219: 'MAIN_GRPFR' has no size -- length or width is zero.
    if the length is reduced from 200 to 154 it is running fine.Do i need to modify any properties of report height and width.
    report height =66
    width=120 in old one
    Really urgent ...
    Thanks in advance

    rwconverter.exe is a separate executable(It is rwcon60.exe)
    1.Invoke rwconverter.exe executable.
    2. In the conversion page:
    a. Set document type to Report.
    b. Set Source Type to Report Binary File (RDF).
    c. Set Source to the name of the existing bit-mapped report, example "old.rdf"
    d. Set Destination Type to Report Binary File (RDF).
    e. Set Destination to the name of the new character-mode report, example "new.rdf".
    4. On the options page, set Destination Unit to Character.
    5. Click OK. This will convert the report to character mode repot.
    6. Use this new.rdf in your forms application. You don't need add any parameter. Just make sure you use this new report.
    This should solve the problem. If you still get the error, open the report and resize the field which gives the error.
    Regards,
    Siva

  • REP-1219 'M_G_TITLE_GRPFR' has no size--length or width is zero!!!!

    REP-1219 'M_G_TITLE_GRPFR' has no size--length or width is zero!!!!
    Hi,
    My report runs fine in default or bitmap mode. However, when I run it in character mode i got REP-1219 error message.
    Using the report layout, I increase the size of 'M_G_TITLE_GRPFR' but it still gives me the same error.
    Thanks,
    null

    Did you also try increasing the size of the items inside the group?

  • JRadioButton label width when setBackground

    I have an application with a bunch of buttons that, when pressed, will change their background color depending on which radio button is selected. To make it easier on the user, I set the background of each radio button to the color it will cause the button to change to. The radio buttons have labels with their actual functions (color is secondary). Since the text for each label is a different length, it looks funny when the backgrounds all have different colors. Is there an easy way to make the labels have widths equal to the maximum label width so the boxes are all the same size?
    Here is a snippet of code that creates the radio buttons.
    class OptionsPanel extends JPanel
         public CheckinOptionsPanel()
              this.setBorder(BorderFactory.createEmptyBorder(2,2,2,2));
              //Create and populate the panel.
              String[] labels = {"Received", "Scrap Broken", "Scrap Debris",
                        "Scrap Metal", "Scrap Stress", "Scrap Other", "Clear"};
              Color[] colors = {Color.YELLOW, Color.GREEN, Color.RED, Color.BLUE, Color.MAGENTA, Color.ORANGE, Color.LIGHT_GRAY};
              int numRBs = labels.length;
              for (int i = 0; i < numRBs; i++)
                   JRadioButton rb = new JRadioButton(labels, (i==0));
                   RBAction action = new RBAction(labels[i]);
                   rb.setActionCommand(labels[i]);
                   rb.addActionListener(action);
                   rb.setBackground(colors[i]);
                   add(rb);
                   buttonGroup.add(rb);

    Thanks camickr!
    I cut out some lines when I pasted the code and I accidentally clipped the layout line when I did it. I was using BoxLayout.
    this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));I switched to the GridLayout as you suggested and I am now getting what I want.

  • Setting Sidebar's Width to Zero?

    Does someone know a way to set permanently the sidebar's width, and forall Finder windows?
    This question has already been asked in the past and didn't receive a positive answer as far as I know. There doesn't seem to be a global variable anywhere, either in System Preferences, Finder Preferences or any of the .plist files.
    There is a way to do this through AppleScript, but I wanted to know if anybody had an easier solution for this.
    (BTW, the AppleScript I now have is a folder action... and it works. One must add the action to each folder though... So I still have to do some work to automatically add the action to the folder when it is created.)

    Setting the sidebar to "zero"? In other words you
    want to simply eliminate the sidebar in all Finder
    windows? A double-click on the small dimple in the
    center between your sidebar and the first column
    should do it?
    Oh yes, I know about that, macjack. Or I could drag it until it is hidden ("closed"). The problem with this is that it is not a global variable, nor is it an inherited one.
    So, each time I create a new folder and open it, this folder's window has a sidebar, which I may not see if I chose "Open folders in the same window" AND created a new folder inside an existing one. Drag this folder to the desktop however, or simply create a new folder on the desktop, the sidebar is there.
    Each folder remembers its window's sidebar status, but this is a case by case affair, not a global one.
    Since seeing the sidebar may well be a matter of personal taste or working conditions, it would be fun to have a handle on a global variable managing this. I've looked at both com.apple.systempreferences.plist and com.apple.sidebars.plist, but to no avail. There is no such global variable as far as I can see.
    The Finder will allow you to choose if you want column view or not as a general rule, but nothing about the sidebars...
    RGauthier
    G5 1.8Dual, 2GB RAM   Mac OS X (10.4.8)   20" App Dsplay, ext. Lacie, iPod, Bach on Al-Lansing, Canon 5D, Canon L glass

  • APEX Form : Control Label width

    Hi,
    Using APEX 4.1.
    I have a from with short and long(some are 100 chars) field labels. My question is how do I control the width of the labels or the label column . . . my long labels are pushing the form regions right out of the template borders. Is there a way to globally set or wrap labels?
    Thanks

    Hm... you could use short labels instead of long ones, and put the long description into the help text of the item. This help text is shown when using the matching label template (like "optional with help").
    You can also put an html break tag ("< br / >") into the label text to force a two row label at some point.
    Edited by: Sven W. on Aug 7, 2012 7:25 PM

  • Label Locked in zero-footprint

    Team,
    My customer are constructing Web-Dashboard with long row&column spreadsheets.
    They'd like to lock label(inaccordance of scrowling), and easy to do in Plug-In mode(activeX) just like IR Studio.
    #anyway spreadsheets is simple to make in Pivot section.
    but they don't want to make users install it by themselves.(due to their policy)
    So, could you give me some advice:
    1. if it is possible to lock label in zero-footprint mode.
    2. if 1 is impossible, any method to install activeX automatically
    Regards

    Thank you guys for the suggestions.
    I did make sure that there was stock available in the bin, no movements tied to the stock and also there was no inventory document active for it
    The part I forgot to mentioned in the question previously was my testing is on the picking side with handheld devices (a 3rd party system that we are interfacing with SAP for automatic data collection)
    Would it be possible that the locks are happening from log on sessions from this 3rd party system
    Please suggest
    Thank you

  • Force label width inside a scrollpane not working

    hello
    I have 7 buttons in a grid 7x1 one on top of another inside a scrolpane. i want to be able to scroll left/right 7200pixels but i can't get the scrollpane to be 7200 wide. if i make a component 7200 wide inside it, it does, but runs off the side. unless i put a 7200wide graphic as a label on that button, then i can traverse 7200 left and right with the jscrollbar. i am goign to want to select the number in the future though...have it be 1000 wide or 100000 wide on the fly....with a solid graphic that seems a kinda clunky way to do it. any ideas? i guess i need to find a way to force the scroll bar to always exist with X width.
    thanks in advance

    ignore me. i'm an idiot. the panel's preferred size was what was important, not the buttons inside it.

  • REP -1219 :'R_Header has no size ,length or width is zero

    Hi,
    I am getting REP-1219 while trying to run the report as a concurrent program thru Oracle Applications.
    The format mentioned in the concurrent program is text and style is portrait.
    In the system parameter mode of the report,the property 'initial value' is set to 'default'.The report is not giving any error when run thru reports builder.The problem arises only when run thru apps.
    But the same error is encountered even in the report's builder too when the report is run with the system parameter mode's 'initial value' property is set to 'character' rather than 'default'.
    Am i going wrong in any of the settings.If so what needs to be done to solve the problem.Kindly help me.
    Thanks in advance.
    Regds,
    Jayanthi

    Hi Sudha,
    I tried all of your tips and nothing is really working which makes me very frustrating of using oracle reports tool though i have been using this product for 5 years. I went to report module level property sheet then unselected & selected the option "Design in character units" to yes. It was not working. Then I went to all subsections of Layout Model and increased the size of width property as well as report width including height properties. Still it was not working. Either I have to re-align every object in the re-peat frame which is really a pain & time consuming one when I was just trying to include one additional element in the repeat frame. The funny thing is that all the objects are within the Hierarchy of within the repeat Frame boundary. Nothing is really going beyond the Boundary. I always create a report with "Design in Character Units = Y" option. My point is if everything within the Repeat Frame does not violate the rules, why Oracle reports sets the size to 0 in character units design mode.I am confident that there is a bug in Oracle Reports Tool which is degrading developers productivity during this specific error.If I have to re-align,it will take 10times more than creating from scratch. But again I may need to insert additional elements throughout the lifetime of the report in future.
    By
    Jayapaul

  • Rep-1219: 'Margin' has no size - length or width is zero Solution

    Steps involved in converting bit-mapped report to character mode report:
    ========================================================================
    1. In the Object Navigator, under the Reports node, click the report you
    want to convert.
    2. Choose FileAdministrationConvert.
    3. In the convert dialog, on the conversion page:
    a. Set document type to Report.
    b. Set Source Type to Report Binary File (RDF).
    c. Set Source to the name of the existing bit-mapped report.
    d. Set Destination Type to Report Binary File (RDF).
    e. Set Destination to the name of the new character-mode report.
    4. On the options page, set Destination Unit to Character.
    5. Click OK.
    6. Set properties for your new character-mode report.
    Regards......
    Vishwanath H.

    Hi Nithya,
    I think there is some problem in Report Header Or Report Footer, you do one small R&D. First you remove the Report Header and generate the report and Second Time you remove the Report Footer and generate the report.
    I am sure that you will get the report...
    If you get the report output then that means there is some problem in Report Header or Footer,After that in the Report Header before the Feilds, you keep some Space and in the Report Footer also after feild you keep some space.
    Try This
    Regards,
    Ravi

Maybe you are looking for