Page 1 of 1

[INFO REQ]

Posted: Thu Oct 14, 2021 9:42 am
by tikhonov.a.p

Good afternoon.
I did not find something under the documentation.
Is it possible to interfere with the MspExport feature process? There is a problem that msproject does not accept large UIDs. And in my implementation the UID is 19 characters. In addition, there is a GUID. I would like to be able to affect the exported identifiers


Re: [INFO REQ]

Posted: Thu Oct 14, 2021 10:50 am
by arcady

There is no good public way of processing the exported data at the moment. So I've made a ticket for adding it: https://github.com/bryntum/support/issues/3565

And here is how it can be done now by overriding a private method:

// make an override for standard MspExport class 
class MspExportOverride {
    static get target() {
        return {
            class : MspExport
        };
    }

    // override its generateExportData private method to inject our custom processing of the collected data
    generateExportData() {
        // call overridden function
        const data = this._overridden.generateExportData.apply(this, arguments);

        // do some data processing here
        debugger

        return data;
    }
}
// apply the override
Override.apply(MspExportOverride);

Here is Override class docs: https://bryntum.com/docs/gantt/api/Core/mixin/Override


Re: [INFO REQ]

Posted: Tue Nov 02, 2021 12:02 pm
by tikhonov.a.p

And here is how it can be done now by overriding a private method: