Reply
Regular Visitor
Posts: 26
Registered: ‎01-06-2016

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

[ Edited ]

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...

Senior Member
Posts: 293
Registered: ‎07-09-2016

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.

Regular Visitor
Posts: 26
Registered: ‎01-06-2016

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 -

 

 

 

 

 

Senior Member
Posts: 293
Registered: ‎07-09-2016

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.

Regular Visitor
Posts: 26
Registered: ‎01-06-2016

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

[ Edited ]
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.
Senior Member
Posts: 293
Registered: ‎07-09-2016

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.