Page 1 of 1

Printing a browse form when using temporary tables

Posted: Sat Feb 17, 2018 12:18 am
by Fike
I have a browse form which table content is retreived from diferent tables using the 'Before browse' php section, creating a temporary table wiht the hash variable #TABLE_ID#

Therefore the SQL of the browse form is: SELECT * FROM #TABLE_ID#

This works fine when displaying the browse form. However, when pressing the 'Print' button, the new window only displays the headers of the table.

I checked the vale of 'last.browse_sql' in the nuPrintAction() function, and it is somthing like: SELECT title_01, title_02 FROM ___nu15a87637ede74e___ WHERE 1

This query throws an error becuase the tempory table created 'Before browsing' no longer exists.

Is there any workaround for this?

Kind regrads


Fike

Re: Printing a browse form when using temporary tables

Posted: Sat Feb 17, 2018 2:08 am
by admin
Fike,

At the moment, that is a bug.

A workaround, in the meantime, would be creating a VIEW instead of creating the temp table.

And using that as a TABLE.

Steven

Re: Printing a browse form when using temporary tables

Posted: Fri Feb 23, 2018 1:25 am
by Fike
The view worked great!

Thank's a lot Steven!

Re: Printing a browse form when using temporary tables

Posted: Fri Feb 23, 2018 3:14 am
by admin
.

Re: Printing a browse form when using temporary tables

Posted: Wed Aug 22, 2018 1:53 pm
by Timo
admin wrote:Fike,

At the moment, that is a bug.

A workaround, in the meantime, would be creating a VIEW instead of creating the temp table.

And using that as a TABLE.

Steven
When can we expect a fix? Using a VIEW is no option for me. (need to dynamically create the sql statement). Thank you.

Re: Printing a browse form when using temporary tables

Posted: Tue Aug 28, 2018 4:24 am
by admin
Timo,

The Print Button should now work using #TABLE_ID#


Steven

Re: Printing a browse form when using temporary tables

Posted: Thu Aug 30, 2018 1:24 pm
by Timo
Thanks! I'll try it out as soon as I have a chance.

Re: Printing a browse form when using temporary tables

Posted: Tue Sep 04, 2018 4:04 am
by admin
.

Re: Printing a browse form when using temporary tables

Posted: Fri Sep 07, 2018 4:52 am
by Timo
It works like a charm :D

Re: Printing a browse form when using temporary tables

Posted: Wed Sep 12, 2018 4:21 am
by admin
.