Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

I am just starting to get into learning CDML, after successfully posting a database on the web with IWP and finding the limitations. I have spent all evening trying to wrap my brain around how CDML works. (To little success!)

Hopefully this isn't *too* dumb a question: I'm a little confused as to which format file will appear first when a visitor enters the website. I have my HTML page set up as a default for the web companion, but I'm not sure about the "name and path" of the format file to link to. How does one usually start this? I'd like the database/format file to first display a list of all the names in the database, but I'm not sure how to go about that.

Also, I'm a little baffled as to how the FM database integrates with the HTML format files. As it is now, IWP shows my database as it was designed. Is this not the case with CWP?

Any help would be appreciated. Thanks in advance.

OK, here is how it all works:

1. Query the database with either a URL or Form:

URL:

http://address:port/FMPro?-db=mydb.fp5&-lay=mylayout&-format=myfmt.html&-findall

Form:

<form action="FMPro" method="post">

<input type="hidden" name="-db" value="mydb.fp5">

<input type="hidden" name="-lay" value="mylayout">

<input type="hidden" name="-format" value="myfmt.html">

<input type="submit" name="-findall" value="List DB">

</form>

2. The Format file (myfmt.html):

<html><head></head><body>

Field1 Field2 Field3<br>

[FMP-Record]

[FMP-Field:myfield1] [FMP-Field:myfield2] [FMP-Field:myfield3]<br>

[/FMP-Record]

</body></html>


Have the DB shared with "WebCompanion" and the Format file located in the "Web" folder within the Filemaker program folder.

This should get you started.

All the best.

Garry

  • Author

Thanks, Garry.

Let me see if I have this straight. The database will no longer be seen on the web. Instead, the format/HTML files will be what visitors see, and those files will be responsible for showing the data from the database. I can customize those HTML pages as much as a like as long as I don't mess up the CDML tags. Is this correct? (I feel like I need a CDML for Dummies book... :-)

Hi, this might be of some help. It's a very basic demo of cdml format pages and a database.

What it really does is to demonstrate how to use Filemaker to create links and get pictures, but it has 'search', 'amend' and 'create' pages and code for stuff like a value-list generated menu which might help to give you a start and show how CDML works at it's most basic. You can use the format pages to get CDML tags and form elements etc.

Instructions to get started are in the 'default.htm' page.

I've attached a .sit file, but I can make a .zip if you have problems with this.

mail me if anything isn't clear.

regards, jeff

Zoe,

Check-out Maria Langer's book "database Publishing with Filemaker Pro on the Web". Here is the link:

http://www.marialanger.com/booksites/fmproweb.html

This is a little bit old, however it is a great help for learning Custom Web Publishing.

I think "FM Web School" is another resource. People like Jeff and others are also great resources.

All the best.

Garry

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.