Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 8534 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Hi... I'm just getting started using CDML with FileMaker Pro and I'm running into a few snags. Hopefully these questions aren't too annoying.

I'm trying to get my first test page up and running, so I created a file called default.html with the help of the CDML tool, placed it in my webfolder, and tried accessing it via http://localhost/default.html. FileMaker is set to port 80. However, instead of trying to do anything the the CDML tags, they are displayed in the browser just like any other text.

Any suggesions as to what I might be doing wrong? I was able to make a form page that inserts entries into the FileMaker Database just fine, but I can't seem to figure out how to tell my machine to parse CDML. Any help would be greatly appreciated.

Thanks in advance!

Posted

You have not initiated FileMaker pro anywhere on the web client. All it expects with a URL like that is straight HTML. You need to have the link look something like this: http://localhost/FMPro?-db=yourDataBaseNameHere&-lay=yourLayoutNameHere&-format=default.htm&-view

Once you try that, all of the filemaker tags that can be show will. If they require a specific record to be seen you can create a URL that does a find over to the Web companion. Hope this helps

  • Newbies
Posted

Yes, the first thing I tried was [FMP-FIELD:contacts::name], so I'm not sure why it's not working. The weird thing is, when I display JUST the field names, 'name' is listed as one of the fields, but when [FMP-Record] is anywhere on my page, it doesn't show up in the list. Could that be some sort of hint?

  • Newbies
Posted

Actually, I think I just figured out my problem... turns out the timesheets and contacts databases weren't directly relational. Silly me...

Anyhow, thanks for your help and patience. You've been a big help! Hopefully I can figure out the rest to get me off the ground. smile.gif" border="0

  • Newbies
Posted

Thanks! That was a big help.

I have another question now (oh noooo! :-)... I'm trying to write a test page that basically displays all of the entries in my database, which i'll call "timesheets.fp5". The Name field in that database is basically a feild value in another database, "contacts.fp5". I can get my document to list out all of the feild names using FMP-LayoutFields, but when I try to use FMP-Record to list out the values, not only do the Name values not show up, but the Name field does not show up in the list of fields I generated using FMP-LayoutFields. Is there another way to list out my values? I've been looking at a list of CDML tags but I can't for the life of me find the ones that will do what I want.

Also, is there any place online with sample CDML code that I could look at?

Posted

Are you using the [FMP-Field:relationshipName::fieldName] tag within the [FMP-Record] tag? if so, it should pull up that field's value for as many records as there are in the found set.

  • Newbies
Posted

Okay, here is my latest question:

I have a database called "Jobs" and for every entry within "Jobs" there is a field called "Job Number". What I'm trying to do now is to generate a form page that will allow the user to insert an entry into a database called "Timesheets". What I'd like to do is to generate a select list of all of the Job Numbers from "Jobs" so that a user can choose from this list when they are inputting there timesheet entry. I've tried using

[FMP-Option: Jobs::Job Number], but since I'm using a database and layout to automatically fill in other fields in the form, I know that won't work since I haven't defined the list name. Am I correct? If so, how would I figure out what the list name IS? If not, how should I go about doing this?

Posted

If I understand correctly I am using:

Field: typtz

List: typtzwebentry

<SELECT name="typtz" size="1">

<option> [FMP-Field: typtz]

<option> -----------------------------------------------------

[FMP-valuelist:typtzwebentry,list=typtzwebentry]

<OPTION> [FMP-valuelistitem] [/FMP-valuelist]

</SELECT>

But you must have the valuelist "typtzwebentry" in database.

This topic is 8534 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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