There is only one session timeout in Default.json. You can handle the SessionTimeout event in your app and decide what to do and when to do it depending on your app logic. You can store any value you need in Application.Session: i.e.:
Application.Session.MyOwnTimeout = 40000; Application.Session.LastSessionTimeout = DateTime.Now;
The in your handler for Application.SessionTimeout, when your rule to timeout is reached, call Application.Exit(), otherwise simply set the Handled property to true and Wisej will NOT dispose the session.
Hi Luca,
I was watching this thread, tell me, about the handler it’s fine, but can I define a different timeout? how?
There’s no “application.timeout = 60” option right?
Hi Ronald,
thanks, this was logged as #1921 and will be fixed in the next Wisej release.
Best regards
Frank
Thank you for reply. I think that the Page Viewer WebPart approach is the simplest and effective. But i want try to make possible the interaction between tha SharePoint Page DOM and the Wisej app. The 2016 and 2019 SharePoint versions have an app model executed outside the SharePoint server process. The interaction is achieved using Javascript in client side and via RestAPI (SharePoint Client Object Model via Javascript inside the browser or C#/VB.NET in case of native .NET apps).
Web config in IIS is hierarchical – it inherits the parent’s site. Sharepoint pretty much takes over everything and I don’t think you can simply put in a web.config in a directory. It doesn’t work even in a plain IIS without sharepoint configuration since you have to convert the directory into an application.
I have tried a simple Page Viewer Web Part in a very old installation of SharePoint that we have and it works without issues. You simply have to host the Wisej application. See attached screenshot.
You can decide what to do with the timeout by handling the Application.SessionTimeout event.
In ASP.NET a session timeout is not recoverable, it means the session has already been destroyed.
In Wisej the session timeout is only the timeout to fire the Application.SessionTimeout event. The default implementation shows the countdown form and then calls Application.Exit() which destroys the session.
In your case, I would leave the default session timeout in Default.json and then handle SessionTimeout event different for each user. When your code decides that the session has expired call Application.Exit(). If the user closes the browser Wisej will destroy the session according to the default timeout.
Hi,
I’d like to ask for this, even after Frank explanation, if there is or it’s possible to provide an example for wisej login example with google captcha?
Even that it’s not needed as Frank explanation, somethings things have to “look secure” for who doesn’t understand how things work.
Thanks in advanced,
Hı Frank
I have 2 problems
I attacted sample
Thanks For helps
The icon is showing correctly.
The screenshot shows a regular form with a TabControl, not an Mdi form.
To set icons for the tabs simply use any of the ImageIndex or ImageKey properties and assign an ImageList to tne TabControl.
https://wisej.com/docs/2.0/html/Properties_T_Wisej_Web_TabPage.htm
To use an Mdi form, set the IsMdiContainer to true and create mdi children at runtime setting the MdiParent.
Try the UIContainers sample:
https://github.com/iceteagroup/wisej-examples/tree/2.0/UIContainers
I set icon of Form. But it does’nt show icon on Tab
Thanks Simone,
I have logged issue #1917 for that problem.
We´ll inform you when a fix is available.
Best regards
Frank
Hi Huynh,
it´s not supported directly out of the box but you can set the RowHeader value
manually with Row.HeaderCell.Value
Best regards
Frank
Hi Huynh,
you can use Form.Icon/IconSource properties.
They are used by the MDI when the form is displayed in a tab.
Best regards
Frank
Hi Frank,
i have reuploaded the project.
I hope you have a good day,
Alex.
Hi Alexandru,
there seem to be problems with your attachment.
Can you please try to readd it ?
Thanks in advance,
Frank
Hi Frank
I try code in html Window.Parent.Barcode(code.data); but is not work
Please help this topic
Thanks for help
Responding to myself… 🙂
…I’ve found a solution to my own question!
Instead of focusing in the barcode object (which is useful for in-screen barcode presentation), i use the zxing,net library directly to create an image for printing purposes.
(This link was a good starting point: https://www.codeproject.com/Articles/1005081/Basic-with-QR-Code-using-Zxing-Library)
Thanks anyaway!
Hi,
you might want to try window.parent.Barcode(…) when calling from inside the IframePanel.
See here:
Best regards
Frank
Hi,
I have just tried with the latest version from GitHub and it worked fine here.
What is the type of the column that you are filtering ?
Any chance to wrap up a test case ?
Thanks in advance.
Best regards
Frank
