All Answers

0 votes

Hi Mark,

#1988 is now also fixed in Wisej 2.0.47.

Best regards
Frank

0 votes
In reply to: FolderBrowser

Hi Angeles,

Wisej 2.0.47 now also adds a FolderBrowserDialog.

Best regards
Frank

0 votes

Hi Alexandru,

#1983 is fixed in Wisej release 2.0.47.

Best regards
Frank

0 votes

Hi Cristian,

issue #1989 is fixed in Wisej release 2.0.47

Best regards
Frank

0 votes
In reply to: MdiList of MenuItem

Hi Huynh,

issue #1992 is fixed in the latest Wisej release (2.0.47).

Best regards
Frank

0 votes

I think you got this result because of another method overload. I double checked it on wisej example with another overload ( Application.Download(Stream stream, string fileName) ) and I got name with pluses.

0 votes
In reply to: How to hide tabpage

Hi Glenn,

please use TabControl.Hidden property.

Best regards
Frank

0 votes

Yeraldo,

this is a simple sample in C#:

sessiontimeout2

Hope that helps.

Best regards
Frank

0 votes

Hi Yeraldo,

the best way is to attach a handler to the Application.SessionTimeout event.

Best regards
Frank

0 votes
In reply to: NFC Reader

Depends on the reader. We have a large (very large) Wisej app that is also running on devices on forklifts with barcode scanners that need to scan boxes very fast. The barcode scanners act like a keyboard and they simply put the code into the keyboard buffer. The app gets the value in the TextBox (if focused) or we have javascript event handlers that get the keydown and fix the focus.

 

  • Luca answered Oct 16, 2019 - 3:29 pm
0 votes

Hi Paul, thanks for the answer I solved it by updating Wisej to 2.0.40.0 apparently the problem was in the update patch.

0 votes
In reply to: Responsive

Hi again,

Now things are going ok but I have one FlowLayoutPanel where I populate with one UserControl but, when profile change the control still the default one.

How can I “resize” the UserControl, even the ones that are already in the FlowLayoutPanel?

 

0 votes

Hi Cristian,

It would be something like this:

Private Sub Button1_Click()

        Application.Browser.LocalStorage.GetValue(Of String)("test", AddressOf ShowKeyValue)

End Sub

Private Sub ShowKeyValue(value As String)

        AlertBox.Show("Key Value was " + value)

End Sub

OR

Private Sub Button1_Click()
        Application.Browser.LocalStorage.GetValue(Of String)("test", (Sub(val As String)
                                                                           AlertBox.Show("Key Value was" + val)
                                                                      End Sub))
End Sub

OR

Private Async Sub GetValueAsync()
        Dim value as new Integer

        value = Await Application.Browser.LocalStorage.GetValueAsync(Of Integer)("test")

        ShowKeyValue(value)

End Sub

A few things:

  1. GetValue(of String) means that it is going to try to convert the value of the key/value to that specified type
  2. We need to define the callback, which is what the program will run after it has retrieved the requested value.
  3. AddressOf ShowKeyValue creates a delegate that points to the ShowKeyValue method
  4. ShowKeyValue takes one parameter (the value returned from the key/value lookup)

Let me know if you have any other questions!

Best,

Levie

  • Levie (ITG) answered Oct 9, 2019 - 3:45 pm
  • last active Oct 10, 2019 - 2:40 pm
1 vote

Hi Boris

I made a test with the link you provide us
It could be that you have updated your application since you post your query.
I didn’t find any problem with selecting the textbox on screen
The mobile for the test is a MotoG5, something old ;-), with three browsers, Opera, Chrome and the phone standard
In the picture more details

Regards, Paul

2019-10-responsive-no-detecta-pantalla

  • Paul answered Oct 10, 2019 - 1:02 pm
  • last active Oct 10, 2019 - 1:08 pm
0 votes

Hi Levie,
your code work perfectly.
but if I want to insert the value in a variable to be used immediately, isn’t it possible?
samething like

Dim pippo as string
Application.Browser.LocalStorage.GetValue(Of String)("test", (Sub(val As String)
pippo = val)
End Sub))
MessageBox.Show(pippo)

pippo in the messagebox is empty

0 votes
In reply to: Global Variables

Hi

What happens to the Global variable when a new client joins the party?

Is in re initialised so all existing clients then see the re initialised value or does the new client inherit the current Global variable value?

For example if you wanted to know the number of clients could you have a global variable initialised at zero and incremented when the new client joins (runs the app in their browser)

Eg if I declare in Program.cs

internal static int Calls = 0;

Will it be reset to zero whenever a new client connects?

If this is the case how do you prevent a global variable from reinitialising?

Thanks

Ewan

0 votes

Hi Luca, thanks for your prompt response. But we are not using the tab of Browser to switch the module. We are using the tabControl of WiseJ to load multiple modules.

0 votes

Turning off WebSocket makes the HTTP traffic bigger since HTTP is less efficient. Our packets are small since they are differential JSON but with WebSocket you save all the HTTP headers.

You cannot share the same session across browser tabs. Going from tab to tab used to sync the sessions many builds ago but we stopped than when the stopped using cookies for the session  id.

All you get when you enable a tab is a focus event (fires the https://wisej.com/docs/2.0/html/E_Wisej_Web_Application_BrowserTabActivated.htm event). It’s probably 20 bytes, you can check with the Network tab using F12 in Chrome. Nothing is reloaded unless you hit F5 or refresh the browser.

 

 

 

  • Luca answered Oct 9, 2019 - 11:53 pm
0 votes

You can simply use either tail.select or sumoselect directly in your application with Wisej.Web.Widget. Add a Widget to your page, and then you can import the necessary javascript packages using the Widget.Packages property, and initialize the widget using Widget.InitScript.

You might find these blog posts useful: https://wisej.com/blog/integration1/, https://wisej.com/blog/integration2/, https://wisej.com/blog/all-about-integration-part-3/, https://wisej.com/blog/all-about-integration-part-4/

There are also integration examples on Github (the ones called Integration1-Integration4): https://github.com/iceteagroup/wisej-examples

Let me know if you have further questions or problems regarding integrating sumoselect and/or tail.select.

  • Guest answered Oct 9, 2019 - 10:05 pm
0 votes
In reply to: License Key

Hi Benjamin,

A developer license can be installed on up to 3 different machines.

You should be able to activate your Wisej license on the other computer without any issues.  Have you tried it?

Let me know if you run into issues!

Levie

Showing 5461 - 5480 of 11k results