I am getting started with qlik desktop and I have connected to the desktop via Visual Studio plugin. I have added 2 sheets to visual studio, but when i debug to localhost, I get errors
In .js file...
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
});
In 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>
and the errors 1 and 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()
I found the answer at the following link, which gives directions to finding the appId via either the server or the desktop(localhost) connection....