Lee J Posted July 31, 2001 Posted July 31, 2001 I have just upgraded to FM 5 from 4 using custom web pages and my IF ELSE statements are working and I can't seem to find the problem. I check a field to see if it contains a specific text value and if so I present the user with a defined URL to a different area. my code is as follows; <td align=LEFT valign=TOP width="41%"><font size="-1"> [FMP-If: field: idmFileExt .eq CT]<a href="ftp://*.*.*.*/archive/images/[FMP-field: idmFileName]">Download Image</a> [FMP-Else]<a href="ftp://*.*.*.*/archive/[FMP-Field: idmJobNo]">View Job Bag</a>[/FMP-If] </font></td> The reuslt on screen is a blank entry in the Table. What have I done wrong cheers
dspires Posted July 31, 2001 Posted July 31, 2001 Looks like you skipped a period after the ".eq". These kind of missed periods are easily corrected and the consequences don't grow up to ask for the car ;-)
Lee J Posted July 31, 2001 Author Posted July 31, 2001 I have corrected the text but still know joy. Is there a restriction on the fields you can use? The idmFileExt is a calculation field created from three others. regards
Garry Claridge Posted August 1, 2001 Posted August 1, 2001 No restriction. However, check that it is on your 'layout'. All the best. Garry
Simon Posted August 1, 2001 Posted August 1, 2001 I would also write it like this [FMP-If: idmFileExt.eq.CT] I would get rid of the field: and get rid of spaces in the eqs part. That should work. If not then as above make sure the field is on the layout. You can check for a layout problem by deleting the call to a layout in the request for the page. I do this so that i don't spend ages routing around filemaker to find if it is one layout or not. If you call from no layout then it should appear nomatter what kayout it is on. If it still doesn't appear at least you know it is not a layout problem Simon
Keith M. Davie Posted August 2, 2001 Posted August 2, 2001 You upgraded from 4 to 5. That may mean you changed your files from .fp3 to .fp5. Did you make this change on your format files?
Recommended Posts
This topic is 8590 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