Add text after barcode

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
fchiurazzi
User
Posts: 29

Add text after barcode

Post by fchiurazzi »

If I want change to fly any viewvalue I use row_rendered():

$this->isbn->ViewValue = $this->isbn->ViewValue . "<br>" . $this->isbn->DbValue; ( If I use that for any text field, it works fine)

or any

$this->isbn->ViewValue = $this->isbn->ViewValue . "everything";

not works.

I would like to display the numeric code (ISBN) under the barcode.


arbei
User
Posts: 9359

Post by arbei »

The barcode images are <img> with class "ew-barcode" and data-src="...?data=<value>&...", you may use jQuery or JavaScript in Startup Script to append the value after the images.


mobhar
User
Posts: 11703

Post by mobhar »

If you're using Startup Script, then you can only implement it for View Page. I don't think you can implement it in List Page.


arbei
User
Posts: 9359

Post by arbei »

You may also read .each() if you want to handle more than one <img> tags in the same page.


malsonique
User
Posts: 25

Post by malsonique »

I am using a "work-around" to show both numeric code and the barcode on a single page:

  1. Add a custom field of a table and name it whatever you want, like BarcodeImg;
  2. Set proper attributes for this BarcodeImg field in Custom View Tag of "View Tag" section.
  3. Then the web app shows both numeric codes and barcodes.
  4. If you want to change the way it looks, you may try to create a custom page to exactly show a numeric code under each of the barcodes.

Hope this helps.


Post Reply