Last page update: November 23, 2011
Classes:
- BaseResourcePrint: BaseResourcePrint - webpage variables
Complete reference:
With the term webpages variables we mean that there are some defined variables that you can use to customize the class to which they belong (in this case, the BaseResourcePrint class). They are:
TODO. Default value is False
TODO
TODO
A string with the print setting dialog height. Default value is 300px
TODO. Default value is 245px
A string with the print setting dialog width. Default value is 460px
MANDATORY. Specify the location path of the print layout file. The root of the path you specify is:
projectName/packages/packageName/resources/tables/tableName/Example:
if you write:
html_res='html_builder/doctor_performances'then the location path of your print layout file must be:
projectName/packages/packageName/resources/tables/tableName/html_builder/doctor_performanceswhere html_builder is a folder you created and doctor_performances is the name of your print layout file
Allow to send emails to the corresponding people that owns the data you want to print. It is mandatory that exists a column specified for the emails. Default value is None
For example, if you create a print with the invoices of 10 doctors, you can choose to send an email to them with their relative invoices.
The syntax is:
mail_address = 'fieldName'where fieldName is the name of the field that contains the doctors’ emails in the database model table
Specify the authorization level needed by the customer to send print through email: if the user has the same authorization level of the mail_tags level, then he can use some additional options of the print setting dialog (the PDF by mail and the Deliver mails)
For more information, check the print region section
A string with the names of the html templates separated by a comma. More information in the TODO section of the html template page