For the complete documentation index, see llms.txt. This page is also available as Markdown.

Deleting keys together with an application element

When, in the application editor, you delete a component, page, step, validator, service, or component item, Eximee Designer also removes that element's translation keys from the tab Translations, in all application languages. Therefore, the translation table no longer contains keys that nothing uses anymore.

A key used by another application element is not deleted. The editor notifies you about such keys with a message at the bottom of the screen.

Deleting an element does not require confirmation. If you delete an element by mistake, press Ctrl+Z: the element returns together with the deleted keys and their texts in all languages.


Operations that delete keys

Operation
Where you perform it

Deleting a component, including a section with content and a composite component

Menu in the upper-right corner of the selected component, option Delete

Deleting a page

Tab Steps, page menu, option Delete

Deleting a step together with its pages

Tab Steps, step menu, option Delete

Deleting a validator from a component

Window Validators, trash icon next to the validator

Replacing a validator with a validator of a different name

Window Validators, choosing another validator from the list

Deleting a context help item

Context help window, trash icon next to the item

Deleting a dynamic section title

Window Dynamic section titles, trash icon Delete title

Deleting dynamic labels of repetitive section buttons

Window Dynamic button labels, trash icon next to the item

Detaching a service from a component

Window External data source, trash icon next to the service name

Replacing a service with a service of a different name

Window External data source, choosing another service from the list

Keys are not deleted when:

  • you change the input parameters, condition, or mappings of the validator or service, but do not choose another validator or service,

  • you delete the key manually in the tab Translations. This operation works as described in the chapter Deleting a key.


Which keys belong to the deleted element

The element is deleted together with all its content: a component with the components placed in it, a page with components, a step with all its pages. Each existing translation key that satisfies at least one of the three rules below belongs to the deleted element.

The key starts with the element identifier

Keys created automatically when a component, page, or step is added have the form <identifier>.<attribute>, e.g. GesTextField1.label, GesTextField1.placeholderText or Page2.title. Keys that start with the identifier of the deleted element or any component in it, including the dot, are deleted.

Example: deleting component GesCombobox1 deletes key GesCombobox1.label, but does not delete key GesCombobox10.label.

The rule does not apply to component items (context help, dynamic section titles, dynamic button labels), validators, or services. Their keys do not contain the element identifier.

The key is indicated in the element attribute

A key indicated by the element in an attribute intended for a translation key is deleted. In the application's XML definition the name of such an attribute ends with Key, e.g. labelKey, titleKey or textKey. In the editor, these include:

The rule also includes manually attached keys that do not start with the element identifier.

Example: in the field Label (key) of the component GesCombobox1 the key amount.label. Deleting the component deletes the key amount.label, if no other element uses it.

The key is a validator or service message

Validators declare error message keys in their definition, and suggester-type services declare message keys. Deleted are:

  • error keys of validators from components you delete, and of the validator you delete from a component or replace with another,

  • message keys of services from components you delete, and of the service you detach or replace with another.

Script validator keys come from the version indicated by the validator in the application. For the “Current version” indicator, this is the current version. Messages are declared only by suggester-type services (Attaching a suggester), so detaching a different type of service does not delete any message key.

Example: suggester AddressSuggester declares a message with key address.notFound. After attaching it to a field, the key appears in the tab Translations. When you detach the service, and no other service in the application declares this key, the key address.notFound is deleted.


When a key remains

A key used by another element

The key remains when any value in the rest of the application equals it: the attribute of another component, page, or step, application metadata, or data model mapping. The editor lists such keys in a message that appears at the bottom of the screen for 10 seconds:

Example: components GesTextField2 and GesTextField3 have in the field Label (key) the same key wspolna.etykieta.

  1. Delete GesTextField2. The key wspolna.etykieta remains, and the editor shows a message with its name. GesTextField3 still displays the label.

  2. Delete GesTextField3. The key wspolna.etykieta is deleted, the message does not appear.

A key declared by another validator or service

An error key of a validator remains as long as there is a validator in the application that declares it: the same validator on another component or another validator. The key disappears together with the last such validator. Message keys of services work the same way. When replacing a validator or service, the keys declared by the replacement validator or service also remain.

The editor keeps such keys without a message: the same validator on multiple components is a normal situation and does not require author action.

Example: five application fields have the same PESEL number validator.

  1. Delete the validator from one field. The validator error keys remain, no message appears.

  2. Delete the validator from the remaining fields. After removing it from the last field, the error keys are deleted.

Validator and service definitions that remain in the application are checked only when the deleted element has validator or service message keys or manually attached keys. An element that has only keys beginning with its identifier loses them without this check.

Unavailable validator or service definition

  • When the definition of the validator or service you are deleting or replacing cannot be read, their message keys are not deleted.

  • When the definition of the validator or service that remains in the application cannot be read, keys that belong to the deleted element solely as validator or service messages are not deleted. Keys with the element identifier and keys indicated in attributes are deleted normally.


Composite component

Texts composite component have keys starting with the component identifier, e.g. GesComplexComponent1.GesText1.text, so they disappear together with it. This also applies to texts changed in the application.

Keys from the composite component artifact that have not been changed in the application are not stored in the application. After deleting the component and reopening the application, they do not appear in the tab Translations.


Undo and redo

  • Press Ctrl+Z, to undo the deletion. One undo restores the element together with the deleted keys and their texts in all languages.

  • Press Ctrl+Y, to redo the deletion. Redo deletes the same keys as the first deletion.

  • The message about remaining keys does not appear when undoing or redoing.


Examples

Application state
Operation
Deleted keys
Keys retained with a message

GesCombobox1 with keys GesCombobox1.* and manually attached key amount.label

Deletion GesCombobox1

GesCombobox1.*, amount.label

—

Section GesSection2 has attribute ariaLabelKey equal to GesText2.text, label GesText2 is in this section

Deletion GesText2

—

GesText2.text

As above

Deletion GesSection2

Section keys and GesText2.text

—

Five fields with the same validator

Deleting the validator from one field

— (validator keys remain without a message)

—

The component key occurs only in the visibility condition of another component

Deleting the component

This key

—

Step Step2 with pages Page2 and Page3, each with one field

Deleting the step Step2

Step2.*, Page2.*, Page3.* and the keys of both fields

—


Last updated

Was this helpful?