Newbies tomtom Posted October 19, 2000 Newbies Posted October 19, 2000 Here I am again, getting closer to finishing this project, but again stuck on if statements. I'm confused about FMP-If statements. What are the required tags needed and where does the If and else statement go? (I'm using Homepage and the filemaker_forml.hlb). I want to compare a number that has been entered into a global field with a indexed field from another database. I'm hoping something like this will work [FMP-IF: streg: assword .cn. gPassword] Show this link [/FMP-If] I've searched the web and found lots of info about FMP-If, but very few examples of the actual code and where it needs to be placed. If anyone can help, I would be most appreciatative. T. Miller
dspires Posted October 20, 2000 Posted October 20, 2000 This example colors the table data cell (<TD>) red if the contents of the "Wire6" field is "No 5MD1 !": [FMP-IF: field: Wire6 .eq. No 5MD1 !] <TD ALIGN=CENTER BGCOLOR="RED"> [FMP-Else] <TD ALIGN=CENTER BGCOLOR="#AFEEEE"> [/FMP-IF] The following allows you to use one CDML page as a detail record page for edit, duplicate, and delete. Simply put the code for each section withing the tags... [FMP-If:currentaction.eq.edit] <!-- Edit --> [/FMP-If] <!-- Edit --> [FMP-If:currentaction.eq.find] <!-- find --> [/FMP-If] <!-- find --> [FMP-If:currentaction.eq.delete] <!-- delete --> [/FMP-If] <!-- delete --> [FMP-If:currentaction.eq.new] <!-- New --> [/FMP-If] <!-- New --> [FMP-If:currentaction.eq.dup] <!-- Duplicate --> [/FMP-If] <!-- Duplicate -->
Recommended Posts
This topic is 9194 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