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.

Condition using a token

Featured Replies

Ok, I have my RecID from the main database and an EventID from the related database saved from page to page using a token.

With this information I need to do a condition like

[FMP-If: content_area .eq. Science]

How do I write this so it is looking into the related database. The way I have it now it is not finding anything on any of my conditions.

Would it be something like:?

[FMP-If: -db=scoe_events.fp5,token.1=eventID,content_area .eq. Science]

Or did I just makeup some fancy code that will be used in Filemaker 6

Thank you

Kent

You can either use a portal or an InLine Action. Here is an example from the CDML Reference database:

[FMP-InlineAction: -db={CurrentDatabase}, -lay={CurrentLayout}, last name="doe", position="Software Engineer", -find] [FMP-Field: first name] [FMP-Field: last name] [/FMP-InlineAction]

Hope this helps.

Garry

  • Author

So if I follow the example and put in my own variables it should look for this field in the specific eventID. Would this be correct? Right now it doesn't seem to work but I'm new to the inline tag?

[FMP-InlineAction: -db=scoe_events.fp5, -lay=event, eventID="[FMP-CurrentToken: 1]", -find][FMP-If: content_area .eq. Technology]do this

[FMP-If: content_area .eq. Math]do this

[/FMP-If]

[/FMP-InlineAction]

Thank you

Kent

quote:

Originally posted by Kent:

[FMP-InlineAction: -db=scoe_events.fp5, -lay=event, eventID="[FMP-CurrentToken: 1]", -find][FMP-If: content_area .eq. Technology]do this

[FMP-If: content_area .eq. Math]do this

[/FMP-If]

[/FMP-InlineAction]


Change the "[FMP-CurrentToken:1]" in the InlineAction to {CurrentToken:1} (no quotation marks), and change that second FMP-If statement to FMP-ElseIf

[ January 09, 2002: Message edited by: The Bridge ]

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.