Child pages
  • Server Side Scripting

Versions Compared

Key

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

...

Starting with Servoy 8.3.1 inside the server side scripting file of a component/service you can call specific api using object "servoyApi".

hideForm api  is used to mark a form as not visible anymore immediately because cannot wait for client to mark it as hidden(for example in removeTab of a tabpanel). 

Code Block
languagejs
titleservoy API example
servoyApi.hideForm('myform')

copyObject is used to create a new javascript object from existing one. This is a shortcut for creating the object from scratch and copying all properties.

Code Block
languagejs
titleservoy API example
var tabCopy = servoyApi.copyObject($scope.model.tabs[0])

getViewFoundSet is used to creates a view (read-only) foundset from a query builder select (QBSelect) (available starting with Servoy 8.4.0)

Code Block
languagejs
titleservoy API example
var query = parentFoundset.getQuery();
var myViewFoundset = servoyApi.getViewFoundSet("myViewFoundset", query);

getQuerySelect  is getQuerySelect  is used to get select query for a dataSource (available starting with Servoy 2019.03)

...