How to use the @hpcc-js/other.Comms function in @hpcc-js/other

To help you get started, we’ve selected a few @hpcc-js/other 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 / demos / dashy / lib-umd / index.js View on Github external
App.prototype.parseUrl = function () {
            var _this = this;
            var _url = new other_1.Comms.ESPUrl().url(document.URL);
            if (_url.param("Wuid")) {
                logger.debug("WU Params:  " + _url.params());
                var baseUrl_1 = _url.param("Protocol") + "://" + _url.param("Hostname") + ":" + _url.param("Port");
                logger.debug(baseUrl_1);
                var result = new comms_1.Result({ baseUrl: baseUrl_1 }, _url.param("Wuid"), _url.param("ResultName"));
                result.fetchRows().then(function (response) { return __awaiter(_this, void 0, void 0, function () {
                    var ddlStr, ddl;
                    return __generator(this, function (_a) {
                        ddlStr = response[0][_url.param("ResultName")];
                        ddl = JSON.parse(ddlStr);
                        this._dashy.importDDL(ddl, baseUrl_1, _url.param("Wuid"));
                        return [2 /*return*/];
                    });
                }); });
            }
            else if (_url.param("QueryID")) {