Forum Discussion
Data mapping and visual update not working
- 6 years ago
Hi augustindelaf,
You can confirm the dataViewMapping looks as expected by checking the raw data for the developer visual, e.g.:
If the table shown under the visual looks as you might expect, then it is likely to be something in your visual's update method rather than the dataViewMapping. If there's no error handling set up (e.g. using try ... catch) in your update method then visuals often just seem to be doing nothing when they're actually failing at a point you might not expect.
Are you able to share your code (including all of capabilities.json, and package.json if you're using a particular node package) so that I can try and replicate and see where it might be getting stuck?
Thanks!
Daniel
Hi augustindelaf,
You can confirm the dataViewMapping looks as expected by checking the raw data for the developer visual, e.g.:
If the table shown under the visual looks as you might expect, then it is likely to be something in your visual's update method rather than the dataViewMapping. If there's no error handling set up (e.g. using try ... catch) in your update method then visuals often just seem to be doing nothing when they're actually failing at a point you might not expect.
Are you able to share your code (including all of capabilities.json, and package.json if you're using a particular node package) so that I can try and replicate and see where it might be getting stuck?
Thanks!
Daniel
- augustindelaf6 years agoImpactful Individual
Hi dm-p,
I did not know that the visual silently does not display when an exception is thrown. Thank you very much. 😉
With your advices, I manage to find the issue : it was in my constructor : some test code threw an exception.
Best regards.