What is suggested approach to combine data from two cells using customizeCell?

I need to display hyperlink in reports, but the thing is, to create link I need data from at least two cells – “Title” cell and “ID” (to create URL like “<a href=”/product/:id”>Boots</a>”. What is suggested approach to achieve desired result using customizeCell? 

Regards,
Aivars 

4 answers

Public
Dmytro Zvazhii Flexmonster June 11, 2018

Hello Aivars,
Thank you for your question. Could you please send us some jsfiddle example which describes the behavior you want to achieve? It will help us a lot to find a suitable solution for you.
Waiting to hear from you.
Regards,
Dmytro

Public
Aivars June 12, 2018

Hello Dmytro!
Please find example here https://jsfiddle.net/aivarsak/z15x6Lvj/
Let me know is some additional info is needed.
 
Regards,
Aivars

Public
Dmytro Zvazhii Flexmonster June 12, 2018

Hello Aivars, 
Thank you for your feedback. Each of our data cells has the recordId value of the id type available. As a workaround, you can pass a stringified object as value and then use it in the cutomizeCell handler. Here is the example: https://jsfiddle.net/flexmonster/8hd34gnq/.
Please let us know if the suggested approach works for you.
Regards,
Dmytro

Public
Aivars June 13, 2018

 Hello Dmytro!
Thanks for the response. I believe we can exploit your suggestion in order to get what we need.
Regards,
Aivars

Please login or Register to Submit Answer