Changes

Web Page View Field

1,878 bytes added, 00:24, 5 December 2008
no edit summary
* '''Save to Multiple File Field''' – enables the [[User|user]] to save the document as a PDF into any multiple file type fields in the related [[Entity|entity]].
* '''Save to Local Disk''' – enables the [[User|user]] to save a local copy of the PDF document.
 
<u>'''Attach PDF File to Web Page View Field'''</u>
 
This directive is not visible to web page in HTML mode but is effective when exported as a PDF, saved as a PDF, emailed PDF and created by [[Workflow|workflow]] as attachment.
 
'''Sample Codes'''
 
1. Appending current web page field to a PDF file from [[Smart Folder|smart folder]].
 
<pre>
<!- - @ssattach(before;/files/1234/123/myfile.pdf )- ->
</pre>
 
2. Appending a PDF file from [[Smart Folder|smart folder]] to current web page field .
 
<pre>
<!- - @ssattach(after;/files/1234/123/myfile.pdf )- ->
</pre>
 
3. Appending current web page field to a PDF file from a [[Custom Field|custom field]] (single file type).
 
<pre>
<!- - @ssattach(before;@attach pdf file@)- ->
or
<!- - @ssattach(before;@#xxxxxxx#@)- -> where xxxx is customfield id.
</pre>
 
'''Rules'''
 
* Directives can be placed anywhere inside the field, more than one directive can be used like this.
 
<pre>
 
-----------------------------------------------------------------------------------------------
<!- - @ssattach(before;/files/1234/123/myfileheader.pdf )- ->
<!- - @ssattach(after;/files/1234/123/myfilefooter.pdf )- ->
<!- - @ssattach(after;/files/1234/123/myfileappendix.pdf )- ->
 
 
<html><body>
My Pdf file
</body></html>
 
</pre>
 
* All page settings will driven by first PDF document file, either it is a static file or generated by [[SmartSimple]]
 
 
'''Logic'''
 
* Using @customfield@ instead of [[Smart Folder|smart folder]] file (like @parent.contract@)
* Use if sslogic like this:
 
<pre>
<!- -@sslogic(‘@type@’=’contact’) - ->
<!- -@ssattach(after;/files/1234/123/myfilefooter.pdf )- ->
 
<!--@else-->
<!- - @ssattach(after;/files/1234/123/myfilefooter.pdf )- ->
<!--@end-->
 
</pre>
 
[[Category:Custom Fields]][[Category:Enhancements]][[Category:System Management]]
 
<u>'''HTML Options'''</u>
4,401
edits