Skip to main content
Solved

How do you create a barcode custom field?

  • October 22, 2019
  • 6 replies
  • 975 views

durette
Superhero (Customer)
Forum|alt.badge.img+19
  • Superhero (Customer)
  • 526 replies

How might one create a barcode image as a custom field in Apps?

 

(I found this unanswered on OpenIFS.)

Best answer by durette

https://github.com/durette/CCode39Barcode

View original
Did this topic help you find an answer to your question?

6 replies

durette
Superhero (Customer)
Forum|alt.badge.img+19
  • Author
  • Superhero (Customer)
  • 526 replies
  • October 22, 2019

Custom fields do not support BLOBs, so doing this as a proper image is out of the question. However, I was able to develop a work-around using a text field, in Code 39, using Unicode characters for the fat and thin bars.

 

First, create a custom package. (See attached for C_BARCODE_API. You may need to edit the grants.)

 

Next, create a custom field, read-only, of type “Expression”. In this example, the barcode shows the order number on a Shop Order.

 

c_barcode_api.alphanum_to_code39(v.order_no)


eqbstal
Superhero (Partner)
Forum|alt.badge.img+21
  • Superhero (Partner)
  • 677 replies
  • October 28, 2019

Idea: push the image in a sticky note
Not that easy, but it would contain possibly the following steps:
Create a barcode image of the key object (ie. shop order number and sticky note will contain barcode of the number)
Insert a row in fnd_note_book
Insert a row in fnd_not_page with the note_id as prepared for fnd_note_book. The note text will contain the image.


alanbclark
Sidekick (Partner)
Forum|alt.badge.img+7
  • Sidekick (Partner)
  • 60 replies
  • December 12, 2019

There are several web services available that can be called from Oracle to pull down a BLOB of a barcode image.

 

You can store the BLOB image in the sticky note, but the image needs to be converted to an RTF format if you want it displayed as an image/picture.

 

I like the idea of the project, but it would take some research to find a BLOB to RTF conversion utility for Oracle (unless someone has one handy).


durette
Superhero (Customer)
Forum|alt.badge.img+19
  • Author
  • Superhero (Customer)
  • 526 replies
  • December 19, 2019

Here’s an open-source PL/SQL package that outputs a barcode image:

https://github.com/antonscheffer/as_barcode

 

(Its license is permissive, provided the attribution notice is retained.)


Forum|alt.badge.img+8
  • Sidekick (Customer)
  • 35 replies
  • December 20, 2019

Why not add this as document attachment? APIs are available and fairly simple to use..

Alternatively attach as media attachment.


durette
Superhero (Customer)
Forum|alt.badge.img+19
  • Author
  • Superhero (Customer)
  • 526 replies
  • Answer
  • March 11, 2021

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings