Changing the size of a single field in runtime in table view

Is it possible to change the row height to fit the entire text into the field for the column Exception text ?
Is it possible to change the row height of the field exception text in run time, based on the amount of text it carries ??
Please suggest.

Hello,
you can try to put the code similar to the one below in table iterator.
METHOD if_htmlb_tableview_iterator~render_cell_start.
  DATA: lr_input TYPE REF TO cl_thtmlb_inputfield,
        lr_text TYPE REF TO cl_thtmlb_textview.
  IF p_column_key EQ 'ZLIKEATTRS'.
    lr_input ?= p_replacement_bee.
    lr_input->encode = abap_false.
    IF ( lr_input->disabled EQ 'TRUE' ) OR ( lr_input->disabled EQ abap_true )
      OR ( p_edit_mode IS INITIAL ).
* --> input is readonly, instead of disabled input render text
      CREATE OBJECT lr_text.
      lr_text->id        = p_cell_id.
      lr_text->text      = lr_input->value.
      lr_text->_text     = lr_input->_value.
      lr_text->type      = lr_input->type.
      lr_text->_type     = lr_input->_value.
      lr_text->tooltip   = lr_input->tooltip.
      lr_text->align     = lr_input->alignment.
      lr_text->textdirection = lr_input->textdirection.
      lr_text->design    = 'VALUE'.                         "#EC NOTEXT
      lr_text->size      = lr_input->size.
      lr_text->width     = lr_input->width.
      IF lr_text->tooltip IS INITIAL.
        IF lr_input->_value IS NOT INITIAL.
          lr_text->_tooltip = lr_input->_value.
        ELSE.
          lr_text->tooltip = lr_input->value.
        ENDIF.
      ENDIF.
      lr_text->encode = abap_false.
      p_replacement_bee ?= lr_text.
    ENDIF.
  ENDIF.
ENDMETHOD.
In get method of your description column split the text into lines using <br> tag.
Something like this:
LOOP AT lt_attrs INTO lv_attr.
        CONCATENATE lv_value '<br>' lv_attr INTO lv_value.
    ENDLOOP.

Similar Messages

  • Dynamically change the size of a text field.

    Is it possible to change the size of a text field depending on the amount of text in the field?
    Thanks,
    Chad

    You can find the answer from this post.
    jimmypham, ""Shrink to Fit" - Text Field capability?" #1, 18 Jul 2005 10:36 pm

  • Changing the color of a single field in a row of a table

    Is it possible to change the color of text of a single field within a single column. If field 'C' in a row is negative number change the text color to red. Is this possible?

    Hi Champion,
    Please Do search before posting.. you get lots of threads here...
    Re: color for a particular column in table
    Re: Color a table row
    Please go through this..
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/707fb792-c181-2d10-61bd-ce15d58b5cf1?QuickLink=index&overridelayout=true

  • Changing the size of text input field in xml style coldfusion forms

    Does anyone know how to get the size attribute of a text
    input field to work in a coldfusion xml form?
    Example: When I enter the following code and view the form in
    a browser, all of the fields are the exact same size.
    <cfform format="xml" name="testingform" method="post">
    <cfformgroup type="horizontal">
    <cfinput type="text" name="first_name" size="10"
    label="First Name">
    <cfinput type="text" name="middle_init" size="2"
    label="Middle Initial">
    <cfinput type="text" name="last_name" size="20"
    label="Last Name">
    </cfformgroup>
    </cfform>

    Indeed a mistake in the Coldfusion engine. Or is there some
    reason for it? In any case, you should report it.
    Look in the source, and you will see why it happens. The XML
    form makes use of the stylesheet
    /CFIDE/scripts/css/default_style.css. There the width attribute is
    hard-coded for the cfinput element, thus
    .cfInput, .cfTextarea {
    font-size: .8em;
    font-family: inherit;
    width: 200px;
    I would replace that block with
    .cfInput {
    font-size: .8em;
    font-family: inherit;
    .cfTextarea {
    font-size: .8em;
    font-family: inherit;
    width: 200px;

  • Changing the size of a single movie as it plays

    I don't know if this is new in Flash CS3 or not, but I just
    started noticing it - web pages that are flash from top to bottom.
    No matter where you right-click the pop-up menu tells you it is
    Flash. And the whole thing resizes along with the browser's window.
    How does one do this? And then to baffle my mind even further,
    there is a site where the movie changes size - causing the browser
    scrollbar to increase or decrease. I thought that you had to define
    the movie's size and that was what it was going to be from
    beginning to end. So if you click on a button, the text may be
    twice as long - going off the bottom of the page.
    I have nothing at all to do with this site, I think it was
    presented in Adobe's Flash newsletter. But notice - it's all
    Flash!! and if you click on a side button the browser scrollbar
    changes (the movie changes size).
    http://www.jamesmartinchef.co.uk/pc.asp?xpath=&xpathid=&lang=eng
    Someone please give me a clue as to how to do this!

    This can't be that difficult. Someone must know how to do
    this. Please help!!
    I just can't figure out how a movie would fit in a browser
    window and another page in the same movie causes the browser window
    to get larger because the that page causes the movie's height to
    increase.

  • Can I change the size of a single page in cs3

    trying to create a book cover template. I've setup my document margins bleed etc. I have 3 pages side by side just not sure how to resize the middle page (spine). Is it possible in CS3?
    I tried creating a new doc with the proper spine width, and dragging that page into my main document, but it was just resized.

    In CS3 you can have only one page size per document. I would make a new file with one (or two, if there will be printing inside the cover) page(s) that is the same height, but as wide as the combined width of front back and spine. I would set it up as two columns, with the gutter the dimension of the spine, to divide it into three zones.

  • How to change the data  type of a field in an internal table dynamically ?

    I have an internal table :
    Data: Begin of itab_data occurs 0,
    field1 type i,
    field2 type p decimals 2,
    end of itab_data.
    My requirement is to decide the number of decimals of "field2" dynamically .
    ie. based on the input in selection-screen , the declaration has to change .How can this be done ?
    Hope the question is clear..
    Its urgent. Please help me.
    Thanks in advance .
    Shankar

    I dont think you can change it dynamically...but as per your requirement ...why dont you define the variable with maximum decimal length and depending on the parameter(from your selection-screen) use the WRITE command to populate it with the specified decimals.
    Example
    begin of itab
    field2 type p decimals 5.
    end of itab.
    write itab-field2 to lfield decimals p_dec.
    Message was edited by: Anurag Bankley

  • How do I change the size of a Spry Input Text field box?

    I created an email reply box, and then I created a reply message box. How do I change the size of each box independantly of each other? All I have is one set of Spry CSS rules!
    Oh, and the Working with the Validation Text Rule widget file in the Help Resource Center only covers changing the background color - Ugh!

    If I understand your question, you want to change the size of the input field that has spry validation?
    Spry has nothing to do with it, add a size to the field
    <input name="textfield1" type="text" id="textfield1" size="45" />
    <input name="textfield2" type="text" id="textfield2" size="25" />
    Gary

  • Help in changing the size of a field length.

    hello,
    i need to change the size of a field in the table PAYR for the field CHECT.
    Present size is 13. I want to make it as 20. Is there any OSS notes for this. If yes, Please let me know how to implement that.
    Thanks
    Senthil

    I hope there will not be any note for this.
    Please follow the procedure.
    Go to the domain and Check the domain where it is used and meke sure that it will effect all the tables where it is embeded.
    If you want to change this leangth you have to take the OSS key for that hope you have service.sap login id right.
    There you have to  give the details of that domain object and go for the generate key.
    The domain details you have to provide while generating the key .
    these details we will call it as object directry enties.
    Take all those things and give while you are genereating the key.
    Hope you will do it.
    Regards,
    Madan.

  • Changing the size of a drop down list

    Hi Everyone,
    Is there anyway to change the size of a drop down list?  For example, our customer would like to make the drop down list for the Ship-To field on the logistics tab of the sales orders longer.  Currently, they cannot see the full name when they scroll through it.  Is this possible?  Depending on what Customer Code they enter, the field size appears to change.
    Thank you in advance for your help.
    Amanda

    I am using Tahoma size 10 as well. 
    Is the drop down size somehow related to the size of the first few records?  So, if those are shorter than those at the end, perhaps it doesn't adjust for the size of the bottom records.  For example, in our customer's database here's a sampling of what they have entered and the order:
    Wal-Mart 6124
    Wal-Mart 6125
    Wal-Mart 6126
    Wal-Mart 7001
    Wal-Mart Supercenter 1111
    Wal-Mart Supercenter 2094
    Wal-Mart Supercenter 3475
    The drop down box is large enough to see the Wal-Mart 6124, etc. but not large enough to see the Wal-Mart Supercenter ones at the bottom of the list (keep in mind there are over 100 ship-to's for this Business Parnter).  Does it maybe only look at the first fifty records or something like that?
    Thanks again,
    Amanda

  • Changing the Size of generated graph in excel report generation toolkit

    Hi, i am trying to build a report generation vi for my Structural health monitoring system in which i need to export 3 graphs in to an excel report. The idea is to have the report on a single page, but when i paste them along with the ceiling and pillar deviation percentages, the report just exceeds the page limit. I wanted to know whether one can change the size of the graphs in excel? One can do it in word(tried that), but i dont want to use the bookmark option as it intend to put this up as a webservice in the next step. I am using LabVIEW 2009 Thanks.
    LabVIEW 8.2,8.6,2009...still learning
    Attachments:
    Report Generation SHM.vi ‏30 KB

    Hi,
    I haven't tried this myself, but looking through the report generation toolkit the "Excel format image VI" (in the Excel specific tab of the Report Genertaion window) looks to be the one you are after. The help entry for the VI says to: "Use this VI to format any type of image in a worksheet, including front panel images, images from a file, and graphs"
    Hopefully this will help.
    -CC 
    "If anyone needs me, I'll be in the Angry Dome!"

  • How to change the size of the scrollbar in JScrollPane?

    I set a jtable in the jscrollpane,but the table is very small,so I want to change the size of the scrollbar in the jscrollpane.How can i do?Please help me,Thanks.

    Dropping and re-creating the table is by far the best way (of course you need to unload the table's data to a flat file with ttBulkCp first and then reload it again afterwards).
    a second option is to drop the column and re-add it with the new size but you still need to preserve the data first and put it back afterwards and this is harder for a single column than for a whole table. Also, if you are using replication you should exercise care when using ALTER TABLE to ensure iall replicated copies of the table maintain the same physical structure.
    Chris

  • How do you change the background of a single page??

    I know how to change the background of a page (wrench tool- document setup- add shape- change size to fit whole page - change colour - done)
    but it automatically makes every page that colour not just one page, please can somebody explain how to make it work. Thanks

    Hello Alp2001,
    Thank you for the details setting a background color in Pages.  When you click on Document Setup under the wrench tool, this sets the background for your entire document. 
    Alternatively, if you want to add a background on a single page but not for the entire document, you can just add a shape with the background color on that page.  I also recommend locking the shape once you add it so that it doesn't move while you are trying to add other items to the page. 
    Follow the steps in this article to add a shape, change the size to fit the whole page, and change the color:
    Pages Help for iPad - Add and edit shapes
    http://help.apple.com/pages/ipad/2.0/#/tan9ad18c384
    Once you have set the background for that page, folllow the steps under the section titled "Lock objects" in this article to lock the background shape so that it doesn't move:
    Pages Help for iPad - Layer, group, and lock objects
    http://help.apple.com/pages/ipad/2.0/#/tan5eab46568
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Can you change the size of "Code QR" barcode?

    Hi all,
    The "Code QR" type barcode that is available by default in our system works fine, but creates a very small image that I would like to enlarge. The Objects Field properties list only contains a property called "Data Length = 10" (which I also do not know what it does? I tried changing it to 40 and it did nothing!).
    Is there a way to change the size at which a QR type barcode will be printed? I know size is related to the amount of information being encoded, but I'd like to enlarge the basic resolution of the image as well...
    Thanks in advance,
    N

    Yes. Duplicate your book first in case of issues with text reflow ( depress the command key and press d to duplicate) then select the book, click on themes and choose the same theme and the new size
    LN

  • How can I change the size of the FINDER bar so that I can make it easier to read on the 27 inch monitor.

    How can I change the size of the FINDER toolbar so that its eaier to read i.e. make the text bigger.
    How can you move the orientaion of the left side menus so that they sit above a document when using word. If you have a single document open you tend to place it in the centre of the screen and the drop down menus are so far away.

    I don't know of a way to change the size of the menu bar.
    For the other, take a look at Menu Pop. I don't know anything about it. Just happened across it the other day.

Maybe you are looking for

  • Is Adobe even trying to fix problems with their flash player?

    I have been using Adobe Flash Player for a number of years now the error messages all seemed to happen for me right after their update to version 14 Okay so, I uninstalled Adobe Shockwave 12 but I still get this annoying "Shockwave Flash" is slowing

  • How do I clear history/cache from safari.

    I've gone to safari settings and cleared cache/history/cookies but previous pages still show up if I go back using the browser arrow., How do I clear previously viewed web pages

  • My 4g not working after update to ISO 7`0`3

    the internet conection 4G not working After update to ISO 7-0-3 please what can i do to solv the poplem

  • How many hash partitions create is prefer

    I want to create hash partitions on a large table,but i don't know how many partitions to create? create table T_PARTITION_HASH   ID   NUMBER,   NAME VARCHAR2(50) partition by hash (ID)   partition T_HASH_P1     tablespace USERS,   partition T_HASH_P

  • Recieved 404 error after removing "home" from page hierarchy

    I am using JDeveloper 11.1.1.6.0 and I beleive it is WebCenter SP5. I am encountering a 404 page when I run an application after I try removing the entry for "home" from the page hierarchy. I also receive the error even if I undo the change in the pa