[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
PROCESS-PRINTOUT trigger not available any more
From: |
Reinhard Mueller |
Subject: |
PROCESS-PRINTOUT trigger not available any more |
Date: |
Tue, 08 Mar 2011 18:56:31 +0100 |
Hi, all,
I've just removed the PROCESS-PRINTOUT trigger from gnue-forms, because
* it didn't really work as intended anyway - the trigger had to be a
NAMED trigger of name="process-printout" rather than a trigger or
type="PROCESS-PRINTOUT"
* it is now possible to achieve exactly the same by hiding the normal
printout button in the form and adding a new button to the
__extra_toolbar__ with a custom function.
This is how you would do this:
<form>
<toolbar name="tlb__extra_toolbar__">
<toolbutton name="tlb_my_print" action="act_my_print"/>
<toolbutton name="separator"/>
</toolbar>
<trigger type="ON-STARTUP">
form.tlb__main_toolbar__.tlb__rollback__.hidden = True
form.tlb__main_toolbar__.tlb__sep5__.hidden = True
</trigger>
<action name="act_my_print" icon="printout" label="Custom printout">
print "printing now"
</action>
</form>
You can even leave the form printout routine in and add the custom
printout as a second option, where I would certainly recommend to use
different icons for the two buttons :-)
Thanks,
Reinhard
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- PROCESS-PRINTOUT trigger not available any more,
Reinhard Mueller <=