May 12, 200421 yr Newbies Hi, I created a layout that has around 15 fields in it, and a script to go along with it that automatically creates an e-mail message in Outlook and pastes these fields into the body text -- one per line -- so that it can be sent to a vendor (it's essentially just a parts list). Everything works very well, but my only problem is that I don't always fill out all 15 fields, and thus when FileMaker pastes them into the e-mail, there are gaps between the fields. Again, it pastes one field per line...so if I don't fill out fields 8 through 14 for example, then there's a gap of six blank lines between field 7 and 15. Is there any way I can tell FileMaker to only paste the fields that are filled out (i.e., have a value in them) and ignore the empty ones?? Thanks for your help- RRT
May 12, 200421 yr Robbie: Welcome to the Forums. There are a couple of ways to do this. You can use a Case statement for each field, or you can check for a field's emptiness with "not IsEmpty". The latter is easier to comprehend: For each item, encapsulate the copy & paste within an If statement: If [not IsEmpty(FieldA)] cut paste End If -Stanley
May 12, 200421 yr Question: Are the records in a portal? If they are, you could set up an omit button in the portal layout and omit them manually. Kurt
May 12, 200421 yr Author Newbies Here's how I currently have things set up. The body text of my e-mail is actually a "defined field," and it's simply placed there by the script...so I could either try to fix things in the define field area, or possibly replace all of this with a script? "ATMID: "&ATMID&"
May 14, 200421 yr You need to modify your calculation - &Case(not IsEmpty(picklist model database::Universal Part 1), picklist model database::Universal Part 1&"
Create an account or sign in to comment