Child pages
  • Upgrading to Servoy 7.x.x

Versions Compared

Key

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

...

(warning)  Do note that automated refactoring, Search for References or JavaScript Search might not be 100% complete if JavaScript is not properly annotated using JSDoc, due to which the JavaScript code cannot be fully analysed automatically. 

Deprecated API

Servoy 6 deprecates parts of the existing API, as it has become obsolete or has been replaced by better alternatives. This section lists the deprecated methods or properties with their replacement where applicable.

Designtime API

The list of deprecated properties in the Designtime API is limited. Except for the deprecation of the "rowBGColorCalculation" on Forms and Portals, the deprecation of the properties require no action on behalf of the developer, as Servoy Developer will automatically handle the changes.

...

Object

Deprecated method or property

Replacement

Comment

controller

.getContainerName()

controller.getWindow().getName()

 

Button
Label
Fields
Rectangle
TabPanel
SplitPane
Portal

.setBorder()
.setFont()
.getTitleText()
.setImageURL()

.border
.font
.titleText
.imageURL

Matching getters or setters added, allowing both getting and setting the value.
Not all mentioned properties are applicable to each mentioned type of object

RuntimeLabel

.getParameterValue()

N/A

Never worked properly

Date

.setYear()

.getFullYear()

This function is deprecated in the JavaScript specification

Application

.getStartupArguments()

onOpen event handler of the solution

Deeplink arguments are now passed to both the onOpen event handler of the Login and Main solution.
The .getStartupArgument() is therefor no longer required to get access to the startupArguments prior to login

 

.closeForm()

JSWindow.hide()

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

 

.getWindowHeight()

JSWindow.getHeight()

 

 

.getWindowWidth()

JSWindow.getWidth()

 

 

.getWindowX()

JSWindow.getX()

 

 

.getWindowY()

JSWindow.getY()

 

 

.setWindowLocation()

JSWindow.setLocation()

 

 

.setWindowSize()

JSWindow.setSize()

 

 

.showFormInDialog()

application.createWindow('name',JSWindow.DIALOG).show('formName')
application.createWindow('name',JSWindow.MODAL_DIALOG).show('formName')

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

 

.showFormInWindow()

application.createWindow('name',JSWindow.WINDOW).show('formName')

 

UICONSTANTS

.FULL_SCREEN

JSWindow.FULL_SCREEN

 

JSForm

.rowBGColorCalculation

CSS Row Styling & onRender event

 

JSPortal

.resizeble

.resizable

Fix typo

 

.rowBGColorCalculation

CSS Row Styling & onRender event

 

JSTabPanel

.onTabChange

.onChange

 

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="c91ba859db07c76b-c76bd3bc-4d86411a-aabaadc8-d57e1ec5c0e17c5fbc2ca43b"><ac:plain-text-body><![CDATA[

databaseManager

.getFoundSetDataProviderAsArray()

.convertToDataSet(['dataProviderId']).getColumnAsArray(1)

Duplicate functionality

]]></ac:plain-text-body></ac:structured-macro>

ServoyException

.INVALID_INPUT_FORMAT

N/A

never raised

plugins.file

.getHomeDirectory()

.getHomeFolder()

Match naming convention

 

.getRemoteList()

.getRemoteFolderContents()

Match naming convention

plugins.http

.createHttpClient()

.createNewHttpClient()

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.

 

.deleteHttpClient()

N/A

No longer required

 

.getHttpClientCookie()

.getCookie() on HttpClient object

 

 

.getHttpClientCookies()

.getCookies() on HttpClient object

 

 

.getLastPageCharset()

replaced by .getCharset() on Response object returned by the .executeRequest() method on any of the XxxxRequest objects created by the .createXxxRequest() methods on the HttpClient object

 

 

.getPoster()

.createPostRequest() on HttpClient object

 

 

.put()

.createPutRequest() on HttpClient object

 

 

.setClientProxyUserNamePassword()

.setClientProxyCredentials() on HttpClient object

 

 

.setHttpClientCookie()

.setCookie() on HttpClient object

 

plugins.window

setToolBarVisible()

.setToolBarAreaVisible()

Name now matches what the function does

MenuBar
Toolbar

.validate()

N/A

No longer required

...

Servoy 6 introduces many new features for designing solutions. This chapter will only highlight the new features and provide links to extended documentation.Servoy 6 also deprecates parts of the existing API, as it has become obsolete or has been replaced by better alternatives. The Deprecated API section of this chapter lists the deprecated methods or properties with their replacement where applicable.

New features

Windowing API

...