Printing out barcodes?

Benjamin Nuttin
Giga Expert

We would like the ability to print out asset receiving forms to send to our vendors. These forms would have data from the system, mostly in the form of text fields and the like, but they would also have barcodes. These would simply be a representation of the asset serial numbers in a special "barcode" typeface. Has anyone done this before? Any idea how we can implement this? Thanks!!

1 ACCEPTED SOLUTION

That's pretty cool! It worked well for me. I put the code39.js code in a UI Script named "code39" and then included it on a UI Page with the HTML:



<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<g:include_script src="code39.jsdbx"/>
<div id="externalbox" style="width:5in">
<div id="my_barcode" />
</div>
</j:jelly>


And then UI Page's Client Script is:



$("my_barcode").innerHTML=DrawCode39Barcode("123456789",1);


View solution in original post

22 REPLIES 22

rashmi49
Kilo Explorer

Hi Eric,

Thanks for the reply.Now I made some change in my script.But The problem is, control is not getting passed to second function(which is a server side script).

Please help me to achieve the same.

function abc(){
var v = g_list.getChecked();
var a = new Array();
a = v.split(",");
for (var i=0; i < a.length; i++) {
alert(a);
}
gsftSubmit(null, g_form.getFormElement(), 'test');

if(typeof window == 'undefined')
{
xyz(a);
}
function xyz(sysid){ ****************Not Reachable
gs.addInfoMessage("testing");
current.update();

gs.setRedirect("barcode_generator.do?sysparm_encode="&sysparm_query=sys_id=sysid);
}
}


Hi Rashmi, I am interested in your setup (generation of barcodes from a list) - do you have an example of the completed script? Thanks in advanced


Hi Alan,


Did you find a solution for your question?