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". Currently, there are only two api supported: hideForm(formName) and copyObject(object). hideForm

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
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);