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.

Portal Tag not working

Featured Replies

  • Newbies

I've put this -Portal tag in a Web page but nothing from the portal shows up and if I look at the source code after the page displays, everything between the -Portal tags is missing. Any ideas what I'm doing wrong??

<form action="FMPro" method="post">

<p><input type="hidden" name="-RecID" value="[FMP-CurrentRecID]" ><input type="hidden" name="-db" value="CornerstoneClients_.fp5" ><input type="hidden" name="-lay"value="Schedule" ><input type="hidden"name="-format" value="projectdata.html"><input type="hidden" value="error.html" name="-Error"></p>

[FMP-Portal: schedules_]

<tr>

<td width="8"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2">[FMP-Field: schedules_::number]</font></td>

<td width="300"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2">[FMP-Field: schedules_::activity]</font></td>

<td width="40"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2">[FMP-Field: schedules_::who]</font></td>

<td width="40"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2">[FMP-Field: schedules_::start]</font></td>

<td width="40"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2">[FMP-Field: schedules_::end]</font></td>

<td><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2">[FMP-Field: schedules_::done]</font></td>

</tr>[/FMP-Portal]

The protal, and all of the related fields in the portal, need to be on the layout specified i the -lay tag.

On the other hand, check that the protal is working -- and displaying related records -- on the layout in your database.

  • 5 weeks later...

Worth checking.......make sure all of the portal is in the body of the FMPro layout. I think if any of it is in the header or footer it wont show through WC or Lasso....it might not be the problem here but if you get the portal working right in FMPro first it's easier to track the problem.

I notice that in the first code you posted you had [FMP-Portal: schedules_] and in the second you've got [FMP-PORTAL: Schedules] the caitalisation on the tag is neither here nor there but the portal name has changed and you should also have ' ' around the relationship name (should work without but it's good to be consistent and correct) For the fields you should have the ' ' surrounding the relationship and the field eg [FMP-FIELD: 'Schedules :: ws']

I would also loose the spaces eg [FMP-FIELD: 'Schedules::ws'] I find most of the problems I have can normally be traced back to typos so I cut and paste when I know something is correct.

an example of a portal i have that works (I use lasso so the FMP- bit is missing other than that the tags are identical

[Portal: 'report']

<tr>

<td width="18%">

This bit is just a link to the record

<font size="2" face="arial,sans-serif"><span class="body"><a href="Action.lasso?-database=database.fp5&-layout=layout&-Response=crrecorddetail.lasso&-operator=eq&serial=[Field: 'report::serial']&-operator=eq&break=[Field: 'report::break']&-operator=eq&regno=[Field: 'report::regno']&-Search">[Field: 'report::regno']</a>

end record link

</span></font></td>

<td width="24%"><font size="2" face="arial,sans-serif"><span class="body">

[Field: 'report::forename']</span></font></td>

<td width="19%"><font size="2" face="arial,sans-serif"><span class="body">[Field: 'report::surname']</span></font></td>

<td width="39%"><font size="2" face="arial,sans-serif"><span class="body">

[Field: 'report: laugh.gif" border="0OB']</span></font></td>

</tr>

<tr bgcolor="#D3D3D3">

<td colspan="4">| </td>

</tr>

[/Portal]

Hope this helps!? laugh.gif" border="0

Okay. My portals are not working, as well. They are showing up in the layout in FMP, though. As a background, it's a scheduling database, where each event has its own record and the portals are working to consolidate all the games on each date. Each game has a field, "total," which represents the match-up (for example Harvard@Princeton) and a matching calculated field that ties together the sport and the matchup. The field "ms" is calculated: if (sport="men's soccer", total) Here's the code:

<P>[FMP-RECORD]

<TABLE BORDER=1 WIDTH="100%">

<TR>

<TD COLSPAN=2>

<P><FONT SIZE="+1"><B>[FMP-FIELD: dayofweek ],

[FMP-FIELD: date]<BR>

</B></FONT><TABLE BORDER=1 WIDTH="100%">

<TR>

<TD ALIGN=center>

<P><B>men's soccer</B></P>

</TD>

<TD ALIGN=center>

<P><B>football</B></P>

</TD>

<TD ALIGN=center>

<P><B>volleyball</B></P>

</TD>

<TD ALIGN=center>

<P><B>fh</B></P>

</TD>

</B></CENTER><TD>

<P>mcc</P>

</TD>

<TD>

<P>wcc</P>

</TD><TD><P>ws</P></TD> </TR> <TR> <P>[FMP-PORTAL: Schedules]

[FMP-FIELD: Schedules :: ms]

[/FMP-PORTAL]</P>

</TD> <TD>

<P>[FMP-PORTAL: Schedules]

[FMP-FIELD: Schedules :: fball]

[/FMP-PORTAL]</P>

</TD><TD>

<P>[FMP-PORTAL: Schedules]

[FMP-FIELD: Schedules :: vball]

[/FMP-PORTAL]</P>

</TD><TD>

<P>[FMP-PORTAL: Schedules]

[FMP-FIELD: Schedules :: fh]

[/FMP-PORTAL]</P>

</TD></CENTER><TD>

<P>[FMP-PORTAL: Schedules]

[FMP-FIELD: Schedules :: mcc]

[/FMP-PORTAL]</P>

</TD> <TD>

<P>[FMP-PORTAL: Schedules]

[FMP-FIELD: Schedules :: wcc]

[/FMP-PORTAL]</P>

</TD><TD>

<P>[FMP-PORTAL: Schedules]

[FMP-FIELD: Schedules :: ws]

[/FMP-PORTAL]</P>

</TD> </TR></TABLE></P></TD></TR></TABLE>

[/FMP-RECORD]</P>

With this method, searching for all records, I get all the dates but no matchups.

As an alternative, I used:

[FMP-IF: sport.eq.men's soccer] [FMP-FIELD: total]<BR>[/FMP-IF]

to replicate the calculated fields. However, with this method, I can only seem to display one date at a time, or all the dates w/ only the first matchup listed for each sport for each date. I want to be able to display all the dates, listing the date once, and then a chart with all the matchups for the date, then the next date, etc. Any help?

Bevin

If you can believe it, this portal ? was actually from a different user than the original poster, even though we both had "schedules" relationships. Removing the space from Schedules :: ms made the difference. It's annoying, b/c I still use Claris Homepage and their templates sometimes use incorrect syntax. I had the same issue a while back with an if/then problem.

Anyways, the database and web interface look superb now. Another instance of the web actually looking better in the end than the FMP version. However, I was hoping that portals would slide better w/CDML, to no avail.

Jeremy, I wouldn't read the rest of this, b/c now my only problem is the giant script I have running behind the whole thing. My computer hates me, so I am currently paying the price. Thank goodness there are only 8 schools that use this...I'm taking my chances for the time being until I can find another way to perform my scripted tasks.

Bevin

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.