Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

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

Posted

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

Posted

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

Posted

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 ]

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