Selectors
Generic selector
Champ générique sélecteur permettant de naviguer vers un écran sélecteur (sélecteur ou vue).
Classe : com.axemble.vdp.ui.core.document.fields.SelectorField
Stockage : dépend des keys des ViewModelItems de la vue du sélecteur.
Storage table: vdp_string_values or vdp_collection_values
Paramètre | Description |
---|---|
screen | String; Nom de l’écran : nommé dans Process “screen” ou “class” |
method | String; Méthode de l’écran |
multiple | Booléen; default false; sélecteur simple ou multiple. |
Resources selector
Champ sélecteur de ressources des réservoirs de données.
Classe : com.axemble.vdp.ui.core.document.fields.ResourceSelectorField
Stockage : IStorageResource, Collection<IStorageResource>
Paramètre | Description |
---|---|
view | String; Protocol URI de la vue de la table de réservoir à utiliser comme sélecteur. |
label | String; Colonne de la vue utilisée comme libellé de sélection. |
allowcreate | Booléen; default false; Permettre la création d’une nouvelle ressource directement. |
multiple | Booléen; default false; sélecteur simple ou multiple. |
Process document selector
Un champ dédié existe pour sélectionner des documents de processus.
Sélecteur multiple
L’objectif du sélecteur multiple de document processus est de permettre leur affichage sous forme de vue (liste, grille, liens).
Personnalisation
Pour mettre en place la personnalisation, il suffit d’ajouter le champ sélecteur multiple de documents dans un formulaire à l’aide de Studio et de se rendre sur la section Développement des propriétés du champ. Différents paramétrages peuvent être spécifiés dans la zone Eléments XML fils de configuration.
Format :
<custom>
<custom-column name="" label="" type="" zone="">
</custom>
Exemple
Modifier le mode d’affichage de la vue en mode grille :
<custom displayMode="table">
<custom-column name="sys_Title" displayLabel="true" label="LG_TITLE" type="STRING" zone="description" />
<custom-column name="sys_Reference" displayLabel="true" label="LG_REFERENCE" type="STRING" zone="description" />
<custom-column name="texte" displayLabel="true" type="STRING" zone="description" />
<custom-column name="sys_Creator.login" displayLabel="true" label="LG_USER" type="STRING" zone="description" />
</custom>
Field selector
The field selector is used for studio components as it has an option to create a field quickly:
It may be necessary to declare it when creating a new component. For example, for a simple text field:
<field name="property" label="XXX.label" description="XXX.description" ctrl="selector" screen="Property" method="select" mandatory="false" type="string,shortString" quick-create="Field.quickCreate" quick-create-type="string"/>
Attribute | Description |
---|---|
name | The name of the field in the form. |
label | The label of the field (translation key). |
description | The description of the field (translation key). |
ctrl | The graphical component (here it must be selector ). |
screen | The associated screen (here it must be Property ). |
method | The associated screen (here it must be select ). |
mandatory | True if the value is mandatory (for fields, a temporary field is generally possible so the value here is not mandatory). |
type | The type of the field that can be selected : only this type of field can be selected in the selector. Possible values (separated by a coma): string , shortstring , integer , long , float , double , bigdecimal , boolean , period , date , bytes , collection , externalElement , collectionExternalElements , map , collectionMap , collectionBlob . |
listType | Must be set to simple if the field is a list with single selection, or to multiple if the field is a list with multiple selections (then the type should be collection ). |
elementType | Must be specified for special elements: attachment , user , group , localization , organization , dynamicLocalizationsWrapper . If this attribute is set, the type attribute should not be used. |
objectReference | Since Process2025.1.0. Should be set to true if the field to browse is a reference to an object. |
quick-create | Should be set with Field.quickCreate for normal field, dynamicLocalizationsWrapper.quickCreate for multilingual field. |
quick-create-type | The type of field to create (should be the same as type or elementType , depending on which one is used, or may be a collection ). |
quick-create-elementType | If the quick-create-type is a collection , the quick-create-elementType is the type of the elements in the collection. |
quick-create-list | Should be set to true if the field to create must have an associated list (the list will be created in the catalog). |
quick-create-objectReference | Since Process2025.1.0. Should be set to true if the field to create is a reference to an object. |