This topic is locked
[SOLVED]

 Insert Barcode into HTML field

1/25/2007 1:56:42 PM
ASPRunnerPro General questions
B
beebee author

Hi - I am trying to add a barcode to the ADD RECORD form by adding the following code to the INSERT HTML action:-
<IMG alt="Barcode Image" src="idalin.asp?BARCODE=" & [connote] >
This is using a Barcode generation script by IDAUTOMATION.
CONNOTE (TEXT FIELD) is a field in my form (and SQL database obviously)
The above does not work and only displays the default barcode. However this code:-
<IMG alt="Barcode Image" src="idalin.asp?BARCODE=95477813549874">
Works great and produces the correct barcode.
<IMG alt="Barcode Image" src="idalin.asp?BARCODE=" & "95477813549874"> DOES NOT WORK
I guess I am doing something wrong with the CONNOTE field and joining two strings..... Can anybody offer some advice?
Thanks in advance.

B
beebee author 1/26/2007

Hi Thanks but all I get is a barocde that equals
{build_edit_control field=
As in that is the value of the barcode produced........?

Admin 1/26/2007

Chris,
as far as i get from your post you want to display a barcode image before the user enters the actual code.

This of course is not possible.
Please clarify when and where you want to display a barcode image and where should it take the actual code.

Then I'll help you to implement it.

B
beebee author 1/27/2007

Chris,

as far as i get from your post you want to display a barcode image before the user enters the actual code.

This of course is not possible.
Please clarify when and where you want to display a barcode image and where should it take the actual code.

Then I'll help you to implement it.



Actually a very fair point. Ideally what I need is an ACCESS type after update action - I know that this is a no no so what I really need is to enter the consignment note (Connote) number and then have a button to generate the barcode in the picture field...... Any ideas

Admin 1/29/2007

Chris,
here is what you can do to display a barcode image on List and View pages after user enters it on Add page.
Open List page in Visual Editor, double-click your Connote field and choose Custom view type.

Put the following code to the dialog:

strValue="<IMG alt=""Barcode Image"" src=""idalin.asp?BARCODE=" & strValue & """>
" & strValue