All Answers

0 votes

Hi Robert,

By any chance, are you writing/rewriting a file that happens to be inside the “bin” folder?

Usually, the app will keep restarting whenever a file is either written or overwritten inside of the bin folder.

Best,

Alaa

1 vote

In the meantime, I could narrow down the issue to the code executed before the form is shown. Here, a database query (Access DB) is made to get some basic information the application uses. If this query is skipped, the form shows up corrently without restarting. The query is executed and populates an array without error. Question: Is it possible in a Wiesej application, to have some global data in the Module where also the Main() method resides? The mentioned array is also declared here.

Wisej version is 3.2.5; I’m running from Visual Studio 2022.

Any other ideas what causes this issue? Thanks!

  • Robert Langer answered Oct 3, 2023 - 10:45 am
  • last active Oct 3, 2023 - 2:26 pm
0 votes

Dear Julie,

Ok, Thank You

 

  • rdytop answered Oct 3, 2023 - 3:06 am
0 votes

What version of Wisej are you using?
Can you provide a sample so that we can try to reproduce? You mentioned that you created a simple new Form from scratch with two controls to be shown at startup-can you zip that and attach that to this forum post?

Is this a deployment, or are you just running it from Visual Studio?

-Julie

 

0 votes

You can achieve this by editing the code of the NavigationBar component.
It is open source on GitHub, and can be found here: https://github.com/iceteagroup/wisej-extensions/tree/3.2/Wisej.Web.Ext.NavigationBar

Specifically, you’ll want to edit the file NavigationBar.Designer.cs (https://github.com/iceteagroup/wisej-extensions/blob/3.2/Wisej.Web.Ext.NavigationBar/NavigationBar.Designer.cs).

0 votes

I’ve attached a sample that shows increased icon size, custom icon color, and custom icon color on hover. Run the sample and right-click on the button to open the context menu.

Here’s a code snippet from the theme file that shows where I edited the width/height of the icon, the color of the icon, and the hover color of the icon. You can find the full theme file in the sample-it’s called menucolor.theme.


"menu": {
"components": {
"item": {
"components": {
"icon": {
"states": {
"default": {
"properties": {
"width": 100,
"height": 100,
"marginRight": 8,
"scale": true,
"textColor": "#F16513"
},
"styles": {
}
},
"selected": {
"properties": {
"textColor": "#00FF57"
},
"styles": {
}
}
}
}
}
}

I’ve also included screenshots of what the theme looks like in the theme builder.

Note that you will have to edit the JSON text of the theme file manually to add the “width” and “height” properties to the icon- they are not included by default.

-Julie

  • Julie(ITG) answered Oct 2, 2023 - 4:01 pm
  • last active Oct 2, 2023 - 4:05 pm
0 votes

Here is the link to the documentation regarding the legend configuration. After trying a few different options, I am still unable to change the text color.

 

https://www.chartjs.org/docs/latest/configuration/legend.html#legend-label-configuration

  • Kieran answered Oct 2, 2023 - 3:01 pm
0 votes
In reply to: webserial wrapper

I’ve logged this as an enhancement request. We’ll consider adding it in a future release.

 

-Julie

0 votes

Hi Dino,

I will log an enhancement request for that feature and will be working on it.

Best regards
Frank

0 votes
In reply to: webserial wrapper

Good proposal. This allow to not use complex hardware infrastructure (serial network converter) on application that need to manage serial device like legacy POS devices.

 

0 votes

Can you provide a link to where you saw this in the ChartJS documentation? Does it include a code snippet showing how to do it in JavaScript?

If you know how to do it in JavaScript, you can simply run the JavaScript code from C#, like this:

Wisej.Web.Ext.ChartJS.ChartJS chartJS1 = new Wisej.Web.Ext.ChartJS.ChartJS();
chartJS1.Eval("JavaScript code goes here");

Another thing to note, for chartJS specifically, is that if you want to access the chart from inside chartJS1.Eval() you can use this.widget.chart

Here I used the Eval() function, which runs whatever JavaScript code you send it. You can also use the Call() function, which takes the name of a JavaScript function and runs that function.

-Julie

 

  • Julie(ITG) answered Sep 28, 2023 - 9:09 pm
  • last active Sep 28, 2023 - 9:10 pm
0 votes
Rasbian (the Pie’s OS) is based on Debian (same thing as Ubuntu), and we do cover Ubuntu deployments in our docs.
Also see https://www.youtube.com/watch?v=8BNdUE67orU -this video shows how to deploy a Wisej app to a Linux VM. The Linux VM in the video uses Ubuntu 22.04.2.
  • Julie(ITG) answered Sep 27, 2023 - 5:40 pm
  • last active Sep 27, 2023 - 8:07 pm
0 votes

The answer of this issue is: .SortFrozenRows = False

As you may see you have a native solution for this.

Kind regards!

  • mgmst answered Sep 27, 2023 - 4:39 pm
  • last active Sep 27, 2023 - 4:40 pm
0 votes
In reply to: Custom loading screen?

Hello, how are you? Query in version 3.2, how do you change the gif of the startup loader?

0 votes
In reply to: Invalid Server License

Things to consider:

1.Could be caused by a lack of internet connection, or a firewall blocking Wisej attempting to validate the license.
See this forum response: https://wisej.com/support/question/invalid-server-license-upgrading-to-wisej-3-net-core

2.Double-check that there is a wisej-server.lic file in the root project folder. wisej-server.lic is automatically generated the first time the server activates a server license. You can also try deleting it, in case it’s out of date. If it’s deleted, a new one will be generated. https://docs.wisej.com/docs/getting-started-1/license-activation#server-license

3.What version of Wisej does your application use? The screenshot you provided shows a Wisej version of 3.1.10. The newest version of Wisej is currently 3.2.5.  If you are using a newer version of Wisej, perhaps it tried and failed to download the new license? https://docs.wisej.com/docs/getting-started-1/license-activation#server-license

4. Try deleting the old wisej-license.wx file. You’ll find 2 copies, one usually inside the application’s root directory (outside the bin folder) and one under C:\ProgramData\IceTeaGroup\Wisej. Delete the file and recycle the app pool, and see if that fixes the ‘Invalid Server License’ message.

5. Try rebooting the server and pasting the license into the web.config file. Make sure that you are using the Server Key and not the Developer Key.

6.Double-check that the key in the web.config file and the wisej-server.lic file match.

7.Enable tracing so that you can get the log file from the license manger- in case there are errors as it attempts to validate the license.

Hope this helps!

-Julie

 

0 votes

This appears to be a bug. We can replicate. Will let you know when we have a fix.

-Julie

0 votes

This is likely caused by localization.  https://docs.wisej.com/docs/concepts/localization#localizing-the-system

By default, the culture is set to “auto”- it is detected based on the browser. You can change this by setting the culture in Default.json, like so:

"culture":  "en"

See https://docs.wisej.com/docs/concepts/localization#detecting-switching-the-browser-language

 

-Julie

  • Julie(ITG) answered Sep 25, 2023 - 5:16 pm
  • last active Sep 25, 2023 - 5:16 pm
0 votes

Hi again,

It looks like the deployment method makes the difference. It all works correctly if I publish the usual way with all the dlls included. And it does not if I publish as a single file (exe).
Have a look and see the difference in
https://win1-dev.mobics.gr/canvaswisejdll/ and

https://win1-dev.mobics.gr/canvaswisej/

It’s the same application deployed in the two different ways. just drag the mouse over tha canvas and then press the save to file button. In the second case you can see the missing widget error.

It looks like the Html2Canvas extension is missing from the single file deployment.

Regards,
Alex

 

0 votes

Hi Carl,

glad you found the solution and thanks for sharing it in the forum.

Best regards
Frank

0 votes

Of course, I found the solution right after posting (and after days of searching).

<httpRuntime … executionTimeout=”big enough number”/>

in web config, plus setting ScriptManager.AsyncPostBackTimeout fixes it.  Both of these timeouts default to 90 seconds.

 

  • Carl Daniel answered Sep 22, 2023 - 5:30 pm
  • last active Sep 22, 2023 - 6:19 pm
Showing 1061 - 1080 of 11k results