Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

Dera All,

I have created an web database using filemaker and Claris HomePage for the user interface. I have loads of fields in each record, but 6 fields are setup as repeating fields (max 10 times).

Is there a way I can have the fields on my web interface to do the same?

Thanks

BW

Posted

This is copied from the CDML Reference Guide:

[FMP-Repeating]

Repeats the HTML between [FMP-Repeating] and [/FMP-Repeating] for all the repetitions of the specified field. The tag [FMP-RepeatingItem] is replaced with the contents of a specific repetition.

Repeating fields within portals are not supported. The number of repetitions displayed in a repeating field is controlled by the layout specified in the -Lay tag.

Syntax

[FMP-Repeating: Field Name ]

Parameter(s)

First parameter: Name of the repeating field.

Syntax example(s)

Display a repeating field using an HTML file

[FMP-Repeating: Extensions]

Alternate phone extensions: [FMP-RepeatingItem]<br>

[/FMP-Repeating]

Posted

Hi, repeating fields can be difficult to use with a web interface, especially when you need to edit them as check boxes etc. Inputting to them and displaying as read-only or text fields is OK, but you might save a lot of grief later on if you use portals for this info.

regards, jeff

Posted

Thanks People,

I've tried it and it works. But I would like the data to be listed vertical, at the moment the data is displayed horizontaly. Any ideas?

What are portals Jeff?

Thanks

Posted

Hi, if your repeating field is in one line, then I think all you need to do is put in a line break after the repeatingitem' tag, like:

<P>[FMP-REPEATING: fieldname]

[FMP-REPEATINGITEM: HTML]<BR>

[/FMP-REPEATING]</P>

...or maybe put the item into a table, like with a search return:

<P>[FMP-REPEATING: fieldname]

<TABLE BORDER=0 CELLSPACING=0 WIDTH=200>

<TR>

<TD>

<P>[FMP-REPEATINGITEM: HTML]</P>

</TD>

</TR>

</TABLE>

[/FMP-REPEATING]</P>

The problem with web repeating fields comes when you want to edit them.

Portals? Use them n the web, just like you would use them in the database client to make a list of related records, so you'd have the repeating data in a separate database with a relationship link and display it like:

<P>[FMP-PORTAL: relationshipname]

<TABLE BORDER=0 CELLSPACING=0 WIDTH=347 HEIGHT=72>

<TR>

<TD>

<P><A HREF="directorypath/FMPro?-db=thedatabase&-format=record_detail.htm&-error=search_error.htm&-lay=web&-op=eq&recordkey=[FMP-field:relationshipname::recordkey]&-find">[FMP-FIELD: relationshipname::title]</A><BR>

[FMP-FIELD: therelationship::description]</P>

</TD>

</TR>

</TABLE>

[/FMP-PORTAL]</P>

This is a really useful tool for web publishing!

regards, jeff

Posted

Cheers Jeff,

The break one works ok but it displays all the string (<P>, <BR> etc.) as well as the data. Do you know how to stop these being displayed?

Thanks

BW

Posted

Hi, dunno what's happening. I copied and pasted my whole mail from above straight into a blank html page and no tags showed. Could you maybe post your code here?

regards, jeff

This topic is 7867 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.