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.

InlineAction help!!

Featured Replies

Hi!

I've got a question about the InlineAction tag.

I want the last record from type "news_topics" show on my index page with another type (http://127.0.0.1:95/sdugb/fmpro?-db=mywebsite.fp5&-lay=web&-format=index.html&type=portfolio_links&-find)

i've tried:

[FMP-InlineAction: -db=mywebsite.fp5="1", -lay=web, -sortfield=datum_start, -type=news_topics, -sortorder=descending, -FindAll]

[FMP-RECORD][FMP-FIELD: titel][/FMP-InlineAction][/FMP-RECORD]

Can somebody tell me what i do wrong??

(Im using a filemaker 5 database in a Filemaker 6 environment.)

Dennis

  • Author

never mind, got the answer! that "1" has to be -max=1.

Another problem:

[FMP-InlineAction: -db=mywebsite.fp5,-max=20, -lay=web, -sortfield=datum_start, type="jobs", -sortorder=descending, -FindAll]

[fmp-record]<tr>

<td width="24" align="center" valign="middle"><img src="images/rd.gif" width="8" height="8" border="0"></td><td align="left" valign="middle"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="1">[fmp-field:titel]</font></td></tr>

[/fmp-record]

[/FMP-InlineAction]

Question:

There are only three records at this moment in "Jobs". The InlineActions shows those three records on top but shows the other records too! Isn't that strange if i say just to show the records in "jobs"?

please help!! confused.gif

Dennis

  • Author

ok, just remove the -max=20 lol

God, what a nice forum! ;-)

hi, in the first one, if you're only looking for 'news topics', then the action should be "Find", not "FindAll", and close the inline after the [/FMP-record] tag

so to show the one latest news item (is that what the "datum_start" sort order would do?):

[FMP-InlineAction:-db=mywebsite.fp5,-lay=web,-sortfield=datum_start,-sortorder=descending,-op=eq,type=news_topics,-Find]

[FMP-RECORD][FMP-FIELD: titel][/FMP-RECORD][/FMP-InlineAction]

you can get away without specifying the layout if there are no portals or related fields to show and if you leave out the -op Filemaker will default to 'eq'. NOTE, though that ther's no '-' between the operator and the field name.

in the second one, try:

[FMP-InlineAction:-db=mywebsite.fp5,-lay=web,-sortfield=datum_start,-op=eq,type="jobs",-sortorder=descending,-max=20,-Find]

[fmp-record].......

regards, jeff

  • Author

thanks but i have the answer written above your reply..it works!!! smile.gif

Thanks anyway Jeff

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.