/ Forums / Advansys Formativ / Creating Solutions with Formativ / Interact with Portal with Form Open / Reply To: Interact with Portal with Form Open

Support 3

Formativ uses the Model dialog, meaning it does not release the input focus until it is closed. You can not switch back to the window that created the dialog box until the dialog box is closed. However, this does not prevent the user from switching to other windows or applications.

There is a work-around, you can use the modeless HTML dialog and call the Applet when required using the Formativ API which will allow you to set forus to the portal window.

You can use the sample code below to create the HTML dialog. If you want to pursue this approach, we will recommend to create the proto-type and make sure you can call your applet and perform tasks.

    ' Create a new instance of the internet explorer application.
    set iExp = CreateObject("InternetExplorer.Application")
    With iExp
      .Height = 600
      .Width = 700
      .ToolBar = FALSE
      .Visible = True
      .Navigate "c:tempmyform.htm"
    End With

    Set iExp = Nothing  

Advansys Support