I have a screen that looks like this:
ftl menu containing <select name="printerName" class="selectBox">
and a button
some more ftl
a form called createCollectionContact
some more ftl
I want the button in the menu to do a post that includes the printerName
variable, but for the life of me, cannot figure out how to do it.
I have tried these:
<!-- <a class="subMenuButton"
href="javascript:document.forms['createCollectionContact'].action='<@ofbizUr
l>printCustomerStatement</@ofbizUrl>';document.forms['createCollectionContac
t'].submit()">${uiLabelMap.CoPrintStatement}</a> -->
<a
href="javascript:document.createCollectionContact.action='<@ofbizUrl>printCu
stomerStatement</@ofbizUrl>';document.createCollectionContact.submit();"
class="buttontext">${uiLabelMap.CoPrintStatement}</a>
<!-- <a class="buttontext"
href="<@ofbizUrl>printCustomerStatement?partyId=${partyId?if_exists}</@ofbiz
Url>">${uiLabelMap.CoPrintStatement}</a> -->
<a
href="<@ofbizUrl>customerVendorStatement.pdf?partyId=${partyId?if_exists}&fr
omDate=${fromDate?if_exists}&thruDate=${thruDate?if_exists}&glFiscalTypeId=A
CTUAL&reportType=CUSTOMER</@ofbizUrl>" class="buttontext">
${uiLabelMap.CoPDFStatement}</a>
and nothing seems to work to get printerName down to the service (I have
listed the context to the log file to see what is there). Am I forced to
put the button and dropdown inside the form and do a post from in there? I
need to have the contents of printerName and te partyId for the service.
Skip