Oops, my bad!
In that example rule, "field" should be capitalized. Change all "field"
statements to "Field" then it will work for you. Here it is corrected:
/* Rule to suppress secondary first and last name.
*
* Title: rule_SuppressSecondaryName
*/
if (Field("SecondaryFirst") == "" || Field("SecondaryLast") == "")
return "";
else
return Field("SecondaryFirst")+" "+Field("SecondaryLast");
// End rule_SuppressSecondaryName
-----Original Message-----
From: Craig Daters [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 10, 2007 3:24 PM
To: FusionPro Users Forum
Subject: [fusionpro] Re: FusionPro won't suppress empty fields!
Eric,
The feature that others are explaining to you, the "Suppress if: Containing
Empty Variables" is a FusionPro 4.x feature. If you are not seeing it, then
you must be using 3.x. It is in the same place the "Suppress If Empty" place
is, except that now there is a drop-down menu with the "Containing Empty
Variables" option being the second option. "Empty" is the first and default
one.
If this is the case, you will need to write a rule to suppress the whole
line for your second name if any of the second name variables are empty.
Right now, the line is not empty. The "space" between the two variables is
"something" even if the two variables are empty, therefore the line is not
suppressing. You need to create a rule like:
/* Rule to suppress secondary first and last name.
*
* Title: rule_SuppressSecondaryName
*/
if (field("SecondaryFirst") == "" || field("SecondaryLast") == "")
return "";
else
return field("SecondaryFirst")+" "+field("SecondaryLast");
// End rule_SuppressSecondaryName
Then insert <<rule_SuppressSecondaryName>> on the second line in place of
<<SecondaryFirst>> and <<SecondaryLast>>, set this line to "Suppress if
Empty" and that should take care of your issue.
Of course, the field variables in the rule need to match the actual variable
names you define in your data file or database.
HTH
Craig D.
-----Original Message-----
From: Eric McKirdy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 10, 2007 10:09 AM
To: FusionPro Users Forum
Subject: [fusionpro] Re: FusionPro won't suppress empty fields!
I'm not familiar with how to suppress if containing empty variables -- only
the "suppress if empty" box under the paragraph window. Where do I find this
other setting?
Thanks!
Eric
On 4/9/07 5:03 PM, "Richard Amsberry" said something about:
> Eric,
>
> Try using suppress if containg empty variables. As long as both
> variable fields are empty on this line it will do the trick other wise
> if one is empty it will suppress the other as well. The space between
> the variable fields is causing the problem.
>
> On 4/9/07, Eric McKirdy <[EMAIL PROTECTED]> wrote:
>> Hello,
>>
>> I'm hoping someone can tell me what's wrong with FusionPro. This is a
>> new problem I'm having -- FusionPro hasn't done this before.
>>
>> I'm imposing addresses on a brochure. The fields look like this:
>>
>> <First Name> <Last Name>
>> <SecondaryFirst> <Secondary Last>
>> <Address>
>> <City>, <State> <Zip>
>>
>> Not every record has a second name, so I've told FP to suppress those
>> two fields if empty. (And they'll either both be populated, or
>> neither will be.) Instead of suppressing, FP is leaving a blank line!
>> I've ensured there are no hidden characters or extra spaces in the
>> .txt data file. What on earth could be the problem? I've never had
>> this
happen before....
>
Eric McKirdy
Graphic Designer
Alphagraphics
--
Users of FusionPro Desktop have unlimited free email support. Contact
Printable Support at [EMAIL PROTECTED]
--
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm
--
You are currently subscribed to fusionpro as: [EMAIL PROTECTED] To
unsubscribe send a blank email to [EMAIL PROTECTED]
--
--
Note: All e-mail sent to or from this address will be received or otherwise
recorded by the e-mail recipients of this forum. It is subject to archival,
monitoring or review by, and/or disclosure to someone other than the
recipient. Our privacy policy is posted on www.printplanet.com
--
--
Please note: It is the policy of West Press that all e-mail sent to and from
any @westpress.com address may be recorded and monitored. Unless it is West
Press related business, please do not send any material of a private,
personal, or confidential nature to this or any @westpress.com e-mail
address.
This message has been scanned for UCE (spam), viruses, and dangerous
content, and is believed to be clean
--
Users of FusionPro Desktop have unlimited free email support. Contact
Printable Support at [EMAIL PROTECTED]
--
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm
--
You are currently subscribed to fusionpro as: [EMAIL PROTECTED] To
unsubscribe send a blank email to [EMAIL PROTECTED]
--
--
Note: All e-mail sent to or from this address will be received or otherwise
recorded by the e-mail recipients of this forum. It is subject to archival,
monitoring or review by, and/or disclosure to someone other than the
recipient. Our privacy policy is posted on www.printplanet.com
--
--
Please note: It is the policy of West Press that all e-mail
sent to and from any @westpress.com address may be recorded
and monitored. Unless it is West Press related business,
please do not send any material of a private, personal,
or confidential nature to this or any @westpress.com
e-mail address.
This message has been scanned for UCE (spam), viruses,
and dangerous content, and is believed to be clean
--
Users of FusionPro Desktop have unlimited free email support. Contact Printable
Support at [EMAIL PROTECTED]
--
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm
--
You are currently subscribed to fusionpro as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
--
--
Note: All e-mail sent to or from this address will be received or otherwise
recorded by the e-mail recipients of this forum. It is subject to archival,
monitoring or review by, and/or disclosure to someone other than the recipient.
Our privacy policy is posted on www.printplanet.com
--