Property "labelFor" of the label is empty

Dear Experts,
I have created a simple project which contains a view and a service call and an ALV top of list.
Without the top of list, the project works perfectly. However, after I added the top of list,
The error message looks like the following:
Note
The following error text was processed in the system SB4 : Adapter error in
&VIEW_ELEMENT_TYPE& "_2D" of view "SALV_WD_TABLE.VIEW_TOP_OF_LIST_I":
Property "labelFor" of the label is empty. It must always contain the ID of a UI element
Here are the code in my WDDOINIT and WDDOMODIFYVIEW.
method WDDOINIT .
  data:
        node_top_of_list type ref to if_wd_context_node,
        elem_top_of_list type ref to if_wd_context_element,
        ls_top_of_list type if_componentcontroller=>element_top_of_list1.
  node_top_of_list = wd_context->get_child_node( name = 'TOP_OF_LIST1' ).
  elem_top_of_list = node_top_of_list->get_element( ).
  ls_top_of_list-date = sy-datum.
  ls_top_of_list-uname = sy-uname.
  elem_top_of_list->set_static_attributes(
    exporting
      static_attributes = ls_top_of_list ).
* handle ALV
  data:
        l_ref_com_usage type ref to if_wd_component_usage.
  l_ref_com_usage = wd_this->wd_cpuse_alv_table( ).
  if l_ref_com_usage->has_active_component( ) is initial.
    l_ref_com_usage->create_component( ).
  endif.
  data:
        l_ref_interfacecontroller type ref to iwci_salv_wd_table.
        l_ref_interfacecontroller = wd_this->wd_cpifc_alv_table( ).
  data:
        l_value type ref to cl_salv_wd_config_table.
        l_value = l_ref_interfacecontroller->get_model( ).
  data:
        lr_flow type ref to cl_salv_form_layout_grid,
        r_value type ref to cl_salv_form_label,
        r_value1 type ref to cl_salv_form_text.
create object lr_flow.
  r_value1  = lr_flow->create_text( row = 1 column = 2 text = sy-uname ).
  r_value = lr_flow->create_label( row = 1 column = 2 text = 'User: ' r_label_for = r_value1 ).
  r_value1  = lr_flow->create_text( row = 1 column = 2 text = sy-datum ).
  r_value = lr_flow->create_label( row = 1 column = 2  text = 'Date: ' r_label_for = r_value1 ).
  node_top_of_list = wd_context->get_child_node( name = 'TOP_OF_LIST' ).
  call method node_top_of_list->set_attribute
    exporting
        value = lr_flow
        name  = 'CONTENT'.
*  Set top of list
   l_value->if_salv_wd_table_settings~set_top_of_list_visible(
    value  = abap_true ).
endmethod.
method WDDOMODIFYVIEW .
  DATA lo_COMPONENTCONTROLLER TYPE REF TO IG_COMPONENTCONTROLLER .
  lo_COMPONENTCONTROLLER =   wd_this->get_componentcontroller_ctr( ).
    lo_componentcontroller->execute_zbapi_get_time(
endmethod.
Can someone help please?
Thanks,
AS

Hi Bala,
I just made some modification to the following and it works fines now.
r_value1  = lr_flow->create_text( row = 1 column = 2 text = sy-uname ).
To:
r_value1  = lr_flow->create_text( row = 1 column = 2 text = 'Test' ).
How can I display sy-name rather than some text input?
Thanks,
AS

Similar Messages

  • I tried emptying my "Trash" on my MacPro. It has stuck with a label saying "Emptying the Trash"

    I tried emptying my "Trash" on my MacPro. It has stuck with a label saying "Emptying the Trash"at the top and aremark saying "Stopping" at the bottom.
    <Re-Titled By Host>

    Anything that promises to speed up your Mac, any with "clean" in the name
    http://www.macupdate.com/find/mac/clean
    I assume anyone knows what Piece.Of.S. is
    http://www.bing.com/search?q=Mac+Recovery+Mode
    http://www.bing.com/search?q=Mac+Safe+Mode
    I had a dad that, ask a question, you got handed a dictionary or pointed to study room/office with those large heavy Britannica volumes and today it is all... at your finger tips.

  • The property XMLDataVariable on the XML Source was empty - Case Foreach Loop Container

    I have very simple XML source and OLE DB Source in Foreach Loop Container,
    but seem to get error, because XML Source cannot find the XML.
    "Error at Data Flow Task. The property XMLDataVariable on the XML Source was empty"
    Variables:
    FileExtention = *.xml
    FilePath =
    FolderPath = C:\Customer\XML
    XML Source:
    Data Access mode = XML file from variable
    Variable name = User::filePath
    Foreach Loop Container:
    Enumerator = Foreach File Enumerator
    Expression-Directory = @User:FolderPath
    Expression-FileSpec = @User::FileExtension
    Enumerator Folder = C:\Customer\XML
    Files = *.xml
    Variable mapping-User::FilePath = 0
    Kenny_I

    Have you filled the variable (filePath) with a default value? Otherwise the XML Source cannot validate. Alternative is look for a property "DelayValidation". In most cases this is a property of the connection manager, but you're not using
    one for the xml source....
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

  • How do I get the Label for a Front Panel Control to appear in the Block Diagram but not on the Front Panel?

    How do I get the Label for a Front Panel Control to appear in the Block Diagram but not on the Front Panel? On the Front Panel I am making a complex control that consists of a Slider and a Numerical Input box. Both Controls display the same information and either can be used for Input. When one changs, the other is made to display the same value.
     But I only want the Slider to display the Label on the Front Panel, to avoid confusion. On the Block Diagram however, I want both controls to display their Labels so that I know what they are. How do I display the Label for a Control on the Block diagram, but not display its Label on the Front Panel?

    No.  The Label Visible property is separate for the front panel control label and the block diagram terminal label.
    How did you start out with the block diagram's label not being visible?  Whenever I drop a control or indicator, the label is always visible on both the FP and BD by default.  Maybe there is a LabVIEW option that causes new controls/indicators not to have their labels visible by default, but I have yet to find it.  I don't think an item should ever be dropped without the label visible, good LabVIEW coding practice demands that the labels for control terminals on the block diagram be visible so that you know what control or indicator a wire is going to.
    That being said, I have seen a lot of VI's posted where the label for the terminal on the BD is not shown (against good programming practice.)  I've gone to the BD and right clicked to show the label.  Sometimes, the people have an empty label (which will turn off the visibility for both the FP and BD) and I'm forced to add some text of my own into the label so I can figure out what their code is doing.  When I add some text to the label, at that time, I find both the BD and FP labels become visible.
    Are you dealing with controls that have empty labels to start?
    Good programming practices:
    1.  Always have a name for all of your controls, never use and empty label by deleting the text in the label.
    2.  Make the labels unique.  For example, don't have two controls both called Stop.  How do you know quickly know which terminal relates to which control?
    3.  Always show the labels on the block diagram, so you know the function of a control's terminal.  If you want to hide the label on the FP, that's okay.
    4.  If you want a different label to appear on the FP than whatever you actually called the control, then use the caption.  You can hide the label and show the caption.  This is useful if you need to programmatically change what the "label" is on the front panel such if you are making an application that needs to change its user interface such as for a foreign language.

  • LineChart and -fx-text-fill issue: how do I change the color of the labels

    Hello everyone,
    I'm currently facing an issue when I'm trying to style my LineChart with some CSS. Indeed I would like to change the color of the labels of my xAxis (CategoryAxis) and yAxis (NumberAxis) but it's not working.
    In my FXML file I tried to use the style attribute on my LineChart tag using: <LineChart style="-fx-text-fill: white"> with no result, the text remains black (even for the title of my chart). In order to know if the style attribute is well parsed I changed it to: style="-fx-background-color: red; -fx-text-fill: white;". The background is becoming red but the text still remains black.
    Finally I tried to define a stylesheet in my controller class with the same properties (red background and white text). My stylesheet is this one:
    .chart {
        -fx-text-fill: white;
        -fx-background-color: red;
    }In my controller I do the following line in order to load my CSS file:
    this.chart.getStylesheets().add(getClass().getResource("statistics-style.css").toExternalForm());Even with this option the text remains white, while the background becomes red.
    What I also tried is to put the -fx-text-file CSS property directly on my axises, but again it seems it is ignored.
    I followed the steps described in Figure 8-2 of this site: http://docs.oracle.com/javafx/2/charts/css-styles.htm
    Does anybody have an idea or encountered this issue?
    Thank you very much,
    Thierry.
    PS: I'm using JFX 2.1 on MacOS X
    Edited by: twasyl on May 8, 2012 7:57 AM
    Edited by: twasyl on May 8, 2012 7:59 AM

    Hi,
    I figured a solution out to solve my problem. Currently in the documentation it is said to redefine the .chart CSS class in order to change the color of the title and labels text. But this is not working. Strangely the following code changes the font-size of both title and labels but ignores the -fx-text-fill property:
    .chart {
      -fx-font-size: 20pt;
      -fx-text-fill: white;
    }In order to change the color of the title I override the .chart-title CSS class:
    .chart-title {
      -fx-text-fill: white;
    }And for the labels:
    .axis-label {
      -fx-text-fill: white;
    }Well I don't know if there still is a bug on the .chart CSS class or maybe that behavior is expected.

  • Could not initialize Photoshop because the file is empty.

    I tried to start Photoshop 5.1 64bit today, and it shows the blue intro screen with the reading and loading, and then it goes to a popup error message that reads, "Could not initialize Photoshop because the file is empty." I can run the 32bit version fine, but I would prefer to use the 64bit version. I am running Windows 64bit Ultimate. I have been having issues here and there with CS5.5 on this computer. I ran CS4 fine for the last few years, but since after the upgrade, things have been acting weird. About two weeks ago, InDesign refused to work, so I did a reinstall. Then, two days later, I was having other issues, so I did another reinstall. Before that, Illustrator was having issues, so I had to copy programs files from my office computer to my home computer to make it work. I am starting to wonder if my hard drive is going out. Is there an Adobe fix for just Photoshop? I have the CS5.5 installation DVDs here. I tried copying the Photoshop.exe from my office computer to my home computer and replacing it, but it didn't work either.
    What do you guys recommend? Thanks!

    I am starting to wonder if my hard drive is going out.
    Not necessarily, but it could be hopelessly fragmented and have per-sector damage. Run your disk maintenance tools from the drive's property tab and clean out unnecessary temp files, too.
    Mylenium

  • How to get the label of parent container?

    Hi
    I have a Canvas, Its label is "News".
    I added a text control in it and i want to set its text
    dynamically from the canvas label.
    But i dont know how to access the label of the Canvas
    "without" using the id of the canvas.
    like
    <mx:Canvas label="News">
    <mx:Text text="{parent.label}"/>
    </mx:Canvas>
    Please guide me to achieve the above thing.
    Thanks in advance

    "manofspirit" <[email protected]> wrote in
    message
    news:garoob$lqh$[email protected]..
    > Thanks for the reply Amy
    > But I dont have any idea about sub-classing!
    > Please put some light on this concept.
    > Thanks
    Say you have an application
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns:mm="com.magnoliamultimedia.*"
    layout="absolute">
    <mx:Canvas label="foo">
    <mm:ParentLabelText width="100" height="25" />
    </mx:Canvas>
    </mx:Application>
    If you have a directory com that has a directory
    magnoliamultimedia in it,
    then if it has this file, you should see "foo" on the screen
    when you run
    that application:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Text xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()">
    <mx:Script>
    <![CDATA[
    private function init():void{
    if (parent.hasOwnProperty('label')){
    text=parent['label'];
    } else {
    text='parent has no label property';
    ]]>
    </mx:Script>
    </mx:Text>
    HTH;
    Amy

  • How can I make the Label go on top of the Text box?

    How can I make the Label go on top of the Text box?
    Thanks again,
    Doug

    Set the Label Horizontal / Vertical Alignment property for the textarea to Above.

  • In flex charts the label for next month get dropped

    I found for DatatTimeAxis if you set disabledRanges to the last date of the month the label for next month gets dropped using property labelUnits='months". Any ideas? Below is the code:
    <?xml version="1.0"?>
    <!-- Simple example to demonstrate the DateTimeAxis class. -->
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
         <mx:Script>
              <![CDATA[
                   import mx.collections.ArrayCollection;
                   [Bindable]
                   public var stockDataAC:ArrayCollection=new ArrayCollection([{date: "2005, 6, 1",
                             close: 30}, {date: "2005, 7, 31", close: 25}, {date: "2005, 8, 3",
                             close: 40}, {date: "2005, 9, 4", close: 30}, {date: "2005, 10, 5",
                             close: 50}, {date: "2005, 11, 6", close: 43}]);
                   private var d:Date=new Date("7/31/2005");
                   [Bindable]
                   private var offDays:Array=[d];
                   public function myParseFunction(s:String):Date
                        // Get an array of Strings from the comma-separated String passed in.
                        var a:Array=s.split(",");
                        // Create the new Date object. Subtract one from
                        // the month property because months are zero-based in
                        // the Date constructor.
                        var newDate:Date=new Date(a[0], a[1] - 1, a[2]);
                        return newDate;
              ]]>
         </mx:Script>
         <mx:Panel title="DateTimeAxis Example"
                     height="100%"
                     width="100%">
              <mx:LineChart id="mychart"
                               height="100%"
                               width="100%"
                               paddingRight="5"
                               paddingLeft="5"
                               showDataTips="true"
                               dataProvider="{stockDataAC}">
                   <mx:horizontalAxis>
                        <mx:DateTimeAxis dataUnits="days"
                                             parseFunction="myParseFunction"
                                             disabledRanges="{offDays}"
                                             labelUnits="months"/>
                   </mx:horizontalAxis>
                   <mx:verticalAxis>
                        <mx:LinearAxis baseAtZero="false"/>
                   </mx:verticalAxis>
                   <mx:series>
                        <mx:LineSeries yField="close"
                                          xField="date"
                                          displayName="AAPL"/>
                   </mx:series>
              </mx:LineChart>
         </mx:Panel>
    </mx:Application>

    I found your posted code to be messed up. I fixed it and could not see your problem.
    Here is the fixed code.
    <?xml version="1.0"?>
    <!-- Simple example to demonstrate the DateTimeAxis class. -->
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
         <mx:Script>
              <![CDATA[
                   import mx.collections.ArrayCollection;
                   [Bindable]
                   public var stockDataAC:ArrayCollection=new ArrayCollection([
                     {date: "2005, 6, 1", close: 30},
                     {date: "2005, 7, 31", close: 25},
                     {date: "2005, 8, 3", close: 40},
                     {date: "2005, 9, 4", close: 30},
                     {date: "2005, 10, 5", close: 50},
                     {date: "2005, 11, 6", close: 43}]);
                   private var d:Date=new Date(2005,8,31);
                   [Bindable]
                   private var offDays:Array=[d];
                   public function myParseFunction(s:String):Date
                        // Get an array of Strings from the comma-separated String passed in.
                        var a:Array=s.split(",");
                        // Create the new Date object. Subtract one from
                        // the month property because months are zero-based in
                        // the Date constructor.
                        var newDate:Date=new Date(a[0], a[1] - 1, a[2]);
                        return newDate;
              ]]>
         </mx:Script>
         <mx:Panel title="DateTimeAxis Example"
                     height="100%"
                     width="100%">
              <mx:LineChart id="mychart"
                               height="100%"
                               width="100%"
                               paddingRight="5"
                               paddingLeft="5"
                               showDataTips="true"
                               dataProvider="{stockDataAC}">
                   <mx:horizontalAxis>
                        <mx:DateTimeAxis dataUnits="days"
                                             parseFunction="myParseFunction"
                                             disabledRanges="{offDays}"
                                             labelUnits="months"/>
                   </mx:horizontalAxis>
                   <mx:verticalAxis>
                        <mx:LinearAxis baseAtZero="false"/>
                   </mx:verticalAxis>
                   <mx:series>
                        <mx:LineSeries yField="close"
                                          xField="date"
                                          displayName="AAPL"/>
                   </mx:series>
              </mx:LineChart>
         </mx:Panel>
    </mx:Application>
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services

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

  • I generate file (PDF, HTML, etc) the report is empty but I run in paper

    Hi
    I use oracle Report10g
    When I generate file (PDF, HTML, etc) the report is empty but I run in paper design show data, the report in the paper design show many pages, when generate file show only the information of the margin in the main seccion and the body is empty,
    Thanks

    Thanks Daniel for pointing that out.  Though you answer is helpful but I am not sure if that is what I would want to do.
    The link you provide for csv says "For each report there's an _report.xdo file that contains the XML structure of the report... "   It suggests I modify the .xdo file for each report.  I currently have 16 reports.
    Does it mean I modify the .xdo file for all 16  and what happens if someone creates a 17th report ?
    Also, what if I run the same report using different input parameters will that change the xml structure for the report  and therefore will need me to modify the .xdo again ? (I think it should not change the xml structure so the answer should be "NO" to that, unless I change the structure of the report).
    Finally, the link you provide says after doing what it suggest  "Now log back into BI publisher and select the report. You should now be able to see that CSV is now an option."
    CSV should be an option where ? on what screen/page ?  Maybe PDF is already an option for me that I cant see because I do not know where that option is.
    I was hoping there would be something I could do on the xdo_metadata sheet (in the data constraints section or elsewhere) OR in BI Publisher itself as some property of the report.
    I will try out what you suggest any ways.
    M. Jamal

  • How to show mandatory icon after the Label text?

    Hi ,
    I am using JDeveloper 11.1.1.4.
    My Scenario is I have  <af:inputtext>  with Property required="true".
    Label look like ,
    "*Name but I want to show like Name* .I want to show the * icon after the label text .
    How to achieve this in ADF ? ..
    Thanks ...

    Hi rfh,
    Thanks for the updates ,
    I tried with ,
    .AFRequiredIconStyle
      float:right;
    this CSS moving the * icon to right side but not after the label ,It's moveing infront of the InputText Value the output looks like,
    Label   *Value
    I tried with ,
    AFRequiredIcon:alias
        content:inhibit;
    It's diabled * icon entire application .This solution is ok ...But I want to diable * icon for only particular places.
    How to hide * icon for particular fields ? ......
    Thanks......

  • Positioning the label of a bar of a range bar chart - SSRS 2012

    Hi,
    is it possible to center the label of a bar belonging to a range bar chart, in order to position it inside the bar area?
    Thanks

    Hi pscorca,
    If I understand correctly, you want to set the label to be displayed in the middle of bar series. To achieve this goal, we can use the BarLabelStyle property. For more details, please see:
    Right-click the bar series, and then select ‘Show Data Labels'.
    Click the bar series to open Property grid window.
    Expand CustomAttributes node, then change the property of BarLabelStyle to ‘Center’.
    The following screenshot is for your reference:
    If there are any other questions, please feel free to let me know.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Changing the Label of a binary controller?

    What I am trying to do is create a binary switch that changes its label depending on it current state e.g. switch on label = 1 switch off label = 0.
    I have already tried using a property node inside a case structure but i always recieve an error (simple version attached). 
    If anyone know how to get around this problem i would be very grateful
    Dbarr
    Attachments:
    BitEditor.vi ‏11 KB

    Dbarr,
    The Label is the Name of the control. Even though there is an apparently writable property node for Label.text, that text cannot be changed while the VI is running. You saw the error. If you want to change the text associated with a control you want to show the Caption and hide the Label. This stuff is easy to do, but it is not immediately obvious.
    The Strings[4] property allows you to change the boolean text. However, you must first go to the control properties tab and enable Show boolean text and Show multiple strings.
    Look at the attached modification of your VI.
    Lynn
    Attachments:
    BitEditor.2.vi ‏16 KB

  • Pie - Chart Web Part - Label Alignment empty

    Hello all,
    I create lots of Dashboards to display KPIs for my company and I always struggle with the pie chart labels as the always end up overlapping unless I rotate them but that just looks naff.
    My frustration and question is that the "Label Alignment" option is empty and therefore does not allow me to select "Open" which is the feature I seek.
    Does anyone have an idea why this might be and if there is a work around?
    Thank you in advance
    Jessica

    You would potentially run into this with lookup fields as well, I believe. I would make a column that is single line of text for the purpose of the chart. That would make sure the NUM;# is removed.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

Maybe you are looking for

  • Matching across multiple character sets

    Would like to know whether anyone has attempted matching across multiple character sets, for example, between English and Japanese: what are the pitfalls to avoid, what are the best practices, and what you would like to see from application/tools per

  • Trouble installing Win7 64-bit on i5 MBA

    I was able to make an .iso of the disc, had all three boxes checked on the bootcamp install screen, formatted Windows on install, booted into Windows. This is when the issues began. Obviously, without any drivers installed, the resolution is poor, no

  • Prompting of Auto-installtion of JRE1.5.0.06 if IE fails to load applet.

    Hi, I have one requirement, in which if client browser is not having JRE1.5.0.06 intstalled on his m/c then script will automatically prompt to install JRE1.5.0.06. I have heard that we can implement this using JavaScript. Can anybody send me the cod

  • How can I separate voice from game sounds in a audio channel?

    Hello, I have Adobe Premiere Pro CS6 and I want to know how can I separate my voice from the game audio from a video gameplay who are in the same audio channel.

  • TS3899 Email Password Reset Assissance Requested

    I cannot remember my email password for one of my accounts on my Iphone.  I cannot locate an area in my settings that would allow me to reset my password.