Defect #485
Barcode Plugin Not run in WEB
0%
Description
By running the bean barcade in webclient get the following error:
Wrapped java.lang.NullPointerException (C: \ Documents and Settings \ juampy \ servoy_workspace \ pv_clientes \ forms \ pv_ccc_comprobante_datos.js # 142)
at C: \ Documents and Settings \ juampy \ servoy_workspace \ pv_clientes \ forms \ pv_ccc_comprobante_datos.js: 142 (onActionImprimir)
In SmartClient worked well.
I'm using it as follows:
var code1 = "0123456789"
drawtext1 var = true;
globals.vg_barcode = plugins.it2be_barcode.EAN128 (code1, drawtext1);
I appreciate a prompt response. Thank you!
History
Updated by Servoy Components about 13 years ago
- Status changed from New to Feedback
Is that really your code?
Is this 'drawtext1 var = true;' or this 'globals.vg_barcode = plugins.it2be_barcode.EAN128 (code1, drawtext1);' line 142?
I would first take a good look at 'drawtext1 var = true' and try again.
Please let me know if that solved your issue.
Updated by juan pablo about 13 years ago
hi, sorry I wrote wrong code. M:y really code is:
var code1 = "0123456789"
var drawtext1 = true;
globals.vg_barcode = plugins.it2be_barcode.EAN128 (code1, drawtext1); (I get the error here)
thanks!
Updated by Servoy Components about 13 years ago
Hmm, I will check next week to see if I can replicate this...
Updated by Servoy Components about 13 years ago
Apologies, I did not have the time yet.
I am not sure about this week but when I have the time it will be Friday or next week Monday.
Updated by Servoy Components about 13 years ago
The underlying libraries for converting the barcode to an image need AWT components.
This is not supported in web.
As far as I can see the bean does support web, the plugin does not.
I will see that I can find a way to convert the barcode without AWT but I don't know how long that will take.