Posted: Tue Jun 26, 2007 5:02 pm
hi Steve
I am currently working on a way to print some cells of records neatly formatted as pdf.
I am doing this via the (open source)class fpdf. This is done by a php script which expects the id of the record as a post parameter.
So my plan was, to modify the main action.ini like this:
------------------snip----------------------
[print_this]
label = print
description = print this record
url = "{$dataface_url}pdf.php?-action=print_this&-table={$table}&-record={$record}"
accessKey = p
category = table_actions
icon = "{$dataface_url}/images/printer-orange.gif"
mode = print
;;template = HelloWorld.html
permission = view
order=5
-----------------snap-------------------------
but... action.ini seems not to know which record i mean
it was just a try ,unfortunately without luck.
but maybe you have a better idea on how to implement this without modifing the dataface core files
cheers
martin
I am currently working on a way to print some cells of records neatly formatted as pdf.
I am doing this via the (open source)class fpdf. This is done by a php script which expects the id of the record as a post parameter.
So my plan was, to modify the main action.ini like this:
------------------snip----------------------
[print_this]
label = print
description = print this record
url = "{$dataface_url}pdf.php?-action=print_this&-table={$table}&-record={$record}"
accessKey = p
category = table_actions
icon = "{$dataface_url}/images/printer-orange.gif"
mode = print
;;template = HelloWorld.html
permission = view
order=5
-----------------snap-------------------------
but... action.ini seems not to know which record i mean
it was just a try ,unfortunately without luck.
but maybe you have a better idea on how to implement this without modifing the dataface core files
cheers
martin