Page 1 of 1

htmlReports tables

PostPosted: Tue Mar 27, 2012 11:58 pm
by jvinolas
I have xataface 1.5 and htmlreports working as expected. I have hidden some tables so they are not visible in menu tab, but they are accessible through some rendercell html links. I keep it in this way because I have many tables.

Is is possible to get those hidden tables in conf.ini to be shown in htmlreports table selection dropdown box? Now they are hidden as in menu tab. My goal is to be able to put htmlreports in those hidden tables.

Thanks.

Re: htmlReports tables

PostPosted: Wed Mar 28, 2012 9:21 am
by shannah
You can add a section to your conf.ini "_htmlreports_tables" that works exactly like the _tables section. Tables you list in this section will be available in the htmlreports module.

Code: Select all
[_htmlreports_tables]
    mytable=My Table label
    mytable2=My 2nd Table label


-STeve

Re: htmlReports tables

PostPosted: Thu Apr 05, 2012 12:37 am
by jvinolas
Thanks a lot, it worked as expected!

Another question about htmlReports: Is it possible to create an envelope label table that prints out each instance in each cell? I know I can do it if I have a main table and a related table with the label data, but is it possible to do it if I only have one main table with users and addresses?

My goal is to create labels in a format like this:
ImageImage
but using a single table, not a main table and a relationship to the data table.

Thanks again!

Re: htmlReports tables

PostPosted: Thu Apr 05, 2012 9:23 am
by shannah
I think you could probably achieve this with some clever CSS. Each one of those labels would be a single "page" or single "record". If each record is wrapped in a div tag, you could set the size of these div tags to be a particular size, then use float: left to make them float across the page in rows.

-Steve

Re: htmlReports tables

PostPosted: Tue Apr 10, 2012 12:53 am
by jvinolas
I can manage through css code to position div in page, but I don't know which code I have to insert to "jump" to next record inside the same template HTML. I've tried with page-break-after: always; without success.
Thanks.

Re: htmlReports tables

PostPosted: Tue Apr 10, 2012 1:41 pm
by shannah
There's no way to "jump" to the next record. The template is meant to work on a single record.
It is set up for a template to apply to a single record only. If you're viewing in table view, it will also let you specify a table template - but that doesn't help for making address labels.

I was more suggesting that you treat each label like it is its own page. Then with CSS you can make each page small and float left so that they are tiled across the page when printed.