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 creating just a simple basic cdml page and anything that I use CDML for is not working. Ex. [FMP-Record] or [FMP-Field: Name]

Is web companion not working or am I doing something wrong. It's been a while since I used CDML since I primarily use XML so I'm sure it's something very simple.

Thanks,

Justin

You have a database open (with the fields you are referencing on the layout that is active)?

The Filemaker preferences is set to use WebCompanion (port 80 or 591)?

You are accessing on the same computer with http://localhost/index.html (or whatever the html file is called)? (or http://localhost:591/index.html - if the port in WebCompanion setup is set to that port)?

You have specified the database and format.html file?

The submit or find is formatted correctly?

  • Author

yes to everything, port 591. I don't see why its not working when It has always before. I am using xsl and it is working fine right now. No idea why this is happening.

What happens?

Does nothing display?

Do the FMP tags display?

Are you using a URL, what does it look like?

Are you using a Form, what it look like?

Good Luck.

Garry

In the URL that you are using to call the CDML page, change the "-format=myPage.cdml" section to "-format=-fmp_xml". Do you get the XML back?

If yes, then something is wrong with your CDML.

If no, then something is wrong with your URL or with the FileMaker or Web Companion setup.

  • Author

The result is just the CDML tags and not the data from FileMaker. ex. [fm:field Name] It does work when I use the format as an xsl stylesheet as usual and I have gotten my cdml to work previously. I have recently gotten IIS on my computer and maybe that could be the reason? Why would XSL work than? Everything is right with my CDML, I am sure of it.

Thanks.

Justin

Re: [fm:field Name]

Should be [FMP-Field: fieldname]

If you have this and the same thing is happening then the page is not being "processed" by WebCompanion.

Good Luck.

Garry

  • Author

Garry,

Yes I have this, it was late and I wasn't paying attention, sorry. I have all of web companion set up right, because xsl pages are working. It seems that the cdml is not working because I have IIS now? I don't know what else it could be.

Justin Grewe

Maybe you can post, here, the contents of your page. Also, the URL or Form you use to call the page.

All the best.

Garry

  • Author

First with all of the databases open in filemaker type this in the address bar: http://localhost/fmpro?-db=Student.fp5&-lay=StudentMain&-format=-fmp_xml&-styletype=text/xsl&-stylehref=Logon.xsl&-findall

Then in the Student database and in the StudentMain layout copy one of the values of the StudentPin field. Paste this in the login.

Then click on the login link. After this go and choose one of the courses. Then comes the problem...

From the evalrespond.xsl, the user clicks one of the courses, then the courses.htm page with the cdml appears with the cdml field tags but no dynamic data. Don't know whats wrong.

Justin Grewe

Filemaker Files.zip

Try changing the Form in "evalrespond.xsl" to this:

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

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

<input type="hidden" name="-lay" value="Main" />

<input type="hidden" name="-format" value="courses.htm" />

<input type="hidden" name="-Token.0" value="{fm:COL[4]}" />

<input type="submit" name="-findall" value="Submit" />

</form></xsl:if>

Also in "courses.htm" [FMP-CurrentToken.0] should be [FMP-CurrentToken:0]

Good Luck.

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.