Polish | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Serwis VariableSetService pozwala zarządzać tabelami dynamicznymi oraz zmiennymi znajdującymi się w tych tabelach. Posiada następujące funkcje:
|
English | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Serwis VariableSetService pozwala zarządzać tabelami dynamicznymi oraz zmiennymi znajdującymi się w tych tabelach. Posiada następujące funkcje: get - pobiera komponent tabeli dynamicznej.Parametry funkcji: | Nazwa | Typ | Wartość domyślna | OpisTyp | Opis
Name | Typee | Default value | Description |
---|---|---|---|
variableSetIdParam | String/Number | null |
Dynamic table id /Dynamic table number on the form according to the process map (the first table has the number 0) |
- Function result:
Typee | Description |
---|---|
Suncode.form.view.gadget.variableset.VariableSet |
Parametry funkcji:
Wartość domyślna
Dynamic table component or undefined if it was not found |
- Function parameters:
- getAll- returns all components of dynamic tables.
Name | Typee | Default value | Description |
---|---|---|---|
getEditable | Boolean | false |
Information whether to return only editable dynamic tables |
- Function result:
Wartość domyślna
Typee | Description |
---|---|
Suncode.form.view.gadget.variableset.VariableSet[] |
An array of dynamic table components or an empty array if no table was found |
- hide - hides dynamic tables
- Function parameters:
Name | Typee | Default value | Description |
---|---|---|---|
variables | String/Number/String[],Number[] | null |
ID / table of dynamic table identifiers or number (index) / array of dynamic table numbers. The number specifies the index of the dynamic table on the form, for the number 0 it is the first table of the task, etc. By giving the table, you can mix Typees, i.e. you can specify an array: [ 'table_id_1', 3 ], |
which will hide the table with id: 'table_id_ |
1' |
and a table, which is the fourth in order on the form. |
- Function result: null
- show - pokazuje tabele dynamiczne
Parametry funkcjishows dynamic tables
- Function parameters: Nazwa
Name |
---|
Typee |
---|
Default value |
---|
Description | ||
---|---|---|
variables | String/Number/String[],Number[] | null |
ID / table of dynamic table identifiers or number (index) / array of dynamic table numbers. The number specifies the index of the dynamic table on the form, for the number 0 it is the first table of the task, etc. By giving the table, you can mix Typees, i.e. you can specify an array: [ 'table_id_1', 3 ], |
which will show the table with id: 'table_id_ |
1' |
addRow - dodaje pusty rekord do tabeli dynamicznej. Możliwe jest rozpoczęcie edycji pierwszej edytowalnej komórki nowo dodanego rekordu.
Parametry funkcji:
Wartość domyślna
and a table, which is the fourth in order on the form. |
- Function result: null
- addRow- adds an empty record to the dynamic table. It is possible to start editing the first editable cell of the newly added record.
- Function parameters:
Name | Typee | Default value | Description |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component | ||
startEditing | Boolean | false |
Informs whether to start to edit the first editable cell of the newly added record | ||
records | Object/Object[] | {} |
Value in new row with character { id_ |
column1 : " |
value_1", id_ |
column2 : " |
value_2" }. |
insertRow - wstawia pusty rekord do tabeli dynamicznej na podanej pozycji. Możliwe jest rozpoczęcie edycji pierwszej edytowalnej komórki nowo dodanego rekordu.
Parametry funkcji:
Wartość domyślna
It is also possible to provide a records table in the above form, which will add several rows to the dynamic table. |
- Function result: null
- insertRow - inserts an empty record into the dynamic table at the given position. It is possible to start editing the first editable cell of the newly added record.
- Function parameters:
Name | Typee | Default value | Description |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component | |
index | Number |
null | The number of the row from which the new rows will be inserted. The number must be greater than or equal to 0. | |
startEditing | Boolean | false |
Informs whether to start to edit the first editable cell of the newly inserted record | ||
records | Object/Object[] | {} |
Value in the inserted row with character { id_ |
column1 : " |
value_1", id_ |
column2 : " |
value_2" }. |
getSelected - pobiera aktualnie zaznaczony rekord w tabeli dynamicznej, zwraca null, gdy żaden rekord nie jest aktualnie zaznaczony.
Parametry funkcji:
Wartość domyślna
It is also possible to provide a table of records in the above form, which will add several rows to the dynamic table. |
- Function result: null
- getSelected- gets the currently selected record in the dynamic table, returns null when no record is currently selected.
- Function parameters:
Name | Typee | Default value | Description |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component |
- Function result:Typ
Typee |
---|
Parametry funkcji:
Wartość domyślna
Description |
---|
Ext.data.Model |
Currently selected record |
- deleteSelected- deletes all selected records in the dynamic table.
- Function parameters:
Name | Typee | Default value | Description |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component |
- Function result: null
- Function parameters:
- copySelected - kopiuje wszystkie zaznaczone rekordy w tabeli dynamicznej.
Parametry funkcji: copies all selected records in the dynamic table.Nazwa Typ Wartość domyślna
Opis
Wartość domyślna
Name | Typee | Default value | Description |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component |
- Function result: null
- getRowIndex- returns the row number for the record.
- Function parameters:
Name | Typee | Default value | Description |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component | ||
record | Ext.data.Model | null |
Dynamic table record object |
- Rezultat funkcjiFunction result:Typ
Typee |
---|
Description |
---|
Integer |
Row number |
- getColumnIndex - zwraca numer kolumny dla danej zmiennej formularza.
Parametry funkcjireturns the column number for the given form variable.
- Function parameters: Nazwa
Name |
---|
Typee |
---|
Default value |
---|
Description | ||
---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Typ | Opis |
---|---|
Integer | Numer kolumny |
Dynamic table component | ||
variableId | String | null |
The id of the form variable (process variable identifier) in the dynamic table |
- Function result:
Type | Description |
---|---|
Integer | Column number |
- getValue- returns the value of a form variable in a specific cell in the dynamic table or a string of values from all cells in a given column (from 3.1.8).
- Parametry funkcjiFunction parameters: Nazwa
Name |
---|
Type |
---|
Default value |
---|
Description | ||
---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component | ||
rowIndex | Integer | null |
Rezultat funkcji:
Typ | Opis |
---|---|
Object | Wartość zmiennej w komórce |
The row number of the record (the first row has the number 0). If you specify null, a string of values is returned from all cells in a given column. The next values are separated by a semicolon (from 3.1.8) | ||
variableId | String | null |
The id of the form variable (process variable identifier) in the dynamic table |
- Function result:
Type | Description |
---|---|
Object | Variable value in the cell |
- setValue -sets the value of a form variable in a specific cell in a dynamic table or a string of values in all cells in a given column (if the value string is longer than the number of records in the dynamic table, new records are added with empty values for other cells if the value string is shorter , than the number of records in the dynamic table, in the other records in a given column an empty value is set) (from 3.1.8).
- Parametry funkcjiFunction parameters: Nazwa
Name |
---|
Type |
---|
Default value |
---|
Description | ||
---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component | ||
rowIndex | Integer | null |
The row number of the record (the first row has the number 0). If you specify null, a string of values is set in all cells in a given column. The next values should be separated by a semicolon (from 3.1.8) | ||
variableId | String | null |
Wartość domyślna
The identifier of the form variable (process variable identifier) in the dynamic table | ||
value | Object | null |
save - zapisuje rekordy tabeli dynamicznej do kontekstu zadania.
The value of the form variable |
- Function result:null
- Function parameters:
- save -writes dynamic table records to the task context.
Name | Type | Default value | Description |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
markErrorCell - zaznacza komórkę w tabeli dynamicznej jako błędna (czerwone tło).
Parametry funkcji:
Wartość domyślna
Dynamic table component |
- Function parameters:
- Function result:null
- markErrorCell - selects the cell in the dynamic table as invalid (red background).
Name | Type | Default value | Description |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component | ||
rowIndex | Integer | null |
unmarkErrorCell - odznacza komórkę w tabeli dynamicznej jako błędną (usuwa czerwone tło).
Parametry funkcji:
Wartość domyślna
The row number of the record (the first row has the number 0) | ||
variableId | String | null |
The id of the form variable (process variable identifier) in the dynamic table |
- Function result:null
- Function parameters:
- unmarkErrorCell- unmarks the cell in the dynamic table as invalid (removes the red background).
Name | Type | Default value | Description |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component | ||
rowIndex | Integer | null |
Rezultat funkcji: brak
getVariableSetData - zwraca wszystkie zmienne formularza we wszystkich rekordach tabeli dynamicznej w formie
The row number of the record (the first row has the number 0) | ||
variableId | String | null |
The id of the form variable (process variable identifier) in the dynamic table |
- Function result:null
- getVariableSetData - returns all form variables in all records in the dynamic table in the form of JSON.
- Parametry funkcjiFunction parameters: Nazwa
Name |
---|
Type |
---|
Default value |
---|
Description | ||
---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component |
- Rezultat funkcjiFunction result:Typ
Type |
---|
Description |
---|
String |
Table contents in the form of JSON |
getRowsCount - zwraca ilość wierszy w tabeli dynamicznej.
Parametry funkcjigetRowsCount - returns the number of rows in the dynamic table.- Function parameters: Nazwa
Name |
---|
Type |
---|
Default value |
---|
Description | ||
---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component |
- Function result:Typ
Type |
---|
Wartość domyślna
Description |
---|
Integer |
getColumnSum - zwraca sumę wartości z danej kolumny.
The number of rows in the dynamic table |
- getColumnSum - returns the sum of values from a given column.
- Function parameters:
Name | Type | Default value | Description |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component | ||
variableId | String | null |
Typ | Opis |
---|---|
Integer/String | Sumę wartości z danej kolumny (typ String występuje, gdy suma została wykonana na kolumnie, która zawiera wartości tekstowe - rezultatem jest ciąg znaków) |
setTitle - ustawia tytuł.
Parametry funkcji:Wartość domyślna
Process variable that identifies the column in the dynamic table | ||
grouped | Boolean | false |
(ma znaczenie tylko, gdy tabela dynamiczna ma aktywną opcję grupowania)
It informs whether to return the result in the form of an object containing the sum from individual groups (only valid if the dynamic table has active the grouping option) |
- Function result:
Type | Description |
---|---|
Integer/String | The sum of values from a given column (Type String occurs when the sum has been made on a column that contains text values - the result is a string of characters) |
- setTitle- sets the title.
- Function parameters:
Name | Type | Default value | Description |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component | ||
title | String | null |
Title ( |
Rezultat funkcji: brak
removeBottomToolbarButtons - usuwa wszystkie przyciski z dolnej belki oraz ukrywa ją. Dodawanie rekordów za pomocą klawiatury jest możliwe tylko w przypadku, gdy przycisk dodawania, wstawiania lub kopiowania jest dostępny, widoczny i niezablokowany. Usuwanie rekordów za pomocą klawiatury jest możliwe tylko w przypadku, gdy przycisk usuwania jest dostępny, widoczny i niezablokowany.
Parametry funkcji:Wartość domyślna
HTML tags are possible) |
- Function result:null
- removeBottomToolbarButtons - removes all buttons from the bottom bar and hides it. Adding records using the keyboard is only possible if the add, insert or copy button is available, visible and unblocked. Deleting records using the keyboard is only possible if the delete button is available, visible and unblocked.
- Function parameters:
Wartość domyślna
Name | Type | Default value | Description |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Rezultat funkcji:brak
removeBottomToolbarButton - usuwa określony przycisk z dolnej belki oraz ukrywa ją, gdy przycisk był ostatnim dostępnym na belce. Dodawanie rekordów za pomocą klawiatury jest możliwe tylko w przypadku, gdy przycisk dodawania, wstawiania lub kopiowania jest dostępny, widoczny i niezablokowany. Usuwanie rekordów za pomocą klawiatury jest możliwe tylko w przypadku, gdy przycisk usuwania jest dostępny, widoczny i niezablokowany.
Dynamic table component |
- Function result:null
- removeBottomToolbarButton - removes a specific button from the bottom bar and hides it when the button was last available on the bar. Adding records using the keyboard is only possible if the add, insert or copy button is available, visible and unblocked. Deleting records using the keyboard is only possible if the delete button is available, visible and unblocked.
- Function parameters:
Name | Type | Default value | Description |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component | ||
itemId | String | null |
The id of the button on the bar. Expected values are: |
- row adding button |
insert - row insert button |
delete – row delete button |
- dowolne id, będące id przycisku DT_BUTTON podanego w mapie
Rezultat funkcji:brak
disableBottomToolbarButtons - blokuje wszystkie przyciski z dolnej belki. Dodawanie rekordów za pomocą klawiatury jest możliwe tylko w przypadku, gdy przycisk dodawania, wstawiania lub kopiowania jest dostępny, widoczny i niezablokowany. Usuwanie rekordów za pomocą klawiatury jest możliwe tylko w przypadku, gdy przycisk usuwania jest dostępny, widoczny i niezablokowany.
Parametry funkcji:Wartość domyślna
copy – row copy button |
- Function result:null
- disableBottomToolbarButtons - blocks all buttons from the bottom bar. Adding records using the keyboard is only possible if the add, insert or copy button is available, visible and unblocked. Deleting records using the keyboard is only possible if the delete button is available, visible and unblocked.
- Function parameters:
Name | Type | Default value | Description |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component |
- Function result:null
Nazwa Typ Opisblocks a specific button from the bottom bar. Adding records using the keyboard is only possible if the add, insert or copy button is available, visible and unblocked. Deleting records using the keyboard is only possible if the delete button is available, visible and unblocked.Wartość domyślna
- Function parameters:
Name | Type | Default value | Description |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component | ||
itemId | String | null |
The id of the button on the bar. Expected values are: |
- row adding button |
insert - row insert button |
delete – row delete button |
- dowolne id, będące id przycisku DT_BUTTON podanego w mapie
Rezultat funkcji:brak
enableBottomToolbarButtons - aktywuje wszystkie przyciski z dolnej belki. Dodawanie rekordów za pomocą klawiatury jest możliwe tylko w przypadku, gdy przycisk dodawania, wstawiania lub kopiowania jest dostępny, widoczny i niezablokowany. Usuwanie rekordów za pomocą klawiatury jest możliwe tylko w przypadku, gdy przycisk usuwania jest dostępny, widoczny i niezablokowany.
Parametry funkcji:Wartość domyślna
copy – row copy button |
- Function result:null
- enableBottomToolbarButtons - activates all buttons from the bottom bar. Adding records using the keyboard is only possible if the add, insert or copy button is available, visible and unblocked. Deleting records using the keyboard is only possible if the delete button is available, visible and unblocked.
- Function parameters:
Name | Type | Default value | Description |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component |
- Function result:null
Nazwa Typ Opisactivates the specified button from the bottom bar. Adding records using the keyboard is only possible if the add, insert or copy button is available, visible and unblocked. Deleting records using the keyboard is only possible if the delete button is available, visible and unblocked.Wartość domyślna
- Function parameters:
Name | Type | Default value | Description |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component | ||
itemId | String | null |
The id of the button on the bar. Expected values are: |
- row adding button |
insert - row insert button |
delete – row delete button |
- dowolne id, będące id przycisku DT_BUTTON podanego w mapieRezultat funkcji:brak
copy – row copy button |
- Function result:null
- addBottomToolbarButton - dodaje przycisk do dolnej belki.Parametry funkcjiadds a button to the bottom bar.
- Function parameters: Nazwa
Name |
---|
Type |
---|
Default value |
---|
Description | ||
---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component | ||
button | Object/Ext.button.Button | null |
Button configuration object (provided for creating Ext.button.Button) |
- Function result:null
- insertBottomToolbarButton - dodaje przycisk do dolnej belki na określonej pozycji.Parametry funkcjiadds a button to the bottom bar at a specific position.
- Function parameters: Nazwa
Name |
---|
Type |
---|
Default value |
---|
Description | ||
---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component | ||
button | Object/Ext.button.Button | null |
Button configuration object (provided for creating Ext.button.Button) | ||
index | Integer | null |
The position to which the button is added |
- Function result:null
- getRecordsByCriteria - wyszukuje rekordy w tabeli dynamicznej na podstawie podanych kryteriów (wartości w kolumnach, dokładność co do wartości i typu).Parametry funkcji:
Nazwa Typ Opissearches records in the dynamic table based on given criteria (values in columns, accuracy in value and Typeu).Wartość domyślna
- Function parameters:
Name | Type | Default value | Description |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component | ||
criteria | Object[] | [] |
An array of criteria objects. The criterion must contain the following properties: |
column id (process variable) |
expected value |
- Function result:Typ
Type |
Description |
Ext.data.Model[] |
Records found |
- deleteRecordsByCriteria - usuwa rekordy z tabeli dynamicznej na podstawie podanych kryteriów z dokładnością do typu (wartości w kolumnach, dokładność co do wartości i typu).Parametry funkcji:
Nazwa Typ Opisremoves records from the dynamic table based on given criteria with accuracy to Typeu (values in columns, accuracy in value and Typeu).Wartość domyślna
- Function parameters:
Name | Type | Default value | Description |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component | ||
criteria | Object[] | [] |
An array of criteria objects. The criterion must contain the following properties: |
column id (process variable) |
expected value |
- Function result:Typ
Type |
---|
Description |
---|
Integer |
Number of deleted records |
- deleteRecords (od from 3.1.8) - usuwa określone rekordy z tabeli dynamicznej.Parametry funkcjideletes specific records from the dynamic table.
- Function parameters: Nazwa
Name |
---|
Type |
---|
Default value |
---|
Description | ||
---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component | ||
records | Ext.data.Model[] | null |
Record table to delete |
- Function result:null
- Function parameters: Nazwa
Name |
---|
Type |
---|
Default value |
---|
Description | ||
---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component | ||
silent | Boolean | false |
Informs that during delation bulkremove actions and clear for storage have to be called. |
- Function result:null
- showColumn - pokazuje kolumnę w tabeli dynamicznej.Parametry funkcjishows the column in the dynamic table.
- Function parameters: Nazwa
Name |
---|
Type |
---|
Default value |
---|
Description | ||
---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component | ||
variableId | String | null |
Process variable that identifies the column in the dynamic table |
- Function result:null
- hideColumn - ukrywa kolumnę w tabeli dynamicznej.Parametry funkcjihides column in the dynamic table.
- Function parameters: Nazwa
Name |
---|
Type |
---|
Default value |
---|
Description | ||
---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component | ||
variableId | String | null |
Process variable that identifies the column in the dynamic table |
- Function result:null
- getColumnName - pobiera nazwę kolumny w tabeli dynamicznej z uwzględnieniem tłumaczenia (widoczną w nagłówku).
Parametry funkcji:Nazwa Typ OpisgetColumnName- gets the name of the column in the dynamic table including the translation (visible in the header).Wartość domyślna
- Function parameters:
Name | Type | Default value | Description |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Typ | Opis |
---|---|
String | Nazwa kolumny w tabeli dynamicznej lub null, jeżeli kolumna o podanym identyfikatorze nie istnieje w tabeli |
Parametry funkcji:
Wartość domyślna
Dynamic table component | ||
variableId | String | null |
Process variable that identifies the column in the dynamic table |
- Function result:
Type | Description |
---|---|
String | Name of the column in the dynamic table or null if the column with the given id does not exist in the table |
- setColumnName- sets the column name in the dynamic table (visible in the header), saves information about the Description and maturity of variable.
- Function parameters:
Name | Type | Default value | Description |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component | ||
variableId | String | null |
Wartość domyślna
Process variable that identifies the column in the dynamic table | ||
name | String | null |
Rezultat funkcji: brak
Column name |
- Function result:null
- addTool- adds a tool button to the dynamic table header.
- Function parameters:
Name | Type | Default value | Description |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component | ||
tool | Object/Ext.panel.Tool | null |
Tool configuration object (provided for creating Ext.panel.Tool) |
Rezultat funkcji: brak
Parametry funkcji:
Wartość domyślna
- Function result:null
- getTitle- returns the title of the dynamic table without HTML tags.
- Function parameters:
Name | Type | Default value | Description |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component |
- Function result:Typ
Type |
---|
Wartość domyślna
Description |
---|
String |
The title of the dynamic table without HTML tags |
- getInfo- returns information about the dynamic table.
- Function parameters:
Name | Type | Default value | Description |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component |
Typ Opis Object Obiekt zawierający informacje o tabeli dynamicznej. Obiekt posiada następujące właściwościFunction result:
Type | Description |
---|---|
Object | An object containing information about a dynamic table. The object has the following properties: - id ( |
Type String)
|
Dynamic table id - originalName( |
Type String) |
The original title of the dynamic table (propertyDT_TABLE_NAME |
from configuration) - title ( |
Type String)
|
The title of the dynamic table without HTML tags - columns ( |
Type Array)
|
Information table about individual columns. Each element is Typeu Object and contains the following properties: - id ( |
Type String)
|
The id of the process variable - name ( |
Type String)
|
Name of the dynamic table column (Name of the process variable) including the translation (Name visible in the header) - |
editable ( |
Type Boolean)
|
Informs whether the column is editable - hidden ( |
Type Boolean)
|
Informs whether the column is hidden |
Nazwa Typ Wartość domyślna Opis- allows to add any function that renders the value of a cell in the dynamic table. You can register any number of renderers that will be called according to the order in which they were added.- Function parameters:
Name | Type | Default value | Description |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component | ||
renderer | Function | null |
Function that renders the value of column data. It accepts the following parameters: - value: |
cell value (not formatted) - data: |
object of the entire record (row) |
{ "variable_id": " |
value", |
" |
variable_ |
id2": " |
value2" |
} - column: |
- metaData: obiekt zawierający informacje o wierszu
ID of the currently rendered column (variable id) - metaData: object containing information about row { row: // |
row |
index (readonly) |
cell: // |
column |
index (readonly) |
style: // |
given |
element |
style TD |
cls: // |
given |
element class css |
TD |
|
// 3.1.7+ |
encode: // |
whether |
to |
encode characters html ( |
by default true) |
} |
|
metaData.encode |
Funkcja może zwrócić wartość, która zostanie wpisana do komórki (o ile inne funkcje renderujące wywołane później nie zmienią tej wartości.
Przykład:
parameter can be used if you want to insert html tags in your cell. In this case, we must take care of encoding the value entered by the user.
The function can return a value that will be entered into the cell (unless other rendering functions called later will change this value. Example: // Renderer registration var vss = ServiceFactory.getVariableSetService(); |
|
vss.addRenderer(vss.get(0), function(value, data, column, metaData){ |
|
// |
give |
style |
based |
on |
value |
variable1 |
metaData.style = 'color: ' + value; // |
or data[column] |
|
// |
give |
class |
based |
on |
value |
variable2 |
metaData.cls = data[' |
variable2']; |
|
// |
giving |
a |
new value return 'rendered:' + value; |
}, [' |
variable1']); // renderer |
for |
the |
given column | |
columns | String[] |
All table columns | An array of variable identifiers (columns) for which this rendering function is to be valid. If you omit this parameter, the function will apply to all variables. |
- Function result:null
- removeRenderers (od from 3.1.6) - usuwa wszystkie funkcje renderujące z podanej zmiennej tabelki dynamicznejParametry funkcji:removes all rendering functions from the given dynamic table variable
- Function parameters:
Nazwa
Name |
---|
Type |
---|
Default value |
---|
Description | ||
---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
selectAll (od
Dynamic table component | |
columns | String[] |
All table columns | An array of variable identifiers (columns) from which to delete all rendering functions. |
- Function result:null
- selectAll (from 3.1.8) - zaznacza wszystkie rekordy z tabeli dynamicznej (uwaga: wiąże się to z dodaniem do każdego rekordu określonej klasy css, rekordy nie są zwracane przez marks all records from the dynamic table (note: thisinvolves adding a specific css class to each record, records are not returned byselModel.getSelection()).
- Parametry funkcjiFunction parameters: Nazwa
Name |
---|
Type |
---|
Default value |
---|
Description | ||
---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component |
- Function result:null
- deselectAll (od from 3.1.8) - odznacza wszystkie rekordy z tabeli dynamicznej (uwaga: wiąże się to z usunięciem z każdego rekordu określonej klasy css).Parametry funkcji:
Nazwa Typ Opisdeselects all records from the dynamic table (note:this involves deleting a particular css class from each record).Wartość domyślna
- Function parameters:
Name | Type | Default value | Description |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Rezultat funkcji: brak
Dynamic table componen |
- Function result:null
- getAllSelected(from 3.1.8) - zwraca wszystkie zaznaczone rekordy (za pomocą funkcji selectAll, czyli posiadające określona klasę css).
Parametry funkcji:Nazwa Typ Opisreturns all selected records (using functionselectAll, that is, having a specific css class).Wartość domyślna
- Function parameters:
Name | Type | Default value | Description |
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component |
- Function result:Typ
Type |
Description |
Ext.data.Model[] |
Table of selected records |
- minimize (od from 3.1.25) - minimalizuje tabelę dynamicznąminimizes the dynamic table.
- Parametry funkcjiFunction parameters: Nazwa
Name |
Type |
Default value |
Description | ||
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Dynamic table component |
- Function result:null
- maximize (od from 3.1.25) - maksymalizuje tabelę dynamicznąmaximizes the dynamic table.
- Parametry funkcjiFunction parameters: Nazwa
Name |
Type |
Default value |
Description | ||
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null |
Rezultat funkcji: brak
Dynamic table component |
- Function result:null