Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

CDML Portal not showing data

Featured Replies

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>

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!

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

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

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

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>

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

  • 3 weeks later...

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

And to specify FM layout for serving portal is a MUST.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.