Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

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>

Posted

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!

Posted

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.

Posted

There is a definitive text on CDML: the CDML Reference Database. Download it free from the FilwMaker Inc web site nearest you.

Posted

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.

Posted

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>

Posted

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.

  • 3 weeks later...
Posted

... 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.

This topic is 8489 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
×
×
  • Create New...

Important Information

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