cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

smarttable barcode

javierrubio_01
Explorer
0 Likes
549

Hi,

I need to convert a smart table cell into a barcode image.

I am using the function JsBarcode inside a formatter but I am having an error because, I think, the table is not rendered yet.

In my view.xml I have:

 

                            <cells>
                                 <Image id="T" src="{path: 'Obj_key', formatter:'.formatBarcode'}" />
                            </cells>
 
Is there a way I can manipulate a smart table item cell after it has been rendered, as I think this might solve the issue?.
Thanks,
Javier

Accepted Solutions (0)

Answers (1)

Answers (1)

sajid-khan
Explorer
0 Likes

Hi

You can put your code inside onAfterRendering method of your view controller. This will ensure that your code is executed after rendering of view is finished.

Thanks

Sajid Khan