Enhanced Security - Custom Login Form

Version: 6.0.3 - build 1223

When displaying a custom login form (enhanced security; solutionType set to ‘Login’), it is shown full-size in the default client window, the client menu bar is shown/active, and the client tool bar is shown/grayed out. I cannot imagine this is how it is supposed to look/work and suspect I have missed something. Any help would be appreciated.

I would like the login form to be displayed with the height and width settings as set in the form properties and not show the menu or tool bars.

Thanks!

I haven’t worked with version 6 yet, but I suppose you need to tell Servoy how you want to open/display your custom login form.

I think that you have to programmatically set the size of the window form, hide the client menu bar and the client tool bar. For example, the following can be used to hide the tool bar:

plugins.window.setToolbarAreaVisible() = false

There should be all possible configurations. Hope this help.

JC

I just built a login procedure of the type you are describing. The form itself was 300 by 400. This seems to work. K

function onLoad(event)
{
plugins.textxport.exportEnabled = false;
plugins.textxport.importEnabled = true;
plugins.excelxport.exportEnabled = false;
plugins.excelxport.importEnabled = false;
plugins.kioskmode.setMenuVisible(false)
plugins.kioskmode.setToolBarVisible(false)
application.showFormInDialog( forms.login, -1, -1, -1, -1, ‘login’, false, false, ‘’, true)
forms.login.elements.loginusername.requestFocus()
}

Thank you Kurt and Juan Carlos for your replies. My confusion came from the wiki statement:

…upon returning of the call to the authenticator solution, the main solution will be loaded.

I did not realize that the login window could be manipulated prior to the main solution loading.

For others who may run into the same problem, here is the code for Servoy 6:

    var oWindow = application.getWindow()
    
    oWindow.title = 'My Login Window'
    
    oWindow.setLocation( x, y )
    
    oWindow.setSize( 500, 280 )
    
    oWindow.showTextToolbar( false )
    
    oWindow.resizable = false
    
    var windowName = oWindow.getName()
    
    var oMenuBar = plugins.window.getMenuBar( windowName )
    
    oMenuBar.setVisible( false )