Overwrite Label Text

Hi,
I want to overwrite a Label Text.
The Text I want to overwrite comes from a bound Context Node.
Before I want to overwrite it I need the current Text, because I want to change Labels dynamically - however to get the actual Text I use Method GET_TEXT of Class CL_WD_LABEL but this Method sets some Attributes (which seems to be an error for my understanding of OO Concepts) anyway it seems not possible to overwrite the Text with Method SET_TEXT after calling GET_TEXT method (GET_TEXT will call the Bound Attribute after 1st call).
Any ideas?
TIA,
Sebastian

Hi,
I want to change n-Lables
And I want to do it like that: Loop at every Labels of a View and Replace every Occurance of "Oracle" with "SAP" (for example)
But if the Label I want to change the text for is bound to a Context Element with an DDIC-Type the GET_TEXT Method (which I need for dynamic text changes) will set Parameters in the Label class which will always will get the old text (on next GET_TEXT call) never mind what text I assigned with SET_TEXT.
But without a GET_TEXT I will not get all "Oracle" lables and so I can't replace the Texts I want to.
Hope I could explain my Prob
Regards,
Sebastian

Similar Messages

  • How can i  change the column label text in a alv table display

    how can i change the column label text in a alv table display??
    A similar kinda of question was posted previuosly where the requirement was the label text was needed and following below code was given as solution :
    <i>*  declare column, settings, header object
    DATA: lr_column TYPE REF TO cl_salv_wd_column.
    DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    DATA: lr_column_header type ref to CL_SALV_WD_COLUMN_HEADER.
    get column by specifying column name.
    lr_column = lr_column_settings->get_column( 'COLUMN_NAME1' ).
    set Header Text as null
    lr_column_header = lr_column->get_header( ).
    lr_column_header->set_text( ' ' ).</i>
    My specific requirement is i have an input field on the screen and i want reflect that value as the column label for one of the column in the alv table. I have used he above code with slight modification in the MODIFYVIEW method of the view since it is a process after input. The component gets activated without any errors but while run time i get an error stating
    <i>"The following error text was processed in the system CDV : Access via 'NULL' object reference not possible."</i>
    i have checked in debugging and the error occured at the statement :
    <i>lr_column = lr_column_settings->get_column( 'CURRENT_YEAR' ).</i>Please can you provide me an alternative for my requirement or correct me if i have done it wrong.
    Thanks,
    Suri

    I found it myself how to do it. The error says that it is not able to find the reference object i.e  it is asking us to refer to the table. The following piece of code will solve this problem. Have to implement this in WDDOMODIFYVIEW method of the view. This thing works comrades enjoy...
      DATA : lr_cmp_usage TYPE REF TO if_wd_component_usage,
             lr_if_controller  TYPE REF TO iwci_salv_wd_table,
             lr_cmdl   TYPE REF TO cl_salv_wd_config_table,
             lr_col    TYPE REF TO cl_salv_wd_column.
      DATA : node_year  TYPE REF TO if_wd_context_node,
             elem_year  TYPE REF TO if_wd_context_element,
             stru_year  TYPE if_alv_layout=>element_importing,
             item_year  LIKE stru_year-i_current_year,
             lf_string    TYPE char(x),
      DATA: lr_column TYPE REF TO cl_salv_wd_column.
      DATA: lr_column_header TYPE REF TO cl_salv_wd_column_header.
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    Get the entered value from the input field of the screen
    node_year  = wd_context->get_child_node( name = 'IMPORTING_NODE' ).
    elem_year  = node_year->get_element( ).
      elem_year->get_attribute(
       EXPORTING
        name = 'IMPORT_NODE-PARAMETER'
       IMPORTING
        value = L_IMPORT_PARAM ).
      WRITE L_IMPORT_PARAM TO lf_string.
    Get the reference of the table
      lr_cmp_usage  =  wd_this->wd_cpuse_alv( ).
      IF lr_cmp_usage->has_active_component( ) IS INITIAL.
        lr_cmp_usage->create_component( ).
      ENDIF.
      lr_if_controller  = wd_this->wd_cpifc_alv( ).
      lr_column_settings = lr_if_controller->get_model( ).
    get column by specifying column name.
      IF lr_column_settings IS BOUND.
        lr_column = lr_column_settings->get_column( 'COLUMN_NAME').
    set Header Text as null
        lr_column_header = lr_column->get_header( ).
        lr_column_header->set_text( lf_string ).
    endif.

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

  • How to create label & text items in a page dynamicly(TOP URGENT)

    Dear all;
    did any1 tried before to create a PLSQL which can create labels or text items?!! i have a page which i want to create labels according to the count of rows in the Database table?
    Regards;

    I would first try creating an 'On Load - Before Header' PL/SQL Computation to count the rows, and store the result in a hidden page/application item, e.g. P120_ROW_COUNT.
    Then in the label of the item, put &P120_ROW_COUNT. as the Label Text.
    I haven't tested it - but it should work.

  • How to change the field label text in standard WD application

    Hello All,
    I have a requirement to change the filed label text in standard WebDynpro  application.
    Application Name: /SAPSRM/WDC_UI_DO_BIDDER
    View: V_DO_BIDDER_SEARCH_C
    I want to change the label text from "Last Name" to "Vendor Name".
    Can anyone please provide me the possible options to change label text?
    Thanks in Advance.
    Regards,
    Shyam

    Thread closed...Found the solution ... 

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

  • Af:query how to control the query combobox and change it's label text

    My colleague designed a well working af:query search page with several selectable predefined queries. Now it's up to me to control this combobox from outside the component with big colored buttons for user convenience. If the user clicks on one of the big buttons, the assigned item of the combobox is selected and then the query is submitted.
    I though about doing this with javascript, but the difficulty is, that I have no idea and didn't find a way to reference the id of the combobox? The combobox is a 'built in' component in he af:query component and there is no way to give it an id in the properties.
    The second problem is that I didn't find a way to change the label text of the combobox. It seems to be hard coded?
    Thanks in advance for your suggestion!

    Hi,
    the text should be coming from a message bundle and some other look and feel related elements should be settable through skinning in CSS
    http://www.oracle.com/technology/products/adf/adffaces/11/doc/skin-selectors.html
    search for af|query
    Regarding the JavaScript access, use firebug JS debugger. The af query class is AdfRichQuery.js
    http://www.oracle.com/technology/products/adf/adffaces/11/doc/multiproject/adf-richclient-api/js_docs_out/AdfRichQuery.html
    Note however that you should be able to do in Java what you are aimning for in JavaScript. However the usecase you want to implement is not fully clear to me - to be honest
    Frank

  • How does one overwrite existing text?

    One can do plenty of clever formatting in drafting Thunderbird correspondence. But I am unable to find how one overwrites existing text. Can someone help, please?

    please I am having trouble understanding. But here goes what I think your asking.
    When you reply in an interleaved fashion as you did with my email, you need to break the previous message by pressing enter to get your own text area to type in. I saw a discussion on one of the develop0er list the other day where they were suggesting that some of the font information is bleeding back and forth in these situation and brainstorming what to actually do about it. That is just a discussion as yet. See https://groups.google.com/forum/#!topic/tb-planning/ZYusepcRj-k
    One of the best option in my opinion is to use the quote and compose managerhttps://freeshell.de/~kaosmos/quoteandcomposemanager-en.html as it preserves the vertical lines Thunderbird shows while editing in the outgoing message to make it clear where the interleaved information is located. It also has a stabilize font option that has helped many. (The author is Italian, so Italian locales of his add-ons are always available)
    Instruction on installing add-ons here http://chrisramsden.vfast.co.uk/3_How_to_install_Add-ons_in_Thunderbird.html

  • Changing Field Labels texts: What happens after Upgrade?

    Hi All,
    my client would like to change some field label text of domains.
    The question I have is, what will happen after change of release? Will the texts be overwritten? And all have to be maintained again?
    Will I know which ones have been overwritten (SPAU)?
    Any comment, suggestion, experience?
    Thanks in advance!
    thomas

    Hello,
    Guess your question refers to field label texts of datatyps - because domains have only the technical data definition. Anyway - all modifications of Data Dictionary elements ( domains, datatyps, tables) are handled by transaction SPDD during upgrades. The difference to transaction SPAU is, that transaction SPDD is used during the upgrade - after the 'Test'-phase and before the 'Import'-phase.
    Have a look on the documentation of SPDD- it's quite good.
    Regards Wolfgang

  • IPhone 5s 7.1 update now have white AND black label text instead of all white text

    Hello.  After I updated my iPhone 5s yesterday evening to 7.1 the label text on my iPhone's home row is now black instead of white and when I open my folders the text is now also black text instead of being an all uniform white text and this is bugging me is there a way to change it?  Please see photos below to demonstrate what I am talking about.  Thanks in advance. 

    Turning on Reduce Transparency in Settings results in gray backgrounds to the dock and folders and the black instead of white text.
    You can turn off Reduce Transparency. The black text will turn white and the solid gray will become a little transparent taking on the color of the wallpaper.
    Settings > General > Accessibility > Increase Contrast > Reduce Transparency (turn this off)

  • Bug: Smart Collection/Label text/doesn't contain

    LR 2.1 & 2.2, 64-bit, Vista:
    Create a smart collection using "Label text"--"doesn't contain"--"xxx".
    The collection *shows* images with the "xxx" label text just as if the collection was created using "Label text"--"contains".
    Produceable 100% of the time.
    Any one else have the same problem?

    That is a bizarre bug.  There is an even simpler way to reproduce the problem: Have two pics, one with title "a" and the other with title "t".  The criterion "Title Contains a" correctly shows just the first picture, but the criterion "Title Contains t" shows both.
    Searching with smart collections and filters has numerous bugs, but this one is by far the most surprising.  As a geek programmer, I'd love to know what causes this!
    Adobe rarely reads this forum -- I suggest you post this in the official Adobe feedback forum, which Adobe does faithfully read (but only infrequently responds).

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

  • Dynamic label texts on dynpro

    Hello,
    I created a dynpro with screen painter and want to determine the label texts dynamically from a Z dict table.
    I hoped that I could change the text of the labels with loop at screen, but there it isn't possible to do that.
    Could you help me here?
    Best regards
    Tim

    Hello Tim Eisenmann
    Use an input field instead of the label
    but set "output only" tick on screen painter.
    It has the same appearance as label.
    I mean double click on the component on the screen painter,
    go to "Program" tab at the right screen and tick "Output Only"
    Now you can set whatever you want as an input field.
    I hope it helps.
    Edited by: Bulent Balci on Aug 9, 2010 4:23 PM

  • I not read label text color

    Dear Support,
    I am legally-blind and deaf, I bought ipad3 last month, I setup enabled White & Black and Triple-click is Black/White, I make and save solid black.jpg and solid white.jpg in ipad3, click wallpaper done...  start Lock  see black (good) then home, i see icon with white text and black background, good,  I click setting, mail, message are white background, I can't read I press triple-click switch black, I see it when finish press Home back white background, I press triple-click back black, I am not happy lot of triple-click, I am worries button will be broke soon.. but I got idea change white.jpg,  switch to black background, i press lock good, then home is bad, black background is ok but I not read white text on icon, it is blank, I press seeting, mail, message are good   no need triple-click  but I need how fix change color on label text label ?
    I search website I type "change label text icon", I saw many had it but it is jailbreak, I don't want it, because void of warranty
    any fix label text icon?
    help me?
    Thank out
    Richard

    I am pretty sure that I understand what you are trying to do, but I do not know of any way that you can change the color of the text on the app icons. Your only options are black on white - or the standard white text labels.
    As you have discovered, there is no way to change how the iOS works without modification of the device and you know that voids the warranty and it could cause even more problems down the road.
    I'm sorry, but I think that you will have to take a chance on the triple clicks. The iPad does come with a one year warranty and Apple has built the Accessibility feature into the iPad knowing that the triple click will be used by people such as yourself. I would not hesitate to use the feature.

Maybe you are looking for

  • Unable to capture files into external hard disk because of 'drop frames '

    I haven't been able to capture footage from my DV camcoder thru firewire to an external hard disk in FCP because i get a message saying 'drop frames were detected'. This happens when i selected this external hard drive as the scratch disk in FCP. Whe

  • Albums not showing up on website

    I have twelve albums with numerous pictures in each one on my website. for some odd reason when i added three photos a few days ago to just one of the albums 11 of the 12 albums quit showing up on my website (thecolorblindphotographer.net). when i lo

  • IChat Video and firewall

    We've got a new iMac and a MacBook Pro trying to conduct a video chat using AIM, but a firewall appears to prevent us from connecting (we can text chat just fine). How might we resolve this? Is there a setting for my AIM account that I should adjust?

  • Can Appliance 1113/1120 running ACS 4.1 replicate to ACS for Windows 4.2.1.15.2

    Anyone tested/tried to replication from ACS 4.1 (running on Appliance) to ACS for Windows 4.2(1)?

  • Embedding of fonts into PDF document

    Hello people! I need to create a PDF document that has text in different fonts(Arial Black, Courier New, Lucida Sans etc.) and languages(English, German, Russian etc.). What is the best way to do this? How can I embed a font into a PDF document? I am