KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Generate QRCode in Row Table #550

Open Mazmur opened this topic on on Dec 7, 2018 - 4 comments

Mazmur commented on Dec 7, 2018

Dear Koolreport,

How can I generate field value in row table to QRCode ?

Regards Mazmur

KoolReport commented on Dec 10, 2018

You may use the formatValue of Table like this:

Table::create(array(
    "columns"=>array(
        ...
        "productCode"=>array(
            "formatValue"=>function($value){
                return QRCode::html(array(
                    "value"=>$value,
                    "format"=>"png"
                ));
            },
            ...
        )
    )
));
Mazmur commented on Dec 11, 2018

QRCode created, with below code :

					   "Barcode"=>array(
							"formatValue"=>function($value){
								return QRCode::html(array(
									"value"=>$value,
									"format"=>"png"
								));
							},
							"label"=>"Barcode",
						),

But Table Bootstrap not display :

Mazmur commented on Dec 11, 2018

I want replace Barcode field to QRCode, but still display in Bootstrap Table.

KoolReport commented on Dec 11, 2018

Could you please view the console if there is any javascript error.

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

BarCode