Hi guys,
I have an application in which an operator registers a visitor and assigns him a visitor card. The visitor must be informed of some rules, depending on the visiting area he is going. The requirement is that the visitor sees a pdf in a second screen and presses a checkbox declaring he has read the info and agrees.
So, is there a way to open a new browser window which will oen in a second computer monitor (while the operator works in the main monitor) ?
Best regards,
Alex
Hi Julie,
I think I found what the problem is. If in the windowFeatures I do not include dimensions ( width=600,height=400) the position settings are not respected. Try removing the “width=xxx, height=yyy” from your test app and you’ll see what I mean.
So, all well, I need to include dimensions, that is better anyway.
Best,
Alex
Can you attach a test case that shows the windowsFeature string not having an effect on the position of the window? It’s working fine for me.
Here’s a simple test case I made where you can change the left and right values of the window position.
Hi Julie,
The Application.OpenWindow works nicely. However, the windowFeatures string, in which I tried things like “left=1500, top=1300” or “screenX=1500, screenY=1300” does not seem to make any difference and, therefore, the window position cannot be set before opening. Is there a chance that this is fixed soon?
Best regards,
Alex
You can open a popup that’s not within the borders of the browser. The popup would be a new browser (like what you get if you open Chrome again). Wisej will treat it as a new session- so you will have to sync the data.
To do this, you can use Application.OpenWindow, see code snippet here: https://docs.wisej.com/docs/releases/whats-new-in-3.1#new-openwindow-callback
This allows you to have a callback when the user closes the other window so you can “restore” the original window. To the user, it looks like the same session in two browser windows but that is not how it works behind the scenes.
Note that you cannot have the same session in two browser windows or two browser tabs. Thus, the need to sync the data between the 2 sessions.
-Julie
Thank you, Julie.
If I understand correctly, a popup window is always within the borders of the browser. So, although I can position it as I like, it will always be within the browser. This means the browser will have to extend to both screens. And that won’t be nice. That’s why I originally asked for a second browser window.
And the question remains. How do I do it?
Best,
Alex
-If you open a new browser window, it will create a new session, BUT you can pass info (authentication+ what view to load) via the url.
-You should be able to make the window a popup, which means that you can control the position of where it is created. You could position it so that it is on the second screen. https://developer.mozilla.org/en-US/docs/Web/API/Window/open
These forum posts are on similar topics, you might find them helpful:
https://wisej.com/support/question/open-in-a-new-window-in-the-application
https://wisej.com/support/question/applications
Please login first to submit.