Sample jqxChart not working

To test it locally, you have to use Deploy to Local Folder in the Run menu, not F5.

In the Chrome Debugger, there is a Sources tab. Look at code.js: what are the first 8 lines there?

Deploying in a local folder results in the following error:
Access to fetch at ‘file:///D:/NSB%20Studio/Bilanz210.appstudio/Bilanz210/nsb/library/jswasm/sqlite3.wasm’ from origin ‘null’ has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: chrome, chrome-extension, chrome-untrusted, data, http, https, isolated-app.

The native main app with chart sample integrated is working now, no further problem.

Thanks, we’ll check that CORS issue sqlite3.wasm out.

Let me know if you run into more issues.

I would like to specify sampledata as an array, but if I code:

Dim sampledata(6,4)
for i..
  sampleData(i) = Array("Preise",25,30,35)
Next

this show only gridlines and the description but not the columns

This question isn’t really an AppStudio question - it’s a jqxChart question.

jqWidgets has excellent documentation for jqxChart. It also has a forum, as well as a Chat window.

The control is really very powerful!

The chart control seems to take a relatively long time to load. Since I don’t use it often I could move it to another app. Is it possible to start another app in the sandbox of the first one? It could then access the data from the first one.

You could improve the loading time by including the jqx libraries in your app, instead of loading them on the fly from the net.

If you download the libraries on your system, you can set jqWidgetsPath in the Frameworks tab of Project Properties.

How can I download the libs or including them in my app?

I cannot build new native apps:
Error -1 zurückgegeben von VoltBuilder: Build misslungen: 402 Payment Required
this was from the first trial this day

Is this still happening? I see you’ve done a number of builds today.

Have a look at this blog post:

https://blog.appstudio.dev/2015/05/appstudio-5-using-a-local-copy-of-jqwidgets/

It works now, I did yesterday a lot of builds since I cannot test in the browser. Today just the first.

Thanks for the link, I loaded it down and the app starts now significantly quicker

Since I have the jqWidgets library locally, I can also test with the Chrome browser (F6), very good!

That’s great news!

One thing you will now need to do is check jxWidget’s site for updates from time to time. Since you have a snapshot of their libraries stored on your local system, it will not update automatically.

okay, that is a good hint.
Is there a list somewhere with the possible properties of NSB.jqxSettings[“controlName”] especially for charts?

Check out the documentation here.

NSB.jqxSettings[“controlName”] is an object which defines the appearance of the chart. For example:

You could then do:

NSB.jqxSettings["Chart1"].description = "My new description"

Nothing will happen until you refresh the chart:

$("#Chart1").jqxChart(NSB.jqxSettings["Chart1"]);

The updated chart will appear.

Hi George,
I have also noticed that if I don’t have an internet connection my app does not load completely… seems to stall and no buttons work. Are there other items that also need to download off the internet to function as you pointed out in this " jqx libraries" problem?
Thanks, Paul

Have a look at the Chrome Debugger Console. Any error messages?