Child pages
  • Upgrading to Servoy 8.x.x

Versions Compared

Key

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

...

Object

Deprecated method or property

Replacement

Comment

globals

allmethods

solutionModel.getGlobalMethods("scopeName")

an exact replacement would be:
solutionModel.getGlobalMethods("scopeName").map(function (jsMethod) { return jsMethod.getName() } )

globals

allrelations

solutionModel.getRelations(null)

an exact replacement would be:
solutionModel.getRelations(null).map(function (jsRelation) { return jsRelation.name })

globals

allvariables

solutionModel.getGlobalVariables("scopeName")

an exact replacement would be:
solutionModel.getGlobalVariables("scopeName").map(function (jsVariable) { return jsVariable.name } )

forms

allnames

solutionModel.getForms()

an exact replacement would be:
solutionModel.getForms().map(function (jsForm) { return jsForm.name })

RuntimeForm

alldataproviders

foundset.alldataproviders

 

RuntimeForm

allnames

elements.allnames

 

RuntimeForm

allrelations

solutionModel.getRelations(dataSource) where dataSource is provided by solution model's JSForm.dataSource or controller.getDataSource()

an exact replacement would be: solutionModel.getRelations(controller.getDataSource()).map(function (jsRelation) { return jsRelation.name } )

RuntimeForm

allvariables

solutionModel - JSForm.getVariables(Boolean) or JSForm.getVariables()

an exact replacement would be:
'solutionModel.getForm(controller.getName()).getVariables().map(function (jsVariable) { return jsVariable.name })

ELEMENT_TYPES

LIST_BOX

LISTBOX

Alignment of names used

JSField

LIST_BOX

LISTBOX

Alignment of names used

ALIGNMENT

ACCORDION_PANEL

JSTabPanel.ACCORDION_PANEL

 

ALIGNMENT

SPLIT_HORIZONTAL

JSTabPanel.SPLIT_HORIZONTAL

 

ALIGNMENT

SPLIT_VERTICAL

JSTabPanel.SPLIT_VERTICAL

 

JSPart,
JSRelationItem,
JSTab

getDesignTimeProperty
putDesignTimeProperty,
removeDesignTimeProperty

 

Not relevant

databaseManager

hasNewRecords(JSRecord)

JSRecord.isNew()

 

databaseManager

hasRecordChanges(JSRecord)

JSRecord.hasChangedData()

 

databaseManager

revertEditedRecords(JSRecord)

JSRecord.revertChanges()

 

I18N

setI18NMessagesFilter

Use TableFilters instead

 

Unsupported features and workarounds

DBTreeView

Bean components are not supported in the new NG webclient.
In order to ease the porting of existing applications to the new NG client, Servoy 8 does include
a DBTreeView web component that tries to replicate the behavior of the old bean. In order to use that,
you should replace the old bean from you forms with this new web component. The main difference
between them, from a developer point-of-view is the missing of Binding scriptable. In the new bean,
the binding is set directly on the web component. Here is an example :

In Servoy 7:

var binding = elements.myDBTreeView.createBinding(dataSource);
binding.setTextDataprovider(myTextDataprovider);

In Servoy 8:

elements.setTextDataprovider(dataSource, myTextDataprovider);

NOTE: Not all the api functions of the old DBTreeView are implemented in the new we component, yet.