Developer’s Guide

Table Of Contents
Publishing your database on the Web 6-15
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 next 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.
9. Click Done to close the Define Fields dialog box.
External function’s name
and parameter Description of external function
Web-Version, 0 Returns the version of FileMaker Pro Web
Companion that loads when you open
FileMaker Pro
Web-ClientAddress, 0 Returns the domain name (for example,
www.filemaker.com) of a web user whose HTTP
request is currently being processed by the Web
Companion. Returns the web user’s IP address if the
domain name is not available.
Web-ClientIP, 0 Returns the IP (Internet protocol) address of the
web user whose HTTP request is currently being
processed by the Web Companion
Web-ClientName, 0 Returns the value that the web user types for a
user name in the web browser password dialog
box
Web-ClientType, 0 Returns the name and version of the web
browser being used by the web user
Web-ToHTML, field name
Web-ToHTML, text value
Returns the contents of the specified field or text
value encoded in HTML. This is useful, for
example, when you want to modify a data field
with a calculation and then use it as an error
page.