Changes

Jump to: navigation, search

Attach a PDF to a Web Page View

570 bytes added, 15:44, 4 December 2014
Additional Information
* All PDF page settings will driven by the first PDF document file, whether it is a static file or one generated by [[SmartSimple]]
* Multiple PDF files can be attached from different sources by using multiple ssattach statements:
<prestyle="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><!--@ssattach(before;/files/1234/123/myfileheader.pdf )--><!--@ssattach(after;/files/1234/123/myfilefooter.pdf )-->
<!--@ssattach(after;/files/1234/123/myfileappendix.pdf )-->
<html><body>
* [[sslogic]] can be used if the PDF file(s) to be attached needs to be varied using conditional statements:
<prestyle="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><!--@sslogic('@type@'='contact')-->
<!--@ssattach(after;@parent.contract.value@)-->
<!--@else-->
Attaching a file from transaction to a level1 web page view use
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">@client.[#(?object=transaction::criteria=typename="Transaction Name" and statusname="Submitted"::orderby=trsts desc)
<!--@ssattach(after;$fieldname.value$)-->#]@
</pre>
ExExample: <pre style="white- space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">@client.[#(?object=transaction::criteria=typename="Audited Financial Statements" and statusname="Submitted"::orderby=trsts desc)<!--@ssattach(after;$Recent Audited Financial statements.value$)-->#]@</pre>
==See Also==
8,849
edits

Navigation menu