Using File-based Dynamic Lists Instead of catalogs

Since catalog content changes rapidly, we use a dynamic list type so that no scheme updates are required.

Storing catalogs requires some client folder customization.

Catalogs are stored as .json files in the "lists" folder, which is created on the server in the "client" folder. In a default installation, the path is "C:\Program Files (x86)\OPTIMAL SYSTEMS\yuuvis\service-manager\data\webresource\resources\client".

Using a form script, we use the API to update the dynamic list content of the field, as seen in the following example.

Example for dynamic list
scope.api.http.get('/client/lists/accountingmethod.json', '/app').then(function(res){
	var entries = res.data.list;

	scope.model.strdynaccountno.setList({
		entries: entries
	});
}).catch(function(err){console.warn(err)});   // error handling for custom client development with use of proxy-tool (file is not available on the development system)


Example for JSON file
{
	"list": [
		{"value": "account1"},
		{"value": "account2"},
		{"value": "account3"}
	]
}