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 4741 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Good morning. I am building my first database in FileMaker, and I've got most of what I want to do figured out. However, I do have one thing that I would like to have work better.

I have a portal in one of my layouts that shows Contact information, which is of course pulled from the Contacts table. Right now I'm using a merge field to show the following information formatted like this:

Firstname Lastname

Job Title, Company

However, I don't know the job titles for everyone in the Contacts list, so that field is sometimes blank. This means that the resulting merge field in the portal looks like this:

Firstname Lastname

, Company

Since I'm a perfectionist, this is completely unacceptable. :smile:

So, I guess my first question is, do I need to switch from a merge field to a calculation field to do this (my gut feeling is yes, which is why I'm putting this question in Calculation Engine)? My second question is, what would the syntax of the calculation need to be to say, "If a field in this calclulation has a value, put a comma and a space after it; if it is blank, don't put that comma and space there"?

Thanks in advance for your help.

Posted

Awesome, thanks! That worked perfectly.

Just to be clear, does the first semicolon act as a "then" statement, and the second semicolon as an "else" statement in this calculation? I'm still trying to wrap my head around some of the syntax that FileMaker uses in its calculations.

Posted

You really should consult the help on each function in order to see what the parameters do.

http://www.filemaker.com/11help/html/func_ref3.33.11.html#1047177

Posted

Thanks, comment, that helped immensely. I've got calculation fields all over the place now, and it really helped solve a tricky problem with my contacts list (through a series of "If" statements, I now have my contacts properly related to retailers/products for each project so that relevant contacts appear automatically when a product and retailer is selected).

I have another question that I've done some digging into the FileMaker help for and just can't find: Is it possible to insert a tab character into a calculation field? If there's a symbol for that, I can't find it anywhere. Does this mean it's not possible to have text in a calculation field use the tab settings for a field to allow text to line up in columns? Or do I need to just set up three fields to do this?

Example: Table 1::Field 1 & (tab character) & Table 1::Field 2 & (tab character) & Table 2::Field1

EDIT TO ADD

Nevermind...I just answered my own question. I just copied and pasted a tab character from a merge field and it worked. It just seemed like something that should require a special character (like a page number).

Posted

I don't know of a section devoted to that. Of course, you have the ¶ character (and button) for carriage returns. Any other "special" characters, esp. non-printing characters, are best handled by the Char() function.

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