Justin Grewe Posted January 30, 2004 Posted January 30, 2004 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
David Anders Posted January 30, 2004 Posted January 30, 2004 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?
Justin Grewe Posted January 30, 2004 Author Posted January 30, 2004 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.
Garry Claridge Posted January 30, 2004 Posted January 30, 2004 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
Mariano Peterson Posted January 30, 2004 Posted January 30, 2004 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.
Justin Grewe Posted February 3, 2004 Author Posted February 3, 2004 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
Garry Claridge Posted February 3, 2004 Posted February 3, 2004 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
Justin Grewe Posted February 3, 2004 Author Posted February 3, 2004 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
Garry Claridge Posted February 4, 2004 Posted February 4, 2004 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
Justin Grewe Posted February 4, 2004 Author Posted February 4, 2004 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
Garry Claridge Posted February 4, 2004 Posted February 4, 2004 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
Recommended Posts
This topic is 7667 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 accountSign in
Already have an account? Sign in here.
Sign In Now