Versions Compared

Key

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

...

To check the new plugin, it must be placed in the directory described above and the client-service must be restarted.

Form script usage for dynamic list fields

The endpoints can be directly used for string properties which are classified as a dynamic list. The following form script gives an example:

Code Block
// fill a dynamic list field with catalog data
var greekalphabet = scope.model.stringforalphabet
scope.api.http.get('/dummy','/app/api/autocomplete').then(
	function(result) {
		greekalphabet.setList({
			entries: result.data.entries
		});
	},
	function(error) {
		scope.api.util.notifier.error('Failed to load greek alphabet',error+'');
	}
)

To produce the data used by the script, the following plug-in must be placed in the folder “autocomplete-plugins”.

View file
nameautocomplete-plugin-dummy.jar

The data looks like this:

...

Plug-in Examples

Read in the tutorial section about some plug-in examples:

Auto-complete Plug-in Examples