...
Polish | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Podstawowe informacjeFormularz zadania udostępnia API, które ułatwia wykonywanie podstawowych operacji na potrzeby dostosowania go do potrzeb klienta. SerwisyWszystkie serwisy są dostępne bezpośrednio na globalnym scope (na podstawie ich nazwy) - od wersji systemu 3.2.5 lub do poprania za pomocą ServiceFactory.
SuncodeFormServiceAPI formularza posiada także dodatkowy serwis SuncodeFormService. Jest on również dostępny na globalnym scope (window) i jest obsługiwany niezależnie od pozostałych serwisów. Zdarzenia gotowości formularzaFunkcja addOnReadyEvent daje możliwość dodania dowolnej ilości akcji, jakie zostaną wykonane po zbudowaniu formularza (wszystkie komponenty na formularzu będą już dostępne). Funkcja ta ma nazwę addOnReadyEvent. Przykładowe wykorzystanie jest następujące:
Użycie serwisu w powyższy sposób spowoduje, że po zbudowaniu formularza zostaną kolejno wyświetlone wiadomości: 'Pierwsza akcja' i 'Druga akcja'. Kolejność wykonywania akcji jest zależna od ładowania skryptów, a w ramach jednego pliku od kolejności dodawania akcji.
Funkcja addOnReadyEvent przyjmuje jeden parametr:
Funkcja ta nie zwraca żadnych rezultatów.
Grupowanie akcji obliczania wyglądu formularzaOd wersji 3.1.6 możliwe jest dodatkowe grupowanie akcji zmieniających układ formularza (layout). Takie grupowanie zmian układu jest znacznie szybsze niż wykonywanie tych akcji osobno.
Ustawienia konfiguracyjne formularzaW wersji 3.1.10 wprowadzono mechanizm ustawień formularza. Umożliwia on dynamiczne ustawienie danych właściwości poprzez API:
Tabela zawiera wszystkie dostępne opcje konfiguracyjne formularza
|
English | |||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Basic informationThe task form provides an API that facilitates basic operations for adapt it to the client's needs. Services All services are available directly on the global scope (based on their name) - from the system version 3.2.5 or to be download by ServiceFactory.
SuncodeFormServiceThe API form also has an additional SuncodeFormService service. It is also available on the global scope (window) and is supported independently of other services. Form readiness eventsThe addOnReadyEvent function gives ability to add any actions number that will be taken after the form has been built (all components on the form will be available). This function is called addOnReadyEvent. The exemple use is as follows:
Using the service in the above way will result in the following messages being displayed successively after the form has been built: 'First action' and 'Second action'. The order in which actions are performed depends on the scripts loading, and within one file, from the order of adding actions. Function addOnReadyEvent takes one parameter:
This function does not return any results. Grupowanie akcji obliczania wyglądu formularzaOd wersjiGrouping actions to calculate the appearance of a formFrom version 3.1.6 możliwe jest dodatkowe grupowanie akcji zmieniających układ formularza (layout). Takie grupowanie zmian układu jest znacznie szybsze niż wykonywanie tych akcji osobnoit is possible to additional group actions changing the layout of the form (layout). Such grouping of layout changes is much fasterthan performing these actions separately.
it is possible to call group actions without using tryand finally blocks by specifying parameters in the call. Instead of the function, you must specify the function which will be called, and then the scope of calling this function
Configuration settings for the formUstawienia konfiguracyjne formularzaW wersjiIn version 3.1.10 wprowadzono mechanizm ustawień formularza. Umożliwia on dynamiczne ustawienie danych właściwości poprzez API:form setting mechanism has been introduced. It allows dynamic setting of property data through the API:
Tabela zawiera wszystkie dostępne opcje konfiguracyjne formularza
| |||||||||||||||||||||||||||||||||||||||||||||||
Nazwa | Typ | Wartość domyślna | Dostępne od | Opis |
Name | Type | Default value | Available from | Description | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
autoupdate.blurifchange | Boolean | false | 3.1.10 | By default, AutoUpdate is always performed on a blur event, even if you do not change the field value In order for AutoUpdate to be called after leaving the field, if its value has changed since entering this field, the code should be called:
| |||||||||||||
variableset.copyrow.target | String | bottom | 3.1.13 | Dopuszczalne wartościValid values: bottom, | belowAby kopiowany wiersz wstawiony został poniżej zaznaczonego należy wywołać kod:below In order to the copied row will be inserted below the selected one, the code should be called:
| Jeżeli nie ustawiono tej opcji lub została ona ustawiona na 'bottom' kopiowany wiersz zostanie dodany na dole tabeliIf this option is not set or set to 'bottom', the copied row will be added at the bottom of the table. | |||||||||||
variable.variabletoview.genericformat | Boolean | false | 3.2.0 | Domyślnie dla zmiennych nieedytowalnych funkcjaBy default, for non-editable variables, the function:
| lub
| Returns total, floating point, amount, date, and "date and time" variables in text format. That the numeric and dates variables will be returned in the corresponding JavaScript type:
Call the code:
|