Hi,
I have integrated camunda modeler in my angular application and I’m working with DMN tables.
I have been trying to display the DMN table in the decision table view but whenever the page is loaded for the first time then the DMN table is displayed in drd view and the next time when I try to load the table it is loaded in the decision table view.
```
ngOnInit() {
// initialize DM Diagram Modeller.
this.dmnDiagramModeler = new DmnModeler({
keyboard: { bindTo: window },
drd: {
additionalModules: [
propertiesPanelModule,
propertiesProviderModule,
drdAdapterModule,
],
},
moddleExtensions: {
camunda: camundaModdleDescriptor,
},
container: '#dmn-container',
});
// Fires when XML Import into DMN Modeller is complete.
this.dmnDiagramModeler.on('import.done', ({ error, warnings }) => {
console.log('Import Done event successfully emitted');
if (!error) {
try {
// Draw the DMN model.
const activeEditor = this.dmnDiagramModeler.getActiveViewer();
const canvas = activeEditor.get('dmn-container');
canvas.zoom('fit-viewport');
activeEditor.attachTo(this.el.nativeElement);
// DMN Canvas will have multiple views (one view for each decision box/table)
const view = this.dmnDiagramModeler.getViews()[1];
this.dmnDiagramModeler.open(view);
// SWITCHING TABS
this.dmnDiagramModeler.on(
'import.render.complete',
(aNewView, err, wrngs) => {}
);
} catch {}
} else {
console.log(error);
}
});
}
How can I ensure that whenever the page is loaded for the first time the table appears in **decision table view** ?
@jonathan.lukas, @Niklas_Kiefer