Child pages
  • Upgrading to Servoy 7.x.x

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • controller.getContainerName: replaced by controller.getWindow().getName()
  • Button/Fields/Portal: the .setBorder(), .setFont(), .getTitleText() and .setImageURL() have been replaced by .border, .font, .titleText and .imageURL properties, allowing both getting and setting the value.
    Note: not all mentioned properties are applicable to each mentioned type of object
  • Label: .getParameterValue(): no replacement, never worked properly
  • Date: .setYear(): This function is deprecated in the JavaScript specification. Use .getFullYear() instead
  • Application:
    • .getStartupArguments(): the deeplink arguments are now passed to both the onOpen event handler of the Login and Main solution. As such the .getStartupArgument() is no longer required to get access to the startupArguments prior to login
  • Application windowing API: Servoy 6 contains a complete new Windowing API. A window or dialog is now an instance of the JSWindow class to which a lot of the methods have been moved. New methods were added to the application and controller objects to interact with windows: 
    • .closeForm(): replaced by JSWindow.hide()
    • .getWindowHeight(): replaced by JSWindow.getHeight()
    • .getWindowWidth(): replaced by JSWindow.getwidth()
    • .getWindowX(): replaced by JSWindow.getX()
    • .getWindowY(): replaced by JSWindow.getY()
    • .setWindowLocation(): replaced by JSWindow.setLocation()
    • .setWindowSize(): replaced by JSWindow.setSize()
    • .showFormInDialog(): replaced by application.createWindow('name',JSWindow.DIALOG).show('formName') or application.createWindow('name',JSWindow.MODAL_DIALOG).show('formName')^1^1
    • .showFormInWindow(): replaced by application.createWindow('name',JSWindow.WINDOW).show('formName')^1^1
      ^1^ 1 The method application.createWindow(..) returns an object of type JSWindow, which has an Scripting API to control additional things like the title, resizability, initial bounds and whether or not to show a textToolbar 

...