Limit the possibility of appending rows in a textarea - html

Is there a way to eliminate the possibility of appending rows in a textarea with the ENTER key?
I mean to not allow entering more than a fixed number of rows (say, 8 rows)
I tries this:
<textarea id="inspectionTextId" style="overflow: hidden;" rows="8" cols="72"></textarea>
but it hided the scrollbar and limited the number of visible rows only. After having entered 8 rows, I was still able to enter more rows.

Related

Create an HTML table where text overflows across rows within a column

I need to create a table (or something that is rendered like a table; it's meant to be printed and I don't care what it is semantically) where the text flows automatically from one row to the next within the same column. Also, the columns need to have a pre-determined width, and there must be a pre-determined number of rows (with extra empty rows if needed).
Example:
The reason behind this, in case you're wondering, is that it's meant to emulate text that's hand-written into a printed form that looks like the table above, only empty.
How would you do this?

SSRS Extra blank pages on PDF export with hidden tablix element

I have a report that has 3 sperate tables, one of which can be hidden based on the user selection from a parameter to export it as XLSX/PDF. The table is hidden if the user selects PDF as it is a large table with ~30 columns. The issue I am running into is even when this large table is hidden on the PDF selection (utilizing an expression in the hidden property), it still leads to multiple blank pages being inserted on the export.
I believe the issue is that the entire report body extends well beyond the margins (77in width) because of this large table. I have confirmed that the other two tables alone do not print any extra pages when the third larger table is removed. I have set the margins for the other tables and selected the consume white space property.
Any ideas on how to navigate this? I can't shrink the third large table size as users who select XLSX, the columns would be smashed together/very small in width.
Thanks

How to show hidden characters

I need to check whether for specific table and specific row for all columns if within any of them there are some hidden characters besides what is already visible.
something like (pseudo code):
SELECT * FROM table WHERE inAnyofColumns there are hidden characters Then Show that columns and that characters.

Set max lines displayed in WebI BO report

How would I set a maximum lines to display in a BO 4 report? On each page, I'd like to show 20 account numbers in column 1 with item counts in the next columns. There are some good discussions on limiting the rows retrieved in a query (e.g., Limit number of result or rows returned in BO using WebI). Some suggestions include using sections with RowIndex()/20 to limit the lines to 20, so I tried adding a variable =Floor(RowIndex()/20). However, the lines in my report contain aggregated variables, and the row index counts all records retrieved. Thoughts?
One option:
Add a column on the far left of the block. Use the following formula:
=Floor(RunningCount([Account Number])/10)
(assuming, of course, that your dimension is named [Account Number])
Create a break on this column. (Report Element -> Table Layout -> Break -> Add Break). Go back to the same menu and click Manage Breaks. Click the "Start on a new page" checkbox.
This will create a block with a maximum of 20 rows per page. Unfortunately, there's no direct way to hide a column in WebI, so you'd be stuck with this ugly column. What you can do, however, is remove all borders, change the font to white-on-white, and reduce its width as much as possible.

Table data causing horizontal scroll

I've got a table on a webpage, with (say) 8 columns, and it's worked just fine until recently...
A user registered with an email address for a display name (not a huge issue, but the email is massive). Now, as one of the columns is a 'reported by' containing username, any pages with said user on them now have a massive 'reported by' column...
I should also emphasise, the table width was 100% (minus a 'margin') prior to this issue, and it worked just fine).
Is there a clever way to introduce a line break on a '.' or an '#'? Alternatively, how do people normally get around this? Interesting solutions to this annoying problem are welcomed!
When you generate your html table content code, truncate every content extracted from your database to a maximum width. Your truncating function can easily add a tooltip giving the full label.
Alternatively, do this in javascript on pageload. Parse every table cell and truncate the content if it's too large. It's not as nice as server-side truncating, though.
The upside is that you can give the full label in a tooltip, append '...' to let the user know the label is truncated, etc.
Use the table-layout css property.
table-layout: fixed;
http://www.quirksmode.org/css/tables.html#tablelayout
You could set a max-width on the column and overflow:scroll or even overflow:hidden.