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

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 15th, 2021, 01:03 PM
spalmerchuck spalmerchuck is offline
Junior Community Member
 
Join Date: Feb 2010
Location: Philadelphia
Posts: 14
Default Numeric IMP

Hello, I have a job were the IMB is in the numeric format. I can not find a rule or any anything in the documentation on how to print the IMB barcode.
Reply With Quote
  #2  
Old January 15th, 2021, 02:19 PM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,552
Default Re: Numeric IMP

If the barcode is already encoded into a string of 0, 1, 2, and 3 digits, then you can simply insert the field into the Text Editor and put it in the IDAutomation4State font. You don't need any rule. If it's in another format, you can go into the New Rule dialog, on the Barcode tab, and select the Intelligent Mail Barcode Rule.
__________________
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 January 19th, 2021, 06:59 AM
spalmerchuck spalmerchuck is offline
Junior Community Member
 
Join Date: Feb 2010
Location: Philadelphia
Posts: 14
Default Re: Numeric IMP

When I use the following IMB rule (see attachment) I get an error message of

C:\Program Files (x86)\PTI\FusionPro\Builtins.js, line 2721: warning: The tracking number is not the correct length of 20 characters in record number 1.
Composing record #1, input record 1

My barcode field contains the following "00240206150129480945065151780".
Attached Images
File Type: jpg Capture.JPG (59.3 KB, 4 views)
Reply With Quote
  #4  
Old January 19th, 2021, 07:07 AM
dreimer dreimer is offline
Senior Contributor
 
Join Date: Oct 2010
Location: Shakopee, MN
Posts: 488
Default Re: Numeric IMP

You shouldn't use a rule if the data is numeric. Just place the field in a text box and apply the correct font.
__________________
Don Reimer - JavaScript Novice

MAC OS 10.14.6 Acrobat DC FP Creator 12.0.1
Reply With Quote
  #5  
Old January 19th, 2021, 02:45 PM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,552
Default Re: Numeric IMP

Try this:
Code:
var fullNum = Field("IMBRCDFRJN");
var TrackingNum = fullNum.substr(0,20);
var RoutingNum = fullNum.substr(20);
return MakeIntelligentMailBarcodeEx(TrackingNum, RoutingNum, 10, "", "", "", 5);
__________________
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
  #6  
Old January 22nd, 2021, 08:50 AM
spalmerchuck spalmerchuck is offline
Junior Community Member
 
Join Date: Feb 2010
Location: Philadelphia
Posts: 14
Default Re: Numeric IMP

Thanks Dan that worked. But I am still missing something. When I just put the numeric barcode numbers in a text box and apply the font it does not show up correctly. The sample attached shows the barcode when applying the IDAutomation font. I also tried a few other fonts but they all require the barcode field to be the Alpha Letter.
Attached Files
File Type: pdf TEST-Output.pdf (34.3 KB, 2 views)
Reply With Quote
  #7  
Old January 25th, 2021, 10:15 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,552
Default Re: Numeric IMP

Quote:
Originally Posted by spalmerchuck View Post
Thanks Dan that worked.
Great!
Quote:
Originally Posted by spalmerchuck View Post
But I am still missing something. When I just put the numeric barcode numbers in a text box and apply the font it does not show up correctly. The sample attached shows the barcode when applying the IDAutomation font. I also tried a few other fonts but they all require the barcode field to be the Alpha Letter.
What Don said earlier was not completely correct.

If the data has already been encoded to a string of 0, 1, 2, and 3, then yes, you can simply apply the IDAutomation4State font to it. Similarly, if you have a string of F, A, T, and D characters, you can apply a font such as USPSIMBStandard to it. Nothing else needs to be done.

However, if what you have is the "raw" barcode data (tracking and routing codes), which contains any digits 0-9, then you first need to run it through an encoding algorithm to get the string of 0, 1, 2, and 3.

FusionPro's built-in MakeIntelligentMailBarcodeEx function performs both steps: It takes the raw data and encodes it as a string of 0, 1, 2, and 3, and then applies the IDAutomation4State to it, with some extra formatting to control the size of the barcode. (It can also detect if you have data that's already formatted as either 0, 1, 2, and 3 or F, A, T, and D, and handle that appropriately.)

Some background: What is now called the Intelligent Mail Barcode used to be called the 4-State Barcode. It wasn't called 4-State because it applied to only four states in the U.S. (which was confusing, and probably why they changed the name), but because the barcode itself consists of four distinct symbols, or vertical bar types. called Full, Tracker, Ascender and Descender (F, T, A, and D).

Different barcode vendors and generators came up with different ways of creating these barcodes from these four symbols. Many font vendors decided to encode the characters F, T, A, and D, to match the names of the symbols. Other vendors decided to have their fonts encode four different characters; in the case of IDAutomation, they decided to encode the numbers (digits) 0, 1, 2, and 3.

So the bottom line is that the IDAutomation4State does not handle any arbitrary string of digits (numbers); it handles data encoded specifically as a string of 0, 1, 2, and 3 digits.
__________________
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
  #8  
Old January 26th, 2021, 07:24 AM
spalmerchuck spalmerchuck is offline
Junior Community Member
 
Join Date: Feb 2010
Location: Philadelphia
Posts: 14
Default Re: Numeric IMP

Thank You for the additional information. I will look into the function. I wish there was a way to just place the full numeric barcode values in a text box or a rule and apply the font without having to parse the barcode into different fields.
Reply With Quote
  #9  
Old January 26th, 2021, 12:34 PM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,552
Default Re: Numeric IMP

Quote:
Originally Posted by spalmerchuck View Post
Thank You for the additional information. I will look into the function. I wish there was a way to just place the full numeric barcode values in a text box or a rule and apply the font without having to parse the barcode into different fields.
Well, that's the idea of that "Intelligent Mail Barcode Rule" Form (XML Template) rule. It handles both the "raw" barcode data and already encoded strings of 0123 and FTAD. But it does assume that, if you have the raw data, that it's the full 31 characters, consisting of a 20-digit tracking code and a full 11-digit routing code, where that 11 digit routing code is 9 digits of "Zip+4", plus a two-digit delivery point:
https://en.wikipedia.org/wiki/Intell...point_ZIP_code
That delivery point is usually added by a postal sorting program, so that the mailing can take advantage of discounted pre-sorted rates.

Your raw barcode data has strings of 29 digits, which are the 20-digit tracking code plus only 9 digits for the routing, and are missing the delivery point information. A valid Intelligent Mail Barcode can still be created without the delivery point (and even without any Zip code or routing code at all), but we didn't account for that particular variation when we make our rule because we assumed that such barcodes would generally be used in a pre-sorted workflow.

So, perhaps we should enhance the Form rule, and the MakeIntelligentMailBarcodeEx function, to accept routing codes of 0, 5, or 9 digits, as well as the full 11 digits, which would make your data more "plug and play," but for now, if your routing code isn't the full 11 digits, you'll need just those couple of lines of JavaScript.
__________________
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

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 04:12 PM.


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