dbTalk Databases Forums  

Ignore empty repeating fields in email script

comp.databases.filemaker comp.databases.filemaker


Discuss Ignore empty repeating fields in email script in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dvfx
 
Posts: n/a

Default Ignore empty repeating fields in email script - 06-15-2010 , 06:14 PM






I have a calc field for my recipients and I want it to ignore empty
fields. There are 5 repetitions. and it looks like this:

database::resource[1] & "@xxxx.com" &
database::resource[2] & "@xxxx.com" &
database::resource[3] & "@xxxx.com" &
database::resource[4] & "@xxxx.com" &
database::resource[5] & "@xxxx.com" &


How do I get this script to ignore the lines if it is empty? As it
stands I get "@xxxx.com" in my recipient line for each empty
repetition.

Reply With Quote
  #2  
Old   
Ursus
 
Posts: n/a

Default Re: Ignore empty repeating fields in email script - 06-16-2010 , 02:35 PM






"dvfx" <damienvfx (AT) gmail (DOT) com> schreef in bericht
news:b4d41097-9070-4cff-bbfa-3e81bc638858 (AT) k25g2000prh (DOT) googlegroups.com...
Quote:
I have a calc field for my recipients and I want it to ignore empty
fields. There are 5 repetitions. and it looks like this:

database::resource[1] & "@xxxx.com" &
database::resource[2] & "@xxxx.com" &
database::resource[3] & "@xxxx.com" &
database::resource[4] & "@xxxx.com" &
database::resource[5] & "@xxxx.com" &


How do I get this script to ignore the lines if it is empty? As it
stands I get "@xxxx.com" in my recipient line for each empty
repetition.
You really should chuck out those repeating fields. They are a paint in the
but to work with. Only use them for GUI graphics. Then as and when you
really understand their limitations you might reconsidder using them.



--
Keep well / Hou je goed

Ursus

Reply With Quote
  #3  
Old   
dvfx
 
Posts: n/a

Default Re: Ignore empty repeating fields in email script - 06-17-2010 , 10:54 PM



On Jun 17, 5:35*am, "Ursus" <ursus.k... (AT) ziggo (DOT) nl> wrote:
Quote:
"dvfx" <damien... (AT) gmail (DOT) com> schreef in berichtnews:b4d41097-9070-4cff-bbfa-3e81bc638858 (AT) k25g2000prh (DOT) googlegroups.com...

I have a calc field for my recipients and I want it to ignore empty
fields. *There are 5 repetitions. and it looks like this:

database::resource[1] & "@xxxx.com" &
database::resource[2] & "@xxxx.com" &
database::resource[3] & "@xxxx.com" &
database::resource[4] & "@xxxx.com" &
database::resource[5] & "@xxxx.com" &

How do I get this script to ignore the lines if it is empty? *As it
stands I get "@xxxx.com" in my recipient line for each empty
repetition.

You really should chuck out those repeating fields. They are a paint in the
but to work with. Only use them for GUI graphics. Then as and when you
really understand their limitations you might reconsidder using them.

--
Keep well / Hou je goed

Ursus
I know. Not my ideal plan, but until I can create a new resource
table on my next iteration of this DB I was looking for a temp fix.

Reply With Quote
  #4  
Old   
Howard Schlossberg
 
Posts: n/a

Default Re: Ignore empty repeating fields in email script - 06-17-2010 , 10:57 PM



On 6/17/2010 8:54 PM, dvfx wrote:
Quote:
database::resource[1]& "@xxxx.com"&
database::resource[2]& "@xxxx.com"&
database::resource[3]& "@xxxx.com"&
database::resource[4]& "@xxxx.com"&
database::resource[5]& "@xxxx.com"&

case( not isempty(database::resource[1]), database::resource[1] &
"@xxxx.com") & ¶ &
case( not isempty(database::resource[2]), database::resource[2] &
"@xxxx.com") & ¶ &
case( not isempty(database::resource[3]), database::resource[3] &
"@xxxx.com") & ¶ &
case( not isempty(database::resource[4]), database::resource[4] &
"@xxxx.com") & ¶ &
case( not isempty(database::resource[5]), database::resource[5] &
"@xxxx.com")


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg
FM Professional Solutions, Inc. Los Angeles

FileMaker Certified Developer
Associate Member, FileMaker Business Alliance

Reply With Quote
  #5  
Old   
dvfx
 
Posts: n/a

Default Re: Ignore empty repeating fields in email script - 06-18-2010 , 12:37 AM



On Jun 18, 1:57*pm, Howard Schlossberg
<how... (AT) nospam (DOT) fmprosolutions.com> wrote:
Quote:
On 6/17/2010 8:54 PM, dvfx wrote:

database::resource[1]& *"@xxxx.com"&
*> *database::resource[2]& *"@xxxx.com"&
*> *database::resource[3]& *"@xxxx.com"&
*> *database::resource[4]& *"@xxxx.com"&
*> *database::resource[5]& *"@xxxx.com"&

case( not isempty(database::resource[1]), database::resource[1] &
"@xxxx.com") & ¶ &
case( not isempty(database::resource[2]), database::resource[2] &
"@xxxx.com") & ¶ &
case( not isempty(database::resource[3]), database::resource[3] &
"@xxxx.com") & ¶ &
case( not isempty(database::resource[4]), database::resource[4] &
"@xxxx.com") & ¶ &
case( not isempty(database::resource[5]), database::resource[5] &
"@xxxx.com")

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg
FM Professional Solutions, Inc. * *Los Angeles

FileMaker Certified Developer
Associate Member, FileMaker Business Alliance
Great, that worked well!

Reply With Quote
  #6  
Old   
dvfx
 
Posts: n/a

Default Re: Ignore empty repeating fields in email script - 06-26-2010 , 10:13 PM



On Jun 18, 3:37*pm, dvfx <damien... (AT) gmail (DOT) com> wrote:
Quote:
On Jun 18, 1:57*pm, Howard Schlossberg





how... (AT) nospam (DOT) fmprosolutions.com> wrote:
On 6/17/2010 8:54 PM, dvfx wrote:

database::resource[1]& *"@xxxx.com"&
*> *database::resource[2]& *"@xxxx.com"&
*> *database::resource[3]& *"@xxxx.com"&
*> *database::resource[4]& *"@xxxx.com"&
*> *database::resource[5]& *"@xxxx.com"&

case( not isempty(database::resource[1]), database::resource[1] &
"@xxxx.com") & ¶ &
case( not isempty(database::resource[2]), database::resource[2] &
"@xxxx.com") & ¶ &
case( not isempty(database::resource[3]), database::resource[3] &
"@xxxx.com") & ¶ &
case( not isempty(database::resource[4]), database::resource[4] &
"@xxxx.com") & ¶ &
case( not isempty(database::resource[5]), database::resource[5] &
"@xxxx.com")

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg
FM Professional Solutions, Inc. * *Los Angeles

FileMaker Certified Developer
Associate Member, FileMaker Business Alliance

Great, that worked well!
Just in case anyone is following this thread, it turned out that I
needed to create a separate table after all. It took a little more
time to set up, but increased the amount of information that I was
able to track ten fold. All of my related calc fields were much
happier.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.