How to use the @hpcc-js/ddl-shim.upgrade function in @hpcc-js/ddl-shim

To help you get started, we’ve selected a few @hpcc-js/ddl-shim examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hpcc-systems / Visualization / packages / marshaller / src / dashy.ts View on Github external
importV1DDL(ddl: DDL1.DDLSchema, baseUrl?: string, wuid?: string) {
        this._ddlv1.json(ddl);
        const ddl2 = upgrade(ddl, baseUrl, wuid);
        this._ddlv2.json(ddl2);
        this._tabDDL
            .addWidget(this._ddlv1, "v1")
            .addWidget(this._ddlv2, "v1->v2")
            ;
        this.restore({ ddl: ddl2 });
    }
github hpcc-systems / Visualization / apps / legacyDash / src / app.ts View on Github external
result.fetchRows().then(async (response: object[]) => {
                const ddl = JSON.parse(response[0][this._url.param("ResultName")]);
                this._ddlv1.json(ddl);
                this._ddlv2_upgraded.json(upgrade(ddl));
                this._elementContainer.importV1DDL(fullUrl, ddl);
                this._dashboard.lazyRender();
                await this._elementContainer.refresh();
                this._ddlv2.json(this._elementContainer.ddl());
            });
        } else if (this._url.param("QueryID")) {