Serwis VariableSetService pozwala zarządzać tabelami dynamicznymi oraz zmiennymi znajdującymi się w tych tabelach. Posiada następujące funkcje:
Parametry funkcji:
Nazwa | Typ | Wartość domyślna | Opis |
---|---|---|---|
variableSetIdParam | String/Number | null | Identyfikator tabeli dynamicznej/Numer tabeli dynamicznej na formularzu zgodnie z mapą procesu (pierwsza tabela ma numer 0) |
Rezultat funkcji:
Typ | Opis |
---|---|
Suncode.form.view.gadget.variableset.VariableSet | Komponent tabeli dynamicznej lub undefined, jeśli nie znaleziono |
Parametry funkcji:
Nazwa | Typ | Wartość domyślna | Opis |
---|---|---|---|
getEditable | Boolean | false | Informacja, czy zwracac tylko edytowalne tabele dynamiczne |
Rezultat funkcji:
Typ | Opis |
---|---|
Suncode.form.view.gadget.variableset.VariableSet[] | Tablica komponentów tabel dynamicznych lub pusta tablica, jeśli nie znaleziono żadnej tabeli |
Parametry funkcji:
Nazwa | Typ | Wartość domyślna | Opis |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null | Komponent tabeli dynamicznej |
startEditing | Boolean | false | Informuje, czy rozpocząć edycję pierwszej edytowalnej komórki nowo dodanego rekordu |
Parametry funkcji:
Nazwa | Typ | Wartość domyślna | Opis |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null | Komponent tabeli dynamicznej |
Parametry funkcji:
Nazwa | Typ | Wartość domyślna | Opis |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null | Komponent tabeli dynamicznej |
Parametry funkcji:
Nazwa | Typ | Wartość domyślna | Opis |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null | Komponent tabeli dynamicznej |
record | Ext.data.Model | null | Obiekt rekordu tabeli dynamicznej |
Rezultat funkcji:
Typ | Opis |
---|---|
Integer | Numer wiersza |
Parametry funkcji:
Nazwa | Typ | Wartość domyślna | Opis |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null | Komponent tabeli dynamicznej |
variableId | String | null | Identyfikator zmiennej formularza (identyfikator zmiennej procesu) znajdującej się w tabeli dynamicznej |
Rezultat funkcji:
Typ | Opis |
---|---|
Integer | Numer kolumny |
Parametry funkcji:
Nazwa | Typ | Wartość domyślna | Opis |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null | Komponent tabeli dynamicznej |
rowIndex | Integer | null | Numer wiersza rekordu (pierwszy wiersz ma numer 0) |
variableId | String | null | Identyfikator zmiennej formularza (identyfikator zmiennej procesu) znajdującej się w tabeli dynamicznej |
Rezultat funkcji:
Typ | Opis |
---|---|
Object | Wartość zmiennej w komórce |
Parametry funkcji:
Nazwa | Typ | Wartość domyślna | Opis |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null | Komponent tabeli dynamicznej |
rowIndex | Integer | null | Numer wiersza rekordu (pierwszy wiersz ma numer 0) |
variableId | String | null | Identyfikator zmiennej formularza (identyfikator zmiennej procesu) znajdującej się w tabeli dynamicznej |
value | Object | null | Wartość zmiennej formularza |
Rezultat funkcji: brak
Parametry funkcji:
Nazwa | Typ | Wartość domyślna | Opis |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null | Komponent tabeli dynamicznej |
rowIndex | Integer | null | Numer wiersza rekordu (pierwszy wiersz ma numer 0) |
variableId | String | null | Identyfikator zmiennej formularza (identyfikator zmiennej procesu) znajdującej się w tabeli dynamicznej |
Rezultat funkcji: brak
Parametry funkcji:
Nazwa | Typ | Wartość domyślna | Opis |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null | Komponent tabeli dynamicznej |
rowIndex | Integer | null | Numer wiersza rekordu (pierwszy wiersz ma numer 0) |
variableId | String | null | Identyfikator zmiennej formularza (identyfikator zmiennej procesu) znajdującej się w tabeli dynamicznej |
Rezultat funkcji: brak
Parametry funkcji:
Nazwa | Typ | Wartość domyślna | Opis |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null | Komponent tabeli dynamicznej |
Rezultat funkcji:
Typ | Opis |
---|---|
String | Zawartość tabeli w formie JSON |
getRowsCount - zwraca ilość wierszy w tabeli dynamicznej.
Parametry funkcji:
Nazwa | Typ | Wartość domyślna | Opis |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null | Komponent tabeli dynamicznej |
Rezultat funkcji:
Typ | Opis |
---|---|
Integer | Ilość wierszy w tabeli dynamicznej |
getColumnSum - zwraca sumę wartości z danej kolumny.
Parametry funkcji:
Nazwa | Typ | Wartość domyślna | Opis |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null | Komponent tabeli dynamicznej |
variableId | String | null | Zmienna procesu identyfikująca kolumnę w tabeli dynamicznej |
grouped | Boolean | false | Informuje, czy zwracać rezultat w postaci obiektu zawierającego sumę z poszczególnych grup (ma znaczenie tylko, gdy tabela dynamiczna ma aktywną opcję grupowania) |
Rezultat funkcji:
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:
Nazwa | Typ | Wartość domyślna | Opis |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null | Komponent tabeli dynamicznej |
title | String | null | Tytuł |
Rezultat funkcji: brak
removeBottomToolbarButtons - usuwa wszystkie przyciski z dolnej belki oraz ukrywa ją.
Parametry funkcji:
Nazwa | Typ | Wartość domyślna | Opis |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null | Komponent tabeli dynamicznej |
Rezultat funkcji:brak
removeBottomToolbarButton - usuwa określony przycisk z dolnej belki oraz ukrywa ją, gdy przycisk był ostatnim dostępnym na belce.
Parametry funkcji:
Nazwa | Typ | Wartość domyślna | Opis |
---|---|---|---|
variableSet | Suncode.form.view.gadget.variableset.VariableSet | null | Komponent tabeli dynamicznej |
itemId | String | null | Identyfikator przycisku na belce. Oczekiwane wartości to: - add - przycisk dodawania wiersza - delete - przycisk usuwania wiersza - copy - przycisk kopiowania wiersza - dowolne id, będące id przycisku DT_BUTTON podanego w mapie |
Rezultat funkcji:brak