The wvDisplay BlackBox functions are intended to make it easier (or possible) and more flexible to display images, flash and PDF files on your FileMaker layouts. The BlackBox has three functions, DisplayImage, DisplayFlash and DisplayPDF. The
DisplayText function is now a part of the free Lite BlackBox (Included in Reactor itself). Each of these functions provide advanced options to display these components in a Web Viewer.
DisplayImage
Displays an image file, resizing the image nicely to fit the space.
DisplayImage( imageContainer {; bgColor } )
Parameters
|
Parameter Name |
Description |
| 1 |
imageContainer |
The image you want to display in the Web Viewer. This can be a container field or a URL/path to the image. |
| 2 |
bgColor |
The background color. Three formats are recognized: hex e.g. #00ffff (no spaces) or RGB() e.g. RGB(200,0,0) or common color names recognized by all browsers. e.g. DisplayImage( myImage; "red" ) |
DisplayFlash
Displays a Flash file, using a simple generic wrapper, which can detect Flash Players presence, and display a message to users if they do not have the appropriate version of Flash Player installed.
DisplayFlash( flashDocument {; flashVersion ; flashVars ; flashParams } )
Parameters
|
Parameter Name |
Description |
| 1 |
flashDocument |
The actual flash document you want to display in the Web Viewer. This can be a container field, or a URL/path to the flash document. |
| 2 |
flashVersion |
The minimum flash plugin version that the user must have to view this document. If the users player version is less than this, we will give the user the option to upgrade their flash player. |
| 3 |
flashVars |
flashvars you want passed through to the action script. These must be specified in name:'value' pairs. |
| 4 |
flashParams |
The parameters which go inside the embed/object tag. Use this if you need to set the flash document's background color or other advanced options. See the documentation for available parameters. |
DisplayPDF
Displays a PDF file, using a simple generic wrapper, which will detect if a PDF plugin capable of display the PDF is available. Also allows you to easily pass a list of parameters to the plugin (particularly useful with the Adobe Acrobat/Reader plugin).
DisplayPDF( pdfDocument {; pdfParameters } )
Parameters
|
Parameter Name |
Description |
| 1 |
pdfDocument |
The actual PDF document you want to display in the Web Viewer. This can be a container field, or a URL/path to the PDF document. |
| 2 |
pdfParameters |
Parameters for displaying PDFs. Documentation for the available parameters depends on the installed PDF viewer, and can usually be found on the vendors website. For example: "navpanes=0¶toolbar=0¶statusbar=0¶messages=0" |
Example
Comments
Bart (unauthenticated)
Aug 31, 2011
Examples plizzzzzzzzzzzz
esp. examle for displaying PDF FROM a container field!!!!!!!!!!!!!!!!!!!!!!!!!
Sam Sehnert
Sep 23, 2011
Thanks Bart, have added an example.