Child pages
  • Specification (.spec file)

Versions Compared

Key

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

...

Since Servoy 8.2 you must also define these functions in a special Api category of the spec, serverApiinternalApi:

Code Block
languagejs
titleserverside script
"serverApiinternalApi":
	{
		"mycallback " :{
			"returns": "string",
	         "parameters":[
	            				{
						            "name":"name",
						            "type":"string"
					            },
					            {
						            "name":"type",
						            "type":"string"
						        }
	            			 ]
		}
	}

...

Code Block
languagejs
titleclientside service script
$services.callServerSideApi("myservicename","mycallback",["test",1]).then(function(retValue) {
   console.log(retValue);    
 });

Internal API can also be used for API that is defined on client, but can only be called from server side scripting. This API shouldn't be called from Servoy Developer scripting and won't show in code completion.

Palette categorisation

Web Components are organised in component packages. The palette of the WYSIWYG editor shows components grouped by package name. To further group components from the same package, the property 'categoryName' can be used. 'categoryName' is a property that each component can specify in its spec file. The palette then displays components belonging to the same category grouped under the specified 'categoryName'.

...