Table is going out of container in Pentaho - pentaho-cde

I am trying to put table in container inwith Pentaho BI.Table is going out of container.How can i get rid of it?Is there any property for Table component to adjust its width,or columns width individiually?

You can use CSS to style up the table. There is a property - table-layout - that can do the trick. For example:
.dataTable {
table-layout: fixed;
}
Another option is to use the Table Component properties to set up the widths of the columns manually. You can use any CSS-valid values, including pixels and percentages.

Related

Sejda HTML to PDF : how to keep thead on all pages where a table is displayed?

I'm using SEJDA API with PHP to convert HTML to PDF.
In this HTML, I have multiple tables with a variable number of rows, and each of them have a variable height, with a variable number of columns, etc.
Sometimes one (or more) table is long enough to be displayed on more than one page, so I can have a page with only rows of tbody but no thead "labels" to tell what each columns can represents.
Is there a proper way to force the thead to be shown on each page where the table is displayed ? The "css position:fixed" solution is not a good way because there is potentially more than one table and not all pages have a table on it.
Add this to your print styles:
thead {display: table-header-group;}
If your still having issues, try https://docamatic.com. There is a dynamic table template (JSON to PDF).

How to have same fixed width for all the column for Interactive report in Oracle APEX?

I have several Interactive reports on my Apex application page, all of them have same columns and column order, but according to the max length of the data for a particular column the column width keeps on changing for different reports, so when someone scroll it doesn't come all aligned, and visually it doesn't look good.
Something like the below image:
How to have all column to have fix the width? So that my data automatically wrap according to the width of the column.
Here's how:
navigate to interactive report columns' properties and set static ID for each of them (suppose that I have 2 columns, whose static IDs are IME and EVBR)
open page's properties and put something like this into its inline CSS property:
th#IME,
td[headers="IME"] {
width: 20em;
}
th#EVBR,
td[headers="EVBR"] {
width: 20em;
}
run the page; columns should have the same width now

css - table cells incorrectly aligned to header cells when global table { display:table-cell } was used

I had the global table's css set so non-related jqGrid table cells render correctly in all web browser (IE, Firefox, Chrome, Safari, etc.).
table { display: table-cell; }
A few years later, I start using jqGrid for 1st time and noticed the table cells rendered fine in IE but not in Firefox, Safari and Chrome.
So, what css property should I inject into to the ui.jqgrid.css file for the jqGrid to render properly?
Thanks.
I am not sure that I understand your problem correctly. I suppose that you have to have the CSS
table { display: table-cell; }
because of some reason and you want do display jqGrid correctly. In the case you can just add CSS
.ui-jqgrid table { display: table; }
which override the "global" setting for all tables used by jqGrid.
See the demo which uses the styles and which displays the grid correctly.

How to customize the table header and table row with a background color in LWUIT

I have created a table with the default table model that contains three columns and some rows, what I want to do is to customize the style of the header with a background color and also customize the background color of each rows with a different color than header colors.
Also I want to be able to set the size of each column to be different I want one columns to be larger than other two columns.
Please anyone can help?
Set the styles for TableHeader and TableCell respectively.
If you want more control than that derive table and override:
protected Component createCell(Object value, int row, int column, boolean editable)

Resize the JQGrid column at runtime

I need to resize the JQGrid column at runtime.
For eg: the column width for the column was 100px when it is loaded. I need to change it to 200 afterwards.
Please help.
Unfortunately there is no way to do this using the jqGrid API. From the documentation:
As mentioned above the options in colModel can be get or set using the methods getColProp and setColProp. Below are options which can not be changed dynamically when the grid is constructed (If changed they do not have effect or will cause the grid errors). For some of these options there are methods available to change the value:
name
width
resizable
label (method avail.)

Resources