Child pages
  • Upgrading to Servoy 7.x.x

Versions Compared

Key

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

...

Form Design
Deprecated API

...

Designtime API

...

  • Form: 
    • "extendsForm" has been renamed to "extends"
    • "rowBGColorCalculation" has been replaced by Row styling through CSS and the new onRender event for conditional styling
  • Portal 
    • "resizeble" has been renamed to "resizable"
    • "rowBGColorCalculation" has been replaced by Row styling through CSS and the new onRender event for conditional styling
  • TabPanel 
    • "onTabChange" has been renamed to "onChange"

...

Runtime API

...

  • 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^
    • .showFormInWindow(): replaced by application.createWindow('name',JSWindow.WINDOW).show('formName')^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 
  • UICONSTANTS.FULL_SCREEN: 
  • JSForm: See description of the Deprecated API > Designtime API
    • .rowBGColorCalculation
  • JSPortal: See description of the Deprecated API > Designtime API
    • .resizeble
    • .rowBGColorCalculation
  • JSTabPanel: See description of the Deprecated API > Designtime API
    • "onTabChange" replaced by "onChange"
  • DatabaseManager: .getFoundSetDataProviderAsArray()
  • ServoyException.INVALID_INPUT_FORMAT
  • plugins.file.getHomeDirectory > plugins.file.getHomefolder
  • plugins.file.getRemoteList > plugins.file.getRemoteFolderContents
  • plugins.http: The HTTP plugin was refactored to support all types of HTTP Requests and support more finegrained control over the requests. Instead of creating an HttpClient and referencing it by name, the HttpClient is now an object with it's own set of methods, for example methods to create all the different types of HttpRequests. Each XxxxRequest object has a .executeRequest() function that returns a Response object again with it's own methods.
    • .createHttpClient(): replaced by plugins.http.createNewHttpClient()
    • .deleteHttpClient(): no longer required
    • .getHttpClientCookie(): replaced by .getCookie() in HttpClient object
    • .getHttpClientCookies(): replaced by .getCookies() in HttpClient object
    • .getLastPageCharset(): replaced by .getCharset() in Response object returned by the .executeRequest() method on any of the XxxxRequest objects created by the .createXxxRequest() methods on the HttpClient object
    • .getPoster(): replaced by .createPostRequest() in HttpClient object
    • .put(): replaced by .createPutRequest() in HttpClient object
    • .setClientProxyUserNamePassword(): replaced by .setClientProxyCredentials() in HttpClient object
    • .setHttpClientCookie(): replaced by .setCookie() in HttpClient object
  • plugins.window.setToolBarVisible(): remaned to plugins.window.setToolBarAreaVisible() so the name matches what the function does
  • plugins.window > MenuBar/toolbar.validate(): no longer required
New Features