[INFO REQ] The first render doesn't clean correctly the task card in taskRederer method
Posted: Thu Jun 17, 2021 11:44 pm
by licjapodaca
Hi there, I already call the method taskRenderer to clean the value of the task name that comes from our Database like so:
Screen Shot 2021-06-17 at 2.37.33 p.m..png (319.9 KiB) Viewed 1251 times
But when I call the load() method from the Taskboard Project the first renderization doesn't work like so:
Screen Shot 2021-06-17 at 2.36.48 p.m..png (124.48 KiB) Viewed 1251 times
But when I click over a task card, it triggers something that execute the taskRenderer method now correctly like so:
Screen Shot 2021-06-17 at 2.43.39 p.m..png (120.03 KiB) Viewed 1251 times
Is there a configuration that I miss...
Regards
Re: [INFO REQ] The first render doesn't clean correctly the task card in taskRederer method
Posted: Fri Jun 18, 2021 8:14 am
by johan.isaksson
Hi,
A taskRenderer is for formatting the output. We strongly recommend not assigning any values to records in it since assigning triggers another render. I will clarify this in docs.
Re: [INFO REQ] The first render doesn't clean correctly the task card in taskRederer method
Posted: Fri Jun 18, 2021 5:28 pm
by licjapodaca
Excellent @johan ... Thanks for your help...
Regards
Re: [INFO REQ] The first render doesn't clean correctly the task card in taskRederer method
Posted: Fri Jun 18, 2021 7:55 pm
by licjapodaca
Hi @johan, I already use the project event "beforeloadapply" like so:
Screen Shot 2021-06-18 at 10.48.46 a.m..png (200.7 KiB) Viewed 1242 times
In the developer console I can see the data already cleaned and I already assign the cleaned data to the "event.response", but I still see the not cleaned data like so:
Screen Shot 2021-06-18 at 10.49.17 a.m..png (250.71 KiB) Viewed 1242 times
Am I doing something wrong?
Regards
Re: [INFO REQ] The first render doesn't clean correctly the task card in taskRederer method
Posted: Fri Jun 18, 2021 8:54 pm
by licjapodaca
Hi @johan, this works for me:
Screen Shot 2021-06-18 at 11.52.33 a.m..png (453.89 KiB) Viewed 1240 times
Regards
Re: [INFO REQ] The first render doesn't clean correctly the task card in taskRederer method