htmlReports tables

A place for users and developers of the Xataface to discuss and receive support.

htmlReports tables

Postby jvinolas » Tue Mar 27, 2012 11:58 pm

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.
jvinolas
 
Posts: 51
Joined: Thu Apr 15, 2010 12:31 am

Re: htmlReports tables

Postby shannah » Wed Mar 28, 2012 9:21 am

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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: htmlReports tables

Postby jvinolas » Thu Apr 05, 2012 12:37 am

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!
jvinolas
 
Posts: 51
Joined: Thu Apr 15, 2010 12:31 am

Re: htmlReports tables

Postby shannah » Thu Apr 05, 2012 9:23 am

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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: htmlReports tables

Postby jvinolas » Tue Apr 10, 2012 12:53 am

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.
jvinolas
 
Posts: 51
Joined: Thu Apr 15, 2010 12:31 am

Re: htmlReports tables

Postby shannah » Tue Apr 10, 2012 1:41 pm

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.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 27 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved