Я начинаю с рабочего стола qlik, и я подключился к рабочему столу через плагин Visual Studio. Я добавил 2 листа в Visual Studio, но когда я отладки на локальный, я получаю ошибкиQlik в Visual Studio плагин дает ошибку websocket и define() error
В .js файле ...
var config = {
host: window.location.hostname,
prefix: '/',
port: window.location.port,
isSecure: window.location.protocol === "https:"
};
require.config({
baseUrl: (config.isSecure ? "https://" : "http://") + config.host + (config.port ? ":" + config.port : "") + config.prefix + "resources"
});
require(["js/qlik"], function(qlik) {
// open the app
var app = qlik.openApp('c31e2aba-3b46-4b13-8b87-c5c2514dea1d', config);
//someone please tell me what this id is and where it comes from
because I c&p'd off of the tutorials and idk what goes here
});
В VS:
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain" runat="server">
<div class="qlik-embed" data-qlik-appid="\\apfs01\users\rbeets\Documents\Qlik\Sense\Apps\app1.qvf" data-qlik-objid="ZCJjkN></div>
<div class="qlik-embed" data-qlik-appid="\\apfs01\users\rbeets\Documents\Qlik\Sense\Apps\app2.qvf" data-qlik-objid="JRcLVC"></div>
</asp:Content>
и ошибки 1 и 2:
Websocket connection to 'ws://localhost......aspx' failed. Error during Websocket handshake. Unexpected response code: 404
Uncaught Error: Mismatched anonymous define() module ...from require.js:6 1 View Tags : localhostContent tagged with localhost, visual studio pluginContent tagged with visual studio plugin, websocketContent tagged with websocket, mismatched anonymous define()Content tagged with mismatched anonymous define()
Вы следуете учебник? Я предполагаю, что идентификатор, который у вас есть в openApp(), является QS-приложением от Sense Server. У вас есть сервер или только QS-клиент? Если вы используете клиент, вы должны ввести имя приложения вместо ID. – mickeger
Да, я следил за учебником (только для рабочего стола atm), и я нашел правильный appID и больше не ошибся в websocket! Спасибо. Теперь на другие ошибки lol – Rainhider