Coming soon: Your brand new Help Center & Community! Get a sneak-peek here

Popup Dialog in a Web Panel

Hi,

I have a requirment to popup a dialog from a web panel. I can get this working, but I really want to be able to have the popup display over the whole SuperOffice Window and not be limited to the bounds of the WebPanel it is being called from.

Has anyone done this before, or is this even possible?

Cheers

Rich

 

RE: Popup Dialog in a Web Panel

Hi Rich!

Not aware of anyway solution to accomplish this in Windows client.

 

Af: Tony Yates 7. maj 2019

RE: Popup Dialog in a Web Panel

Tony,

Do you think I could achieve this in web?

Cheers

Rich

 

Af: Rich Hacker 7. maj 2019

RE: Popup Dialog in a Web Panel

It should be possible in an Onsite Web installation, but it's not trivial. Figuring out how to define the dialog, populate it with controls and data, and getting it to do whatever you want can be quite a challenge. There aren't too many examples of how to do it, and you'll probably need to browse the forums to figure out how to piece it all together.

The method used to tweak an Onsite installation won't work in Online.

Af: Frode Lillerud 7. maj 2019

RE: Popup Dialog in a Web Panel

Thank you both for your input.

I think I will go down the route of opening a new browser window instead. I just don't like the fact I can't remove the Explorer Address bar, so it will not integrate as nicely, but it will be less of a headace.

Cheers

Rich

 

Af: Rich Hacker 7. maj 2019

RE: Popup Dialog in a Web Panel

My Web knowledge = NULL.
However, it looks like your dialog somehow managed to center itself inside the IE ActiveX Control's HWND.
Basically, from a sheer Win32 API p.o.v. this is the Parent/Child relationship. Our GUI code deals with this all over the place.

So, if you have control over this when invoking your dialog, you should be able to pass it any Parent of the ActiveX control window.
Using our NamedControlTexts system published in COM, you can get to the HWND handle any of our views that have published a unique name.

I believe you have access to the in-process SoApplication object from within a web panel page. No idea how though, but
say this is Application, then Application.HWnd( "MainWindow" ) will return the HWND handle of our main window.

Here is a vb script to play with the NamedControlTexts:


set app = CreateObject("SuperOffice.Application")
idx = 1
For Each name In app.NamedControlTexts
    WScript.Echo idx & ": " & name & " HWND=" & app.HWnd( name ) & " Visible:" & app.IsViewVisible( name )
    idx = idx + 1
Next

You can also get to the Height, Width, X and Y pos of these views.
God knows, perhaps you can make good use of this in your web page...

/conrad

Af: Conrad Weyns 7. maj 2019

RE: Popup Dialog in a Web Panel

Many thanks Conrad, I will investigate.

 

Af: Rich Hacker 8. maj 2019

RE: Popup Dialog in a Web Panel

Yes, building a dialog as you want in an onsite web installation is easily doable. The steepest learning curve is understanding the web client configuration file structures. After that, you must understand how a page (dialog) depends on things like carriers and datahandlers to load and interact with data. A good overview is here in the article, Web Client and Model-View-Controller.

The general architecture is explaned here.

The details that give a clear explaination of the config files is here.

The related articles:

Page Configuration

Using User Controls

About Data Handlers

There is also the video series: Customizing the Web Client: While these videos show an older version of the web client, the workflow and types are all exactly the same. 

Hope this helps!

 

Af: Tony Yates 8. maj 2019

RE: Popup Dialog in a Web Panel

Tony, as always many thanks for your input! Plenty to keep me busy here :)

 

Af: Rich Hacker 8. maj 2019