All Answers

0 votes
In reply to: Licensing change

Hi Jesús,
I apologize for the delay. The document is nearly finished and will be released by the beginning of next week at the latest.
Best regards,
Levie

0 votes

Hi Paul,

It seems to work for me (no offline status). Can you please check Chrome console for any errors?

TIA,

Levie

  • Levie (ITG) answered Jan 8, 2022 - 8:41 pm
  • last active Jan 8, 2022 - 8:41 pm
0 votes

I can’t go back. It always generate 2.5.22 Wisej framework DLL

I can do nothing with this blue icon in reference section. Please find the attachment.

Please help!

VS 2019

 

 

  • mgmst answered Jan 8, 2022 - 5:51 pm
0 votes

You can either get it from nuget

Install-Package Wisej-2 -Version 2.5.21

or run the installer from

https://wisej.com/builds

Best regards
Frank

 

0 votes

Thank you!

Where can I download version 21?

 

  • mgmst answered Jan 8, 2022 - 4:17 pm
0 votes

Hi,

2.5.22 was depreceated and a new release candidate is currently in QA. We´re aiming for a release on tuesday.
Please step back to 2.5.21 for now.

Best regards
Frank

0 votes

Hi Anz,

I´d suggest you contact us at SalesATWisej.com and we can provide you with different options of professional support.

Best regards
Frank

0 votes

Hi

Hi Sorry if I misunderstand but for your description suppose that you have a custom code that catch the escape key and you link this with the Close() method of the form.
The forms dont close by default with the ESC key

For we could help you, we need a small runnable sample with the same code that you have in the form

Regards

 

  • Paul answered Jan 7, 2022 - 4:54 pm
0 votes

My test case used both my “work around” for page switching and the Navigation class.  Both work fine without the Messagebox being fired. How can I send that to you?

0 votes

So, I did some further testing.  It turns out the Messagebox causes the lockup.  It’s fired if the Changed variable is true.  I’m not sure what I’m doing wrong formatting the MessageBox, but that’s where I need the help I believe.  I tried to upload a test case as a separate project where the problem was reproduced but the zip file was marginally too large.  I’m not sure how to make it smaller, there’s only two sparse pages.  Here’s the Messagebox code:

Dim ans = MessageBox.Show(“Do you wish to save your changes?”, “Changes Made”, MessageBoxButtons.YesNoCancel)

I also tried

Dim ans = MessageBox.Show(“Do you wish to save your changes?”, “Changes Made”, MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1, True, False, True, Wisej.Web.RightToLeft.Inherit)

Thanks!

Gerry

0 votes

We have the same examples in VB.NET here

https://github.com/iceteagroup/wisej-examples-vb

 

  • Luca answered Jan 5, 2022 - 11:26 pm
0 votes

This becomes a vb.net question if you can help. Calling page.Show() or Application.MainPage = page in vb is not as straightforward as in C#. In order to compile I’ve found assigning the Application.MainPage needs to be Application.MainPage = New Page1. Also Page1.Show() won’t compile, can you help with a vb fix for this?

I will create a new project and try to reproduce the error as I have tried using Application.OpenPages(“Page1”).Show() and it causes the error.

Thanks Again!

Gerry

0 votes

I just tried our Navigation sample but cannot reproduce the issue. If you have steps to reproduce please send.

To answer the other questions:

  • If you call New Page1() it creates a new page instance, then when it’s made visible the first time it’s referenced in the OpenPages collection and stays there until disposed to prevent garbage collection. If you simply create a page instance and never use it, it will get garbage collected at one point or another, it’s up to .NET.
  • When you simply navigate back and forth – calling page.Show() or Application.MainPage = pageX then you are not creating new instances.

A good approach is something like this:

var page1 = Application.OpenPages["page1"] ?? new Page {

    Name = "page1"

};

Retrieves the existing “page1” and if null creates a new one.

HTH

  • Luca answered Jan 5, 2022 - 10:27 pm
0 votes

if  datetimepicker on focus can’t close the parent form (profile entry) when press the esc-key….  click (x) or cancel button will do…

  • Junarism answered Jan 5, 2022 - 10:13 pm
0 votes

Hi Luca,

I wasn’t sure if I provided the information you needed in my comments to your comment.  The problem is reproducible.  Do you need me to send you a test case?

Thanks much!

Gerry

0 votes

Hi Roger,

glad you found the reason and could resolve it.
Thanks for letting us know!

Best regards
Frank

0 votes

Hi Frank,

Problem resolved after removing a reference to Wisej 1.x.

And yes there was the same problem with localhost.

Thanks,

Roger

  • rtsys answered Jan 5, 2022 - 12:25 am
0 votes

Thanks for your response!  I’m glad to build a smaller project to replicate the issue but before I do this I want to explore a more basic explanation.  Also, the app does not “crash” per se, it just locks up.  I believe your explanation of using disposed pages is correct.   FYI, I can eliminate the problem by refreshing the page in the browser.

I’m not sure of the best way to handle switching pages.  I suspect my limited understanding might be creating the issue.  In a desktop app,  closing a form disposed of all its components.  In my app I used the WiseJ example code for the class Navigation from https://github.com/iceteagroup/wisej-examples/tree/2.2/PageNavigation/PageNavigation.  The function below seemed to offer a way to load a new page or reload it if it already existed.  This sped up the page transition for already loaded pages which seemed like a good option:

Public Shared Function Navigate(pageType As Type, ParamArray args As Object()) As Page
PreviousPage = Application.MainPage
Dim page As Page = Application.OpenPages(pageType.Name)
If page Is Nothing Then page = CType(Activator.CreateInstance(pageType, args), Page)
page.Show()
Return page
End Function

I used this to switch to a satellite page then simply used the PreviousPage variable in the Navigation class to return to the Dashboard page: Navigation.PreviousPage.Show().  I can dispose of the satellite page to solve the issue but then I have the delay in reloading it to switch back.

My solution may need be to dispose of any open pages and reload the next but this creates a delay in opening the page.  I can live with that but first I wanted to know if you have a recommendation on how to switch pages.   I’ve seen a few suggestions in these support questions but I’m not sure what best suits my needs.  The code below works without any issue switching pages (problem solved), but I was hoping to reuse open pages to speed up the transition as its possible for users to want to switch back and forth.

Application.MainPage = New SatellitePage

Me.Dispose()

Do you have a better recommendation -or- a way to implement the function I pasted above without the error ?

Thanks very much for your time!

Gerry

 

0 votes

Crashes how? If you get an exception pls send the stack trace. You can also enable VS exceptions to catch it when thrown.

Looks to me  that you end up with disposed pages and controls. Hit refresh on the browser to refresh the state on the browser so you can see exactly what is on the server.

What is Navigation? It seems like a module in VB.NET which is shared and you may end up with disposed objects.

It’s unclear how we can help without some kind of reproducible. You don’t have to upload the entire application, just build a small simple case showing the same architecture in the code snippet.

 

  • Luca answered Jan 4, 2022 - 4:12 pm
0 votes

Hi,

does this problem occur when running on localhost (in Visual Studio) or only when deploying to a remote server?
Can you please try to isolate it into a small test case and either post it here or send it to supportATwisej.com ?

Thanks in advance.

Best regards
Frank

Showing 2941 - 2960 of 11k results