Powrót do spisu komponentów: Plus Attachments

 

Kategoria: Załącznik

Umiejscowienie akcji: Tabela, Przycisk tabeli

Dostępna od wersji: 1.0.0

Akcja służy do usunięcia informacji o załączniku z tabelki oraz odpięciu tego załącznika z aktualnego procesu. Załącznik może również zostać usunięty z archiwum.

Akcja dodaje przycisk do tabelki podczas wczytywania formularza. Po kliknięciu w przycisk i niezaznaczeniu żadnego wiersza w tabeli, na górze strony zostanie wyświetlony komunikat o treści zdefiniowanej w parametrze "Wiadomość o braku zaznaczenia:". Po wyborze danego wiersza i kliknięciu w przycisk, wyświetlone zostanie okienko z pytaniem potwierdzającym zamiar usunięcia załącznika (TAK/NIE). Po akceptacji zostanie odczytany nr id z danego wiersza i wybranej kolumny (ustawionej w parametrze "Kolumna dla "Id pliku""). Następnie zostanie usunięty wskazany wiersz w tabeli oraz odłączony dokument o podanym id z aktualnego procesu. UWAGA, gdy dokument o podanym id nie istnieje w procesie, wybrany wiersz zostanie usunięty.

Nazwa parametruOd wersjiOpisTyp parametruWartość domyślnaRodzaj polaUwagi i ograniczenia
Nazwa przycisku*1.0.0Nazwa jaka ma zostać wyświetlona na przycisku.TekstUsuńPole edytowalne

Parametr jest ukryty w przypadku podpięcia akcji pod przycisk tabeli.

Nazwa ikony przycisku1.0.0Nazwa ikony która ma zostać wyświetlona na dodanym przycisku. Spis: Ikon (automatycznie do nazwy doklejane jest słowo " silk- ").TekstdeletePole edytowalne

Parametr jest ukryty w przypadku podpięcia akcji pod przycisk tabeli.

Kolumna dla "Id pliku"*1.0.0Zmienna w tabeli która będzie przechowywać id pliku (unikalny identyfikator dokumentu w systemie) dodanych załączników.Zmienna Pole edytowalne 
Wiadomość o braku zaznaczenia*1.0.0Treść komunikatu , który ma się wyświetlić w przypadku braku wyboru wiersza, po wciśnięciu przycisku.TekstProszę najpierw wybrać linię w tabeli.Pole edytowalne 
Usuń z archiwum*1.0.23Określa, czy dokument odpinany z procesu powinien zostać także usunięty z archiwum.LogicznyNIEPole edytowalne 
Warunek dla wiersza1.0.23Warunek, jaki musi zostać spełniony, by akcja została wykonana w danym wierszu. Za pomocą zmiennej kontekstowej Indeks wiersza można odnieść się do poszczególnych wartości danego wiersza.Funkcja logiczna Pole edytowalne 

Parametr* -pole wymagane

Nazwa zmiennej kontekstowejOd wersjiOpisTyp parametru
Indeks wiersza1.0.23Przechowuje informacje o indeksie obecnie ustawianego wiersza. Można ją wykorzystać w parametrze "Warunek dla wiersza", by uzyskać wartości z wybranego wiersza.Całkowita

Umieszczenie akcji na tabeli

Umieszczenie akcji pod przyciskiem tabeli

 1.0.0

  • Dodanie komponentu

1.0.13

  • Dodanie możliwości podpięcia akcji pod przycisk tabeli

1.0.23

  • Dodanie nowego parametru Usuń z archiwum
  • Dodanie nowego parametru Warunek dla wiersza

1.0.29

  • Poprawienie wykonywania warunkowego

 

Archiwalne

Return to components list: Plus Attachments

 

Category: Table

Action location: Table, Table button

Available from version: 1.0.0

The action is used to remove information about the attachment from the table and to detach this attachment from the current process. The attachment can also be deleted from the archive depending on the configuration of the parameters. The action adds a button to the table while the form is being loaded. After clicking the button and not selecting any row in the table, a message will be displayed at the top of the page with the content defined in the "No selection message:" parameter. After selecting a given line and clicking on the button, a window will be displayed with a question confirming the intention to remove the attachment (YES / NO). After acceptance, the id number will be read from the given row and selected column (set in the "Column for "File Id" " parameter). Then the indicated row in the table will be deleted and the document with the given id will be detached from the current process. NOTE, when the document with the given id does not exist in the process, the selected line will be deleted.

Parameter name

From version

Description

Paremeter type

Default value

Field type

Comments and restrictions

Button name*

1.0.1

The name to be displayed on the button.

Text

 

Editable field

The parameter is hidden when an action is attached to a table button.
Icon name1.0.1

The name of the icon to be displayed on the added button. List: Icons (the word "silk-" is automatically attached to the name).

Text Editable field
The parameter is hidden when an action is attached to a table button.
Column for "file id"*1.0.1Variable in the table that will store the file id (unique document identifier in the system) of added attachments.Variable Editable field 
No selection message*1.0.1The content of the message that is to be displayed in the case of no line selection, after pressing the button.Text Editable field 
Delete from archive*1.0.23Determines whether the document being detached from the process should also be removed from the archive.BooleanNOEditable field 
Condition for row
1.0.23The condition that must be met for an action to be performed on a row. The context variable Row Index can be used to refer to the individual values of a row.Logical Function  Editable field 

Parameter*- mandatory field 

Context variable nameFrom versionDescriptionParameter type
Row index
1.0.23Stores information about the index of the row currently being accessed. It can be used in the 'Condition for row' parameter to obtain values from the row.Integer

Table configuration

Table button configuration

 1.0.0

  • Adding a component

1.0.13

  • Enable to add action to the table button

1.0.23

  • Added new parameter Delete from archive
  • Added new parameter Condition for row