I’m opening a drawer through the multiple actions option on my table, and in the drawer I’m creating a line graph using Highcharts that represents data from the record on the table.
Everything works great with one catch:
Because I have to create a division with a unique id to cast my chart into, I’m running into an issue where if I open a drawer, and then immediately open a second without closing the first both graphs now show the data for the second record instead of their appropriate graph.
The bug gets worse the more drawers I open.
My question is: Is it possible to locate the control I want in javascript, and programmatically change it’s unique id so that no other drawers will overwrite the graph in the first drawer. I would like to set the id using information from the context row that I know won’t be duplicated.
Question
is there a way to set the unique id of a page component in javascript?
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.