Earn Points & Redeem with attractive offers!
You can earn points, by asking, answering, voting questions and redeem with
attractive offers
. To view various available redemption schemes, please visit
"My Profile".
New User? Sign Up  |  Sign In  |  Help
Barcode support and tutorials from IDAutomation and the community. Click for the BBB Business Review of this Computers Hardware, Software & Services in Tampa FL
Ask
Ask a question. Make sure you select the correct category for the question.
Answer
Like to help others? Then browse through the open questions to answer their questions.
Find
Find answer by browsing the resolved questions.
     
Search for Questions:
My Profile

Syd

Resolved Questions Bookmark and Share

How Do I Generate UPC-A Bar Codes in A Cognos Reports Using a Streamer?

I am following the tutorial Streaming Barcode Images in Cognos, using the demo to generate barcodes in a Cognos Report.

One of the issues is the cast_barchar function (shown in the above tutorial) called for in the expression - I know of no such function. When I place the Dynamic Barcode Generator URL into the expression definition and run the report, it simply gives back the string version of what I entered in the expression.

If I hard-code the URL string, it works:
'http://bcgen.com/demo/linear-dbgs.aspx?D=' || 123456789012 || '&S=1'

When I use the cast_barchar function, I get errors.

Can you clarify what is going on?



Operating System: Windows

Application: IBM Cognos

01-02-18     20 day(s) ago     Views: 116

    Report Abuse

 

James

Best Answer

Image in tutorial:

image

I believe you are accidentally mistaking the tutorial example’s field with a function specific to Cognos, the Dynamic SaaS Generator, or its demo.

Here is the fictional example dataset field reference:
cast_barchar([gosales_goretailers].[Products].[Product number])

Here is the field separated for readability*:

http://bcgen.com/demo/linear-dbgs.aspx?D=’ ||
cast_barchar([gosales_goretailers].[Products].[Product number]) ||
‘&S=1’


For instance, if the above field equaled 11 (as seen on the top barcode), then the full string rendered value would be equivalent to*:

http://bcgen.com/demo/linear-dbgs.aspx?D=’ ||
‘11’ ||
‘&S=1’


* This would normally be one line.

Rendered string’s result (click on barcode to see URL in browser):
image

Using the above and the example, simply replace your real variables or fields in the Expression Definition field so that (when rendered by Cognos) it will form a string that our streamer product will then recognize and respond to with a barcode.

Note:
The above is strictly referring to the general tutorial, which is not UPCa. If you would like to generate UPCa, substitute in the appropriate properties:

D=123456789012 (or a correct number at least 11 digits long)
S=6



Posted 19 day(s) ago

()
()
  Report Abuse
 
   Find Interesting  
   Email to Others  
   Bookmark  
   Subscribe to Answer Alert  
No comments yet.     Be the first to comment.

Email this question link to friends
You must enter an email address, if name is entered or vice-versa for each friend.
Friend #1 -
Friend #2 -
Friend #3 -
Friend #4 -
Friend #5 -
  Your comment on this question
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must starts with "http://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always starts with " http:// ")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 Characters are allowed. Current Count: 0
  Your comment on this answer
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allow you to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must start with "http://" or "https://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always start with "http://" or "https://")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 characters are allowed. Current Count: 0

You may answer and comment on any thread according to the Terms and Conditions.

 © Copyright 2017 IDAutomation.com, Inc., All Rights Reserved. Legal Notices.

 Barcode Fonts | Components | Scanners | Support | Contact Us
Training Videos on YouTube Join us on Google Plus Join us on LinkedIn Follow us on Twitter Like us on Facebook