Row height in tables

Hello,
I want to set the height of tables rows but I couldn't find the function or the right way to do it.
The table is in Column mode.
The row size mode is set to Use Explicit Size
First I remove all rows and columns and then the following code:
InsertTableColumns (SA_ScatPosPanel, P_MULT_ROT_Z_TABLE, 1, NbX_Points, VAL_USE_MASTER_CELL_TYPE);   
ColWidth = PlotAreaWidth / NbX_Points;  
SetTableColumnAttribute (SA_ScatPosPanel, P_MULT_ROT_Z_TABLE, -1, ATTR_COLUMN_WIDTH, ColWidth);  
InsertTableRows (SA_ScatPosPanel, P_MULT_ROT_Z_TABLE, 1, NbY_Points, VAL_USE_MASTER_CELL_TYPE);
What should I add for setting also the row heights?
Thank you
Solved!
Go to Solution.

I finally found the solution.
I did a mistake, by setting Size Mode to Use Explicit Size in the first row in the uir I thought it was the default value for all rows.
I think the documentation is not completely correct because it says that SetTableRowAttribute has no effect on existing cells but for the row height it has. That's the reason why I was looking to find a solution with SetTableCellRangeAttribute () as recommended.
I also tried with SetTableRowAttribute but because Size Mode was not correct it didn't work.
With this code it works:
for (i=1; i<=NbY_Points; i++)  
InsertTableRows (SA_ScatPosPanel, P_MULT_ROT_Z_TABLE, i, 1, VAL_USE_MASTER_CELL_TYPE);  
SetTableRowAttribute (SA_ScatPosPanel, P_MULT_ROT_Z_TABLE, i, ATTR_SIZE_MODE, VAL_USE_EXPLICIT_SIZE);  
SetTableRowAttribute (SA_ScatPosPanel, P_MULT_ROT_Z_TABLE, i, ATTR_ROW_HEIGHT, RowHeight);  

Similar Messages

  • How to increase row height in table control?

    Hi experts,
    We have a push button in table control created using screen painter. Since this is a touch screen transaction, the default height is very small for the worker in the plant to click on a specific row, i would like to know if there is any way to increase the row height in the table control. There is no attribute in Screen painter for increasing row height in table control. I did try "import dynpro", hoping to increase the row height and export the dynpro, but that doesn't seem to have row height attributes. Any help in this regard is highly appreciated. Thanks,
    Raj

    Using a new technology means you have to recreate your screen: you may create an HTML using CL_DD_* classes (that's called "Dynamic Documents"). See [SAP Library - DD programming guide|http://help.sap.com/saphelp_nw2004s/helpdata/en/13/12284b019511d4a73e0000e83dd863/frameset.htm]. Demos are provided in SDYNAMICDOCUMENTS package. Or I think you may create web dynpro and define a CSS style to enlarge objects.
    If you don't want to create everything, maybe you can find out a workaround with GuiXT, for example creating a big button in each row (for example, with BUTTONSIZE, but don't know if it changes the height of rows but that's worth trying).
    Well, [Synactive documentation about table controls|http://www.synactive.com/docu_e/specials/tables.html] does not seem to allow that.
    Maybe you can move your question to the "scripting" forum and ask about how to do it with GuiXT...

  • Fixing the row height in table

    Hi All,
    In my table column i am displaying address.  Address field is of type STRING_TABLE. (This is needed to display address in the format shown in the example below) As a result of this the row height changes depending on the length of the address.
    Hence all the rows in the table are of different heights.
    For Example i am displaying the output as shown below.
    39 Car Street,
    abcdefg,
    pincode
    india,
    ph no.
    Now is it possible set the height of the row so that all the rows in the table are of fixed height?
    Please help.
    Thanks in advance.

    closed

  • Specify row height in table using html?

    How do I accurately specify row heights in html for use in rich text emails? The row heights tend to grow in height (approx 20px) when tested in Thunderbird. I want the row heigth to be 1px high. Please see a line of code below:
    HTML 4.01 Transitional
    <td height="1" bgcolor="#999999"></td>

    The old school method was to use clearpixel.gifs as space holders. 
    See Creating Cross Client HTML E-Mails in Dreamweaver -
    http://www.adobe.com/devnet/dreamweaver/articles/html_emails.html
    Nancy O.

  • CS2 automatically fit row height to content in table?

    Hi guys, I'm using CS2 and I have a table with lots of pages. I need to be able to have the height automatically fit to the content of the tables. Unfortunately data is not consistent therefore some cells have 2 rows of content, others 8.
    Automatically fit to content is not available.
    I have tried adjusting row heights then 'table' > 'distribute rows evenly' but obviously this is no good as some are too cluttered, others too spacious.
    Any suggestions appreciated.

    Huh. Maybe I read the OP's posts correctly, I think, but I misread yours. I assumed that, since the thread-opener mentioned row height, that when the OP asked about getting rid of "distribute evenly" that row height was still under discussion. Looks to me like all you can do with cell width/column width is
    1) Select a column and specify an exact width
    2) Select a group of columns and specify the same exact width for all of 'em
    3) Select all the columns and
        a) Distribute columns evenly
        b) Specify an exact width for all columns
    Unfortunately, I have to use tables a great deal, so I feel like I'm up to speed on what we can and cannot do with ID tables.

  • Report Generation Toolkit Table Row Height-MS Word

    I am having trouble setting the table row height in the report generation toolkit. I can set the column width fine, but the row height seems to remain the same no matter what I set it to. I have attached the VI that generates and formats the table, and the printout it is resulting in. I have also attached the template file I am using.
    Any tips to get this to work right? I am trying to make the cells exactly the same height as the text inside. 
    Solved!
    Go to Solution.
    Attachments:
    AddMarkersToReport.vi ‏20 KB
    badFormatting.pdf ‏179 KB
    splitter.docx ‏13 KB

    Hi,
    So I tried .2  and it didn't work.  So I went to Word to manually change it, and it did not work either.  There is a selection box in word, for the table properties, that seems to default to the value "at least".  When I changed this manually to "exactly" in word, no problem with the .2 manually in Word.
    Hopefully this can be set within the template, for all new inserted tables.  I'm not sure the report generator VI's expose this property.  Well, this is a start for the issue.
    Edit ****
    You can go into the add table VI and expose the property.  See pic.   However, you have to decide if you want to "upgrade" this VI permanently to expose this property or make a copy with the property exposed.   I haven't messed with the new class reports too much, so not sure of the ins and outs with this.
    I think this is the issue with the row size becoming smaller.
    Mark Ramsdale

  • Different row heights in one table - is this possible?

    I want the height of each row in a table to be set to fit the contents of that particular row.
    The column which drives the cell height uses the cell formatting options "Wrap Text" and "Row by Row Auto Fit". These options will set the row height of all rows to that which fits the tallest cell. What I prefer is to have one row height be 4, if that's all it needs, while the next row may have a height of 32 because of a long line of wrapped text.
    Can this be done with DeskI XI 3.1?

    In BO XIR3.1 the row height does not appear to be based on individual rows. Instead the row height is the same for each row in the table. Is there some setting that I need to adjust here?

  • How to increase the row height of the table in the smartform

    Hi,
    Can any one say,
    How to increase the row height of the table in the smartform.
    It is presently show the row width very small, i want to increase the row with of the table in the smartform.
    Plase say how can we increase the row height in the smartform.

    Hi Ravi,
         In Smartforms , Select the Table and you can adjust the cell hieghts in OUTPUT OPTIONs TAB.
        Reward points if that Helps.
    Manish

  • Dynamically adjust table row height based on data in column

    Hi all,
    I'm using JDeveloper 11.1.1.5.0 and have a requirement for a table to adjust the height of its rows depending on the data in the columns. One of the columns in the table is a rich text description field and I have the 'rows' property set to 13. This field could have twenty lines of text/images or just one. The users would like the page to show all twenty lines of text without having to scroll but the table has the same height for all the rows (that I set to 13) and provides a scroll bar when the data exceeds this size. My users do not like to scroll, and want the height of each row to be determined by the data in it. I looked at a few options and also did a search online, but was unable to find anything to fulfill this requirement. Do you know of how I could change the height of each row in the table so that it fits the data that it holds?
    I have an example of my table at: <b>Table with Set Row Height</b>
    As you see, the picture has to be scrolled so that the whole picture is visible. The user requirement is to adjust the row height to show the full picture. Ideally the next two rows would shrink, but that would be a nice to have.
    Thanks in advance for any pointers or help.

    Hi Frank,
    Thank you for replying to my question, I truly appreciate your help.
    I tried to use the autoHeightRows to adjust the height of my rows but was unsuccessful. If I understand the autoHeightRows property correctly, this is used for setting the height of the whole table. If this is incorrect and it can be used for setting the height of individual rows in the table, please correct me. I have the 'Rows' property of the richTextEditor set to 13 and this is the height that I would like to make dynamic based on the data.
    My users requirement is for the height to be big enough for the data in each row of the table (the table has a description column and the height of each row should be determined by the data contained in it). I updated my <u><b>Screen Shot</b></u> to show the desired layout and what is currently being generated though ADF (http://www.flickr.com/photos/87583386@N05/) .
    I have three rows in the example (in actuality these are around 50) and the text in each row can vary. The users would like to see the full text/image in each row without having to scroll each row. Currently my table is within Panel Box, which is inside a PanelGroupLayout-Scroll which is in a PanelStretchLayout. I tried to put the table by itself with the autoHeightRow modifications you suggested but thsi did not help either. I am using JDeveloper 11.1.1.6.
    Is this possible with an ADF Table? If it is, is the autoHeight property the only one that I am setting incorrectly? If not, is there another component I can use to get the desired functionality? My users are very strict about this requirement and will not accept the application without this.
    Thanks,

  • Table Component and Row Height

    I am using XCelsius 4.5 and using the table component.  Is there anyway the row height on the table component can be linked to the Excel file?  It is not dynamically changing or wrapping text based on the amount of data that is imported in.

    Judging from the stack trace this has nothing to do with your variable row height. You are simply not respecting some array bounds (maybe your data array for the table model) when you insert the new row.
    In newRouteFare() do you fire a tableRowsInserted event? Or something similar? Check the rows passed into the Event object to see if you are exceeding the limits of the current table model.
    Thomas

  • Table row height adjustment

    I am attempting to insert a table to create an online
    business directory for my city. When I enter the table, it allows
    me to set my number of columns and rows, as well as the table
    width. However, it automatically sets the row height to 240 pixels.
    When I try to change the row height to something more reasonable,
    it gives me this error message:
    "Making this change would require changing code that is
    locked by a template or translator. The change will be discarded."
    Which I assume means something I did when creating my
    template for my website locked this in, but I have no idea what I
    did or how to fix it. Any ideas??
    Thanks so much!!

    That's ok so far. A paragraph sign at the end of a text forces a new line.
    To change that do the following:
    For every condition you need another condition just for the paragraph sign that comes immediately after the condition. Not after every paragraph of one condition, but at the end of every consecutive numbers of paragraphs of the same condition.
    So in your third example you'll need two conditions more:
    1. One for the paragraph sign at the end of condition "meaasurements"
    2. One for the paragraph sign at the end of condition "price 2"
    Whenever you make the other conditions invisible, you also have to turn off the new conditions that only control the paragraph signs.
    See the following screenshots:
    Uwe

  • Why can't i change row and column height in tables?

    a mind-boggling problem to be sure. For some odd reason, I can't use the inspector to type in row/column heights for tables. I can use the up/down arrows, but those only work in increments of 1. I can manually adjust them one by one but as soon as I edit text in a different table cell, I have to start all over again. Does anyone else have this problem?

    Hi Gerry & Ric
    I had already tried both of your suggestions without any luck but I appreciate the help anyway. I should've been a bit more specific: I can actually type in the column/row height windows, but when I press return or tab, Pages ignores the numbers. I've tried using both the number pad and the regular keyboard numbers and every manner of clicking, enter, tab, control, alt......there must be some setting with my computer that is causing an incompatibility with Pages. Boh!
    Susie

  • Resize table row height dynamically

    Hi All,
      I have a requirement to display four item texts in one of the table column. I had created a subform with four texts in that column. I am getting the data as required, but by default the table row size has increased because of four texts in the column. At times, i have only data in two texts, still getting the default size of the row(0.41in height), how can i adust the height based on the data. How can i adust the row of the table dynamically.  
    Thanks,
    Kumar

    Hi Kumar,
    I did similar to this, where as my table is entirly designed in subforms, so there is no auto setting of the columns of a row.
    I had the below code, which finds the maximum height of a coulmn element and sets its height to all of the coulms of a row instance.
    I call this function on layout ready event of the row, as below
    ItemGenerator.setHeight(this);
      function setHeight(rowData){
         if(rowData.presence == "visible"){
    //             xfa.host.messageBox("height set start in layout ready");
               var yearH = parseFloat(xfa.layout.h(rowData.FinYear,"in")).toFixed(3);
    //           xfa.host.messageBox("1");
               var ipaH = parseFloat(xfa.layout.h(rowData.IPAType,"in")).toFixed(3);
    //           xfa.host.messageBox("2");
               var expenseH = parseFloat(xfa.layout.h(rowData.ExpenseType,"in")).toFixed(3);
    //           xfa.host.messageBox("3");
               var descH = parseFloat(xfa.layout.h(rowData.Description,"in")).toFixed(3);
    //           xfa.host.messageBox("4");
               var payH = parseFloat(xfa.layout.h(rowData.PayType,"in")).toFixed(3);
    //           xfa.host.messageBox("5");
               var payconH = parseFloat(xfa.layout.h(rowData.PayConditions,"in")).toFixed(3);
    //           xfa.host.messageBox("6");
               var acqconH = parseFloat(xfa.layout.h(rowData.AcqittalCond,"in")).toFixed(3);
    //           xfa.host.messageBox("7");
               var maxHeight = Math.max(yearH,ipaH,expenseH,descH,payH,payconH,acqconH)+"in";
               var marginBottom = parseFloat(Math.max(yearH,ipaH,expenseH,descH,payH,payconH,acqconH)- 0.2).toFixed(3)+"in";
    //           xfa.host.messageBox("max height = "+maxHeight);
    //           xfa.host.messageBox("bot margin  = "+marginBottom );
               rowData.h = maxHeight;
               rowData.IPA.h = maxHeight;
               rowData.IPA.margin.bottomInset = marginBottom ;
    //           xfa.host.messageBox("8");
               rowData.FinYear.h = maxHeight;
    //           xfa.host.messageBox("9");
               rowData.IPAType.h = maxHeight;
    //           xfa.host.messageBox("10");
               rowData.ExpenseType.h = maxHeight;
    //           xfa.host.messageBox("11");
               rowData.Description.h = maxHeight;
               rowData.ReqAmt.h = maxHeight;
    //           xfa.host.messageBox("11");
               rowData.RecAmt.h = maxHeight;
    //           xfa.host.messageBox("12");
               rowData.PayType.h = maxHeight;
    //           xfa.host.messageBox("13");
               rowData.PayConditions.h = maxHeight;
    //           xfa.host.messageBox("14");
               rowData.AcqittalCond.h = maxHeight;     
    //           xfa.host.messageBox("15");
               rowData.Remove.h = maxHeight;
               rowData.Remove.margin.bottomInset = marginBottom ;
    //           xfa.host.messageBox("finally");
    Hope something of this sort might helpful to you.
    Cheers,
    Sai

  • CSS issue when changing the table row height to 16px

    Hello,
    After changing the table row height through css like this:
    .table-row-cell, .table-cell {
    -fx-cell-size: 16;
    the table rows are correctly displayed with a 16px height but the cell bottoms seem to be incorrectly set.
    For example the following css style (a red 3px bottom border):
    .table-cell {
    -fx-border-width: 0 0 3 0;
    -fx-border-color: red;
    doesn't work anymore with the new row height whereas it works with the 24px standard row height.
    While investigating with Scenic View, I noticed that changing the row height changes the TableRow layoutBounds height (from 24px to 16px so that's ok) but not the boundsInParent height which remains to 27px. I think it should become 19px (16 + 1.5 + 1.5). I don't know if it's a bug.
    Anyway, any help making the css red border working for a 16px row height would be greatly appreciated.
    Regards,
    Bruno.

    Q: Would this help to just use absolute div tags and give me 'ABSOLUTELY ABSOLUTE' positioning?
    No.  APDivs are not a good primary layout method.  Use default CSS positioning (which is no positioning at all).  Align page elements with margins, floats and padding.
    See example -- 2-Column CSS Layout with Grids
    (View Page Source in your browser to see the code)
    http://alt-web.com/TEMPLATES/2-col-fixed-with-grid.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Increase row height of a configurable table

    Dear SCN members,
    This is related to a configurable table realized using <chtmlb:configTable>. Please let me know about the following possibilities with this:
    1. Is it possible to increase the row height of this table?
    2. The content of a given cell is truncated with three dots and the complete content is visible on the tooltip if the context exceeds the column width. But is it possible to see the complete content of such cells on the table itself with some kind of wrapping rather than just on the tooltip?
    Thanks!

    It is not directly possible, however with iterator and use of text area, it is possible to display longer texts on a table.

Maybe you are looking for