Go Back   MarcomCentral (PTI) and FusionPro User Communities > Support > Issues, Questions, Etc.

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 28th, 2020, 03:56 AM
nickbeh nickbeh is offline
Forum n00b
 
Join Date: Dec 2019
Location: Singapore
Posts: 2
Lightbulb Suppression Containing Empty Variables

Dear Experts,

I have Suppression issue when applied Containing Empty Variables in FusionPro VDP Creator v11.1.2 MAC.

Please refer to my sample file and comment details in attached.

Download Link:
https://drive.google.com/file/d/1gpj...ew?usp=sharing

Regards
Nick
Reply With Quote
  #2  
Old July 28th, 2020, 11:02 AM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,493
Default Re: Suppression Containing Empty Variables

Can you please make the files on Google Drive publicly accessible? Or post a minimal example that reproduces the issue here?
__________________
Dan Korn
FusionPro Developer / JavaScript Guru / Forum Moderator
PTI Marketing Technologies | Printable | MarcomCentral
LinkedIn

I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com.

Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs.

This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data.

Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages.

Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance.

Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support.

How To Ask Questions The Smart Way

The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript.

Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5.

return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)});
Reply With Quote
  #3  
Old July 28th, 2020, 08:10 PM
nickbeh nickbeh is offline
Forum n00b
 
Join Date: Dec 2019
Location: Singapore
Posts: 2
Default Re: Suppression Containing Empty Variables

Hi Dan,

Sorry, this is my first time using the forum and I'm not familiar with the process.

I have suppression issue when I enabled "Containing Empty Variables" from Paragraph Formatting->Suppress if: Containing Empty Variables.

Refer to my screenshot with comment and sample, The Record 1 & 2 are correct, but Records 3 & 4 are wrong.

Download Link:
https://drive.google.com/file/d/1gpj...ew?usp=sharing
Reply With Quote
  #4  
Old July 29th, 2020, 10:31 AM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,493
Default Re: Suppression Containing Empty Variables

Quote:
Originally Posted by nickbeh View Post
Again, when I click that link, I get a message saying, "You need access." Your Google Drive share is private. You need to change the settings on that Google Drive folder to let anyone else download them. But it's better to attach files here directly...
Quote:
Originally Posted by nickbeh View Post
Sorry, this is my first time using the forum and I'm not familiar with the process.
You can attach files here. Click the "Go Advanced" button, then click "Manage Attachments."
Quote:
Originally Posted by nickbeh View Post
I have suppression issue when I enabled "Containing Empty Variables" from Paragraph Formatting->Suppress if: Containing Empty Variables.

Refer to my screenshot with comment and sample, The Record 1 & 2 are correct, but Records 3 & 4 are wrong.
Thanks, the screenshots help.

You have Mobile and DID on the same line, i.e. in the same paragraph. The same is true of the line with both Fax and Email.

The problem is that the ENTIRE paragraph gets suppressed if ANY empty variable is present. This is by design. The purpose of that "Suppress if containing empty variables" feature is for a paragraph with a single variable and label, not for a paragraph with multiple variables.

There are a few ways you could solve this. The simplest would be to put each variable onto its own line (paragraph). You can change the number of columns to 2 on the Frame Properties dialog to get the "two per line" effect. Or, just use two separate frames connected together.

The other way is to set the frame's contents in a rule instead. This is a little tricky because of the different formatting (color) of the labels and the variables, but I think this will work:
Code:
var items = 
{
    "M + 65": "Mobile",
    "D + 65": "DID",
    "F + 65": "Fax",
    E: "Email",
};

var result = [];
for (var i in items)
{
    var item = TaggedDataField(items[i]);
    if (!item)
        continue;
    
    var label = '<color name="PANTONE 293 U">' + i[0] + '</color>' + i.substr(1);
    result.push(label + " " + item);
}

result = result.concat(['', '', '', '']); // pad to four entries

return result[0] + '<t>' + result[1] + '<p>\n' + result[2] + '<t>' + result[3];
Though I can't test this since I can't get to your job files.
__________________
Dan Korn
FusionPro Developer / JavaScript Guru / Forum Moderator
PTI Marketing Technologies | Printable | MarcomCentral
LinkedIn

I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com.

Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs.

This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data.

Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages.

Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance.

Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support.

How To Ask Questions The Smart Way

The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript.

Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5.

return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)});
Reply With Quote
Reply

Tags
fusionpro v11.1.2, mac

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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

Forum Jump


All times are GMT -7. The time now is 03:35 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.