All Answers

0 votes

For the cookies issue, just had a similar request. I think the problem is that the cookie is set using http-only then Wisej cannot remove it using the WebSocket response. But you can use the Http context in the first request since it’s http.

 

This executed in Program.Main deletes an http-only cookie.

System.Web.HttpContext.Current.Response.Cookies.Add(
new System.Web.HttpCookie(“Test”) { HttpOnly = true, Expires=DateTime.Now.AddDays(-1) });

  • Luca answered Mar 12, 2021 - 4:12 pm
0 votes

No, the problem is that blockly doesn’t work well with the html surrounding it. You must use it in an iframe.

  • Luca answered Mar 12, 2021 - 4:08 pm
0 votes
In reply to: Gantt editor

Post an example of blockly in an iframe with Wisej that doesn’t work and we can help you. Blockly is not written very well and it doesn’t work inside divs with certain css styles. I wasted a lot of time trying to understand what they are doing wrong in jsfiddle but gave up.

  • Luca answered Mar 12, 2021 - 3:21 pm
0 votes
The bubble is too high, with reference to the associated control.
0 votes
In reply to: Gantt editor

“Wisej can use any third part javascript library as is.” but Blockly 🙂

  • mgmst answered Mar 12, 2021 - 4:00 am
0 votes

The cookie should be deleted, unless the url doesn’t match. Can you reproduce in a small test case?

In Javascript in Chrome (F12) put a break in Wisej.Core.setCookies() and see if it tries to set the cookie to delete with a date of “; Expires=Thu, 01 Jan 1970 00:00:00 UTC” which is the only way to delete cookies.

In alternative try Application.Browser.CookieStorage.RemoveValue(“cookie name”); In this case the break on the client can go to Wisej.Core.removeStorageValue().

  • Luca answered Mar 11, 2021 - 1:48 pm
0 votes

This issue is not present in version 2.2.42

  • Ewan Walker answered Mar 10, 2021 - 5:28 pm
  • last active Mar 11, 2021 - 10:28 am
0 votes

Thank you Luca!

You nailed it.

0 votes

Hi Ivan, the Page is a property of the wrapper. Try in your Init ore PreInit or Load event to add

this.Page.Culture = this.Page.UICulture = culture.

If that is the solution we can add it to the AspNetWrapper.

  • Luca answered Mar 10, 2021 - 8:33 pm
0 votes

Hi Levie.

Trying to find a solution to this, I arrived at the DevEx documentation page where they instruct us to use the InitializeCulture in order to be able to set the Application Culture ( https://docs.devexpress.com/AspNet/12050/common-concepts/localization/satellite-resource-assemblies ). In the Runtime session of this page there is a sample on how it should be done. However, we don’t get the InitializeCulture in our Pages/Windows. Would there be a way to do something in order to follow their instruction in a Wisej fashion?

I think the fact that if we put a break point at the time we set the Culture and this makes it work is a good clue, for you guys, of what could be going on.

PS: this is the Method mentioned: https://docs.microsoft.com/pt-br/dotnet/api/system.web.ui.page.initializeculture?view=netframework-4.8#System_Web_UI_Page_InitializeCulture

 

  • Ivan Borges answered Mar 10, 2021 - 8:24 pm
  • last active Mar 10, 2021 - 8:26 pm
0 votes

Hey, this looks like it is going to be one of those tricky ones… at least for me.

I spoke too soon. It works at times, it doesn’t in others. I even put the CurrentCulture setting in all events (PreInit, Load and DataLoading) and sometimes, even if set to Portuguese, for example, it comes in English. Then, I put a break point at the time I set the CurrentCulture and it worked just fine. I guess the ASP.NET thing of talking back and forwards has something to do, but why would we loose the CurrentCulture settings?!

I tried using Thread.CurrentThread.CurrentCulture instead of the Application.CurrentCulture too, but same results. I think I have a problem… 🙂

  • Ivan Borges answered Mar 10, 2021 - 7:01 pm
  • last active Mar 10, 2021 - 7:02 pm
0 votes

Hi Levie.

Success!

Tried the Load, didn’t work. Tried the PreInit, it worked perfectly.

Thank you.

 

0 votes
In reply to: Wisej 2.5

Hi Huỳnh,

We’re looking to have a a release of 2.5 available by the end of June this year.

Best,

Levie

0 votes

Hi Levie.

Thanks for the reply!

Yep, I am doing it in the Program.Main and then later if the user chooses a different language. It is all fine with my Wisej controls, the thing is with the DevEx Dashboard wrapper. The first Dashboard I open comes properly localized, after this one, all others are not localized anymore. It is like the “main thread” is respecting the CurrentCulture and the first Dashboard is opened in it, but then the others come in a different “thread” where CurrentCulture hasn’t been changed.

Yes, I am using the latest from Wisej.

Thanks.

Ivan

0 votes

Hi Ivan,

You can do it in Program.Main and it should work correctly. I know you had some issues with setting the localization before, any chance we can get a small sample demonstrating the issue?

Are you using the latest version of Wisej?

Best,

Levie

0 votes
In reply to: Super cool Login form

Blockly doesn’t work. The integration is easy but blockly dagging and menu fail to work when it’s inside a div that us a bit more complex than <div>. There is nothing we can do. You need to put it in an IFramePanel.

  • Luca answered Mar 9, 2021 - 5:54 pm
0 votes
In reply to: Super cool Login form

Thank you!

It works fine!

Please help with blockly 🙂

  • mgmst answered Mar 9, 2021 - 3:41 pm
0 votes
In reply to: Turn off Camera

Thanks for the response Levie.

I run your attached sample, but the result is the same. I can’t stop or turn off the camera.

I have run your example 4 minutes ago, I left the application in the background and the camera is still on. If I kept using the application, it would keep running all the time.

The need to use dispose on the camera, is because we inferred that performing this action would turn off, but it is not.

I think there should be an option to turn the camera on or off whenever you want, and not let it stay on for as long as you close the browser or leave the application.

Thanks.

  • cagilferreiro answered Mar 9, 2021 - 3:23 pm
  • last active Mar 9, 2021 - 3:27 pm
0 votes
In reply to: Turn off Camera

I’ve logged the exception that’s thrown as issue #2606. A fix will be available in the next build!

Thanks for your help!

Levie

0 votes
In reply to: Turn off Camera

Hello,

I’ll need to look and see why that error is thrown. It shouldn’t be, but…

You don’t need to Dispose the Camera or BarcodeReader to turn off the scanning. The BarcodeReader component has a property “ScanMode” that when set to AutomaticOnce will only report the first Barcode it finds.

You can then reset this and use it again by calling BarcodeReader.ResetScanner().

Please give the attached sample a try and let me know if you run into any issues with it. It demonstrates the different ScanModes.

 

Best,

Levie

  • Levie (ITG) answered Mar 9, 2021 - 2:21 pm
  • last active Mar 9, 2021 - 2:25 pm
Showing 3961 - 3980 of 11k results