Developer’s Guide

Table Of Contents
6-10
Developer’s Guide
For example, these CDML replacement tags in the web page:
<!- - Put some text into the log file - ->
[FMP-Log: Bob wanted this feature.]
[FMP-Log: Let’s be nice and implement it for him.]
Will generate these lines in the info.log file:
[06/May/2000:20:33:08 –0800] Bob wanted this feature.
[06/May/2000:20:33:08 -0800] Let’s be nice and implement it for him.
For information about the CDML replacement tags, see chapter 9,
“Custom web publishing using CDML.”
Using the Web Companion external functions
You can use the FileMaker Pro Web Companion external functions
with your calculations or scripts to:
1 check the version of the Web Companion
1 capture information about visitors to your database
1 translate information in your database to HTML or HTTP
For information about developing your own external function plug-
ins, see chapter 10,“Writing external function plug-ins.”
To use a Web Companion external function in a calculation field:
1. Be sure the Web Companion is enabled. (See “Enabling the Web
Companion” on page 6-3 for information.)
2. Choose File menu > Define Fields.
3. Type a name for the new calculation field in the Field Name box.
4. For Type, select Calculation, and click Create.
5. In the Specify Calculation dialog box, choose External Functions
from the View pop-up menu.
6. Double-click one of the external functions in the list that begins
with the function prefix “Web-” to add it to the formula box.
A formula for an external function requires the name of the external
function to call and the function’s parameter.
7. Replace the word “parameter” with the required parameter for the
function (0, field name, or text value).
See the table for a description of the Web Companion external
functions and their parameters.
8. Continue to build the formula as desired and click OK when you’re
done.