January 30, 200421 yr 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
January 30, 200421 yr 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?
January 30, 200421 yr 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.
January 30, 200421 yr 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
January 30, 200421 yr 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.
February 3, 200421 yr 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
February 3, 200421 yr 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
February 3, 200421 yr 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
February 4, 200421 yr 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
February 4, 200421 yr 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
February 4, 200421 yr 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