Developer’s Guide

Table Of Contents
B-2 Developer’s Guide
To find any record using a hypertext link:
<a href="FMPro?–db=employees.fp5&–format=–fmp_xml &
–findany">Find a random record for today’s daily quote</a>
To find some records using a form action:
<form action="FMPro" method="post">
<input type="hidden" name="–db" value="employees.fp5">
<input type="hidden" name="–format" value="–fmp_xml">
<input type="hidden" name="–max" value="all">
<input type="text" size=12 name="Country" value="USA">
<input type="submit" name="–find" value="Find Records">
</form>
Generating a –view request
Name/Value Type: View Request
What it does: Retrieves layout information from a database and
displays it in the FMPXMLLAYOUT grammar.
Required parameters: –db, –lay, –format (= –fmp_xml)
Optional parameters: –styletype, –stylehref
Examples of –view requests
To retrieve layout information using a hypertext link:
<a href="FMPro?–db=employees.fp5&–lay=LayoutOne&–format= –
fmp_xml&–view">"Take me to a search page"</a>
To retrieve layout information using a form action:
<form action="FMPro" method="post">
<input type="hidden" name="–db" value="employees.fp5">
<input type="hidden" name="–lay" value="LayoutOne">
<input type="hidden" name="–format" value="–fmp_xml">
<input type="submit" name="–view" value="Show Search Page">
</form>
Generating a –new request
Name/Value Type: New Record Request
What it does: Creates a new record and populates that record with
the contents of any field name/value pairs.
A web user must have access privileges for creating records in order
to execute this request.
Required parameters: –db, –format, one or more field name(s)
Optional parameters: –styletype, –stylehref
Note To include new data for a portal, you must also specify the
layout and the relationship name for the related database followed by
two colons. You can only add one row/record to a portal per request.
The -max parameter returns 0 if the request returns no records.
Examples of –new requests
To create a new record using a hypertext link:
<a href="FMPro?–db=employees.fp5&Country=Australia&
–format= –fmp_xml&–new">
To create a new record using a form action:
<form action="FMPro" method="post">
<input type="hidden" name="–db" value="employees.fp5">
<input type="hidden" name="–format" value=”–fmp_xml”>
<input type="text" size=12 name="Country" value="Australia">
<input type="submit" name="–new" value="New Record">
</form>