Turansky Posted January 9, 2002 Posted January 9, 2002 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
Garry Claridge Posted January 9, 2002 Posted January 9, 2002 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
Turansky Posted January 9, 2002 Author Posted January 9, 2002 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
The Bridge Posted January 9, 2002 Posted January 9, 2002 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 ]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now