October 17, 200124 yr My CDML portals are empty, though my FMPro portals are not. I've triple-checked the file names, field names, relationship names, etc. Simple Replacement Fields work, but portals do not. Am I missing something obvious? I know the answer to this was probably posted six months ago, and a good developer researches the forums, etc. I did search this forum for references to portals, and did not find anything that made me see the light. I'd appreciate any help! I have only 2 pages: default.htm contains only a button. The CDML tags are: form action="fmpro" method="post" input type="hidden" name="-db" value="ADMIN Athletics" input type="hidden" name="-format" value="calendar.htm" input type="submit" name="-findall" value="Calendar" /form calendar.htm starts with: FORM ACTION="FMPro" METHOD="post" INPUT TYPE="hidden" NAME="-DB" VALUE="ADMIN Athletics" INPUT TYPE="hidden" NAME="-recid" VALUE="[FMP-currentrecid]" INPUT TYPE="hidden" NAME="-lay" VALUE="AllFields" INPUT TYPE="hidden" NAME="-format" VALUE="default.htm" and contains a table, a sample row of which is: <tr> <td>[FMP-Portal:EventFill4][FMP-Field:EventFill4::WebIdentifier]<br>[/FMP-Portal]</td> <td>[FMP-Portal:EventFill5][FMP-Field:EventFill5::WebIdentifier]<br>[/FMP-Portal]</td> <td>[FMP-Portal:EventFill6][FMP-Field:EventFill6::WebIdentifier]<br>[/FMP-Portal]</td> <td>[FMP-Portal:EventFill7][FMP-Field:EventFill7::WebIdentifier]<br>[/FMP-Portal]</td> </tr>
October 17, 200124 yr quote: Originally posted by rdhaden: [QB] I have only 2 pages: default.htm contains only a button. The CDML tags are: form action="fmpro" method="post" input type="hidden" name="-db" value="ADMIN Athletics" input type="hidden" name="-format" value="calendar.htm" input type="submit" name="-findall" value="Calendar" /form The layout containing the portal fields must be specified when bringing up the page displaying portal information. Try adding: INPUT TYPE="hidden" NAME="-lay" VALUE="AllFields" to your form in default.htm. Hope this helps!
October 18, 200124 yr Author It didn't solve the problem, but it was probably one of several problems with my format files. I wish there was a comprehensive text on CDML; I feel like I'm taking bits and pieces from different sources without understanding what I'm doing. Particularly with the form and input tags that seem to start all of them. Thanks for trying to help the hopeless.
October 18, 200124 yr There is a definitive text on CDML: the CDML Reference Database. Download it free from the FilwMaker Inc web site nearest you.
October 19, 200124 yr Author Would someone please post the URL of a successful page containing portals? I appreciate the tip, but I do have the CDML Reference, and I'd hardly call it the definitive text. All it has to say about portals boils down to: [FMP-Portal: InvoiceID] [FMP-Field: InvoiceID::Product Name] - [FMP-Field: InvoiceID::Product Count]<br> [/FMP-Portal] I duplicated the tag with the appropriate relationship and field names for my database, and I got nothing, and I don't know why. I used the templates in the CDML Tool with a simple practice database, and they all worked as expected. I tried to add portals with the CDML Tool, and also without it, and still nothing. I don't get it. And Maria Langer's book isn't helping much either. There's something simple (or several somethings) that I'm missing.
October 19, 200124 yr Two main points: 1) as was already mentioned, make sure that the portal AND related fields are on the layout specified by -lay 2) here is my code for a table with three portals in it: The name of the relationship is comments. <TABLE BORDER=1> <TR> <TD> <P>School</P> </TD> <TD> <P>Person</P> </TD> <TD> <P>Comment</P> </TD> </TR> <TR> <TD> <P>[FMP-PORTAL: comments] [FMP-FIELD: comments::school] [/FMP-PORTAL]</P> </TD> <TD> <P>[FMP-PORTAL: comments] [FMP-FIELD: comments::name] [/FMP-PORTAL]</P> </TD> <TD> <P>[FMP-PORTAL: comments] [FMP-FIELD: comments::comment] [/FMP-PORTAL]</P> </TD> </TR> </TABLE>
October 19, 200124 yr Author At last, epiphany! As I suspected, it was a stupid mistake. Thanks for the help. Your "AND related fields" solved it for me. I was using a different field on the Filemaker layout than I was trying to use on the web page. Thank you for your help, and I'm sorry for being so dense.
November 4, 200124 yr ... and as for the CDML Reference not saying much about portals, well there isn't that much to say is there! You put the codes in, the records show up.
Create an account or sign in to comment