Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Version published after converting to the new editor


Excerpt

The AssignValueAction assigns a specific value to the field specified e.g. update copyright source with creators from Dublin Core. This requires the layer where the field is found to be assigned already, therefore combine with "AssignLayerAction" and/or "LayerAssignedCondition".

...

Specific Definitions

PropertyValue
kind

AssignValueAction

path

The path to the field which may be the LayerId or a real path e.g. for Fieldsets.

Check the documentation for accessing fields for details. 

fieldId

The ID of the field, the value should be inserted in.

Check the documentation for accessing fields for details

value

The value for the field, provided by value or variable. 

Code Block
titleText with translations
[
	{"title.en":"the title"},
	{"description.en":"$myStoreInVariable$"}
]


Code Block
titleGeo point
[
	{ "lat": 13, "lon": 37 },
	{ "lat": 13, "lon": 37 },
	{ "lat": 13, "lon": 37 }
]


Code Block
titleTagbox value variable
[
	{"_refId": "$mediaTypeCodeRefId$" }
]


Code Block
titleTagbox value id
[
	{"_refId":"01954083e671406c9c91903deb903ed2"}
],


replaceIndicates whether existing values should be replaced. Note: for multi fieldsets and relations, this setting controls, if the value is added to the already existing values or if the existing values shall be overwritten.


Code Block
"actions": [
	{
		"kind": "AssignLayerAction",
		"layerId": "BasicInformation",
		"defaultValues": [
			{
				"title.en": "$myVariable$"
			},
			{
				"description.en": "$myothervariable$"
			}
		]
	}
],

...