cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Cubist Regular Visitor
Regular Visitor

How is fast iteration coding done with a PBI Custom Visual?

Say you have developed a custom visual, how can you make an update and see the results quickly?

 

The approach below seems too slow for practical rapid interation and development.

 

The only way I know how to update a visual is:

  1. Open the visual's code file (visual.ts), make some changes, save the code file
  2. Open pbiviz.json
  3. Make up a fake guid, use it to replace the existing guid, then save pbiviz.json
  4. From the commmand line run "pbiviz package"
  5. In PBI Desktop delete the visual, which causes auto deletion of everything in the designer, and of course also causes auto deletion of any data bindings or property settings.
  6. In PBI Desktop import the visual again.
  7. Create again the auto deleted visual instances, bindings, and properties needed to test the updated visual.

For reference, the people in the linked posts below also seem to have struggled with the update process after a code change is made.

 

I hope code change iterations are not really this cumbersome!  

 

Thank you -

 

1/27/2017 Modified Power BI custom visual and generated new pbiviz file, but not seeing changes
https://community.powerbi.com/t5/Developer/Modified-Power-BI-custom-visual-and-generated-new-pbiviz-...

 

12/23/2016 Tweaking custom visual: change doesn't save
http://community.powerbi.com/t5/Developer/Tweaking-an-existing-Custom-Visual-the-change-is-successfu...

 

4/28/2018 Problems updating Custom Visuals in Power BI Desktop
https://community.powerbi.com/t5/Developer/Problems-updating-Custom-Visuals-in-Power-BI-Desktop/td-p...

5 REPLIES 5
Community Support Team
Community Support Team

Re: How is fast iteration coding done with a PBI Custom Visual?

@Cubist,

 

Thanks for your feedback. You may submit an idea or leave a comment on GitHub.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cubist Regular Visitor
Regular Visitor

Re: How is fast iteration coding done with a PBI Custom Visual?

Hi Sam (@v-chuncz-msft),

 

Can you please clarify which one of these is implied by your response?

  1. The steps in my original post are currently the only way to iterate through code change cycles for custom visuals.
  2. You don't actually know one way or another, but wanted to post a token reply to boost your stats.

 

I don't mean to be cynical, but to be frank (1) seems hard to believe.  Consider that in everyday web development, when a code change is merely typed, the change can be automatically saved, compiled, and refreshed for display within a few seconds. 

 

Thank you -

 

 

 

 

 

Highlighted
Community Support Team
Community Support Team

Re: How is fast iteration coding done with a PBI Custom Visual?

@Cubist,

 

I'm not one of the developers. I mean the way I know to update an exising custom visual is to run command pbiviz package by using the PowerBI command line tools (recommended). For custom visuals that are not developed by new tools, you may try to rename the .pbiviz file to a .zip file, and change .css and .js file accordingly.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cubist Regular Visitor
Regular Visitor

Re: How is fast iteration coding done with a PBI Custom Visual?

So I take it your answer is choice #2.

What I don't understand is, if you aren't a developer, why post replies to a developer question on a developer forum?

It may boost your stats to fire off a generic post saying, hey, why don't you make a feature suggestion?

However for everyone else it just wastes time and has no benefit.

If you recall, no one asked for a new feature.
Community Support Team
Community Support Team

Re: How is fast iteration coding done with a PBI Custom Visual?

@Cubist,

 

I wanted to provide timely response. Though there are currently a few limitations, we can see the progress regularly, so stay tuned.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Top Kudoed Authors
Users Online
Currently online: 70 members 1,270 guests
Please welcome our newest community members: