Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
lmeyerov
New Member

Custom Visual Developer console not logging

In Firefox (Chrome does not work due to stricter unsigned TLS rules in OS X, despite setting keychain...), the developer console does not show calls to console.log/console.info, any ideas?

 

We're trying:

- update() calls console.info() + alert() as their first thing

- the test: use the Format panel UI to manually change some values, expect to see update()/enumerate called for our custom objects

- logExceptions decorator (calls console.error for update() exns): https://community.powerbi.com/t5/Developer/How-to-Debug-while-developing-Custom-Visuals/m-p/187053#M...

 

Overall setup: https://community.powerbi.com/t5/Developer/Custom-Visuals-format-panel-input-values-reset-1-second-a...

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Sorry, I have little experience in this custom visual. @dm-p  is very outstanding. Could you please help to solve this problem?

lmeyerov
New Member

The plot thickens:

 

 

--  `Visual::constructor()` and `Visual::enumerateObjectInstances()` will print via console.info()

-- ... but `Visual::update()` will not print console.info() after changing a custom value in the Format panel

 

Also, we rolled back the API version  to 3.8.3 to match the bar chart demo repo

 

So, the question comes: Why is update() not getting called / not calling console when Format pane custom text input values get manually changed by the Report editor user?

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.