Versions Compared

Key

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

...

This URL will be resolved and used by the client if it is found in a form and offers the user a behavior similar to a dynamic list field.

The URL can be configured with the placeholders that are resolved by the client. Placeholders must be entered with brackets like {placeholder name}.

List of placeholders:

Placeholder

Description

situation

Possible resolved values are create, edit, and search depending on the situation the corresponding form is used.

objecttype

The technical name of the object type of the opened object (no value in the situation search).

objectid

The object Id of the opened object (no value in the situation search).

field:<field name>

The value of a qualified technical field name of the opened object (no value in the situation search).

clientlocale

Beginning with version 9.16 LTS, the 2 characters-long language code of the Application language the user has configured in the client settings.

schemalocale

Beginning with version 9.16 LTS, the 2 characters-long language code of the Definition language the user has configured in the client settings.

Including a Plug-in in the Client-Service

...

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.stringc1
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

You can find some plug-in examples in the tutorial section:

Auto-complete Plug-in Examples