cancel
Showing results for 
Search instead for 
Did you mean: 

smarttable barcode

javierrubio_01
Explorer
0 Kudos

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
View Entire Topic
sajid-khan
Explorer
0 Kudos

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