Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 50041

Execution stuck in Constructor

$
0
0

Hello all, 

 

I´m trying to port my Custom Visual to the new Developer Plattform. After multiple changes I´m able to compile and start the visual. But now, when I want to put Data into the visual, it just shows nothing. After some debugging I found out, that the Visual seems to be stuck in the constructor method, as the update method is never called. 

 

The code in the constuctor looks like this 

constructor(options: powerbi.extensibility.visual.VisualConstructorOptions) {
            this.selectionManager = options.host.createSelectionManager();
            this.options = options;
            // Create main DIV used for the table
            this.root = d3.select(options.element/*.get(0)*/)
                .append('div')
                .classed(FormattedColumnsVisual.VisualClassName, true);
        }

the two properties selectionManager and root are defined like this:

private root: D3.Selection;
private selectionManager: ISelectionManager;

So, the visual executes up to the this.root = .... call. Here it seems to be stuck. I don´t get an error Message, but every line of code after this, just doesn´t get executed.

 

Maybe you have an idea, what could cause this behavior.

 

Thanks for your help!  


Viewing all articles
Browse latest Browse all 50041

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>