Premium support for our pure JavaScript UI components


Post by NARESH.RAI »

Hi,

I have trying to implement GANTT MPP xml export wit latest version - 4.0.0
As shown in example but its not working with angular wrapper ->

 
 onMPPExport() {
        // give a filename based on task name
        const gantt:any = this.gantt.ganttInstance;
        const filename = gantt.project.taskStore.first && `${gantt.project.taskStore.first.name}.xml`;
        // call the export to download the XML file
        gantt.features.mspExport.export({
            filename
        });
    }
    

this is throwing err -> Cannot read property 'export' of undefined

Can you please provide solution on MPP export with angular wrapper ?

Thanks


Post by alex.l »

Hi NARESH.RAI,

You need to update our wrapper a bit.
Please add mspExport into featureInputs[] array in our gantt.component.ts.
Also add

@Input() mspExport: boolean | object;

into //#region features section

And enable this feature in your config.
We will update our wrappers with it as well in the next patch release.

All best,
Alex

All the best,
Alex


Post by NARESH.RAI »

what will be syntax to add mspExport in config ?
And by when we get this updated release ?


Post by fabio.mazza »

Hi Naresh,

The Alex's update probably will be available in 2 days.

Meanwhile you can also try enable it on wrapper by yourself using our guide, section "Adding properties which are not supported by default": https://www.bryntum.com/docs/gantt/#guides/integration/angular.md

Best regards,
Fabio


Post by NARESH.RAI »

Hi,

As now we totally blocked for export functionality, Can u guys provide working angular example as zip?
so we can complete our development till we get new Gantt release.


Post by mats »

No you are not..? You can either download latest nightly build which will have this fix or you can use the workaround described above?


Post by NARESH.RAI »

Tried provided solution but not able to get its working.
and nightly build is not available yet with this fix ..right ?


Post by NARESH.RAI »

Just checked, nightly build - gantt-2020-10-22
as you said it was there, but i didn't found MPP export example for angular ?
Can u check and confirm?


Post by alex.l »

Hi NARESH.RAI,

This fix has not been published in that nightly build.
Please, find gantt.component.ts in attachments that has this feature added. I just checked locally, all works as expected. No extra changes has been required than that I described in my answer. Please compare with your solution, it will help you in the future to update our wrapper examples as you want.

All best,
Alex

Attachments
gantt.component.ts.zip
(1.97 KiB) Downloaded 106 times

All the best,
Alex


Post Reply