Jump to content

CDML not working?


 Share

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

Recommended Posts

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This topic is 6564 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
 Share

×
×
  • Create New...

Important Information

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