Akcja zwraca do zmiennej kurs złotego (PLN) dla podanej waluty i daty.
Dla wersji cuf-components sprzed wersji 1.0.30:
Przed wywołaniem akcji należy wykonać zadanie zaplanowane, które pobierze do naszej bazy danych kursy walut. Opis tego zadania znajduje się tutaj: Pobieranie kursów walut z NBP.
Umiejscowienie akcji
Wartość parametru "Zdarzenia wywołujące akcję"
Działanie parametru "Wykonanie warunkowe"
Warunek wywołania akcji
Zmienna
Wywołanie przy zmianie zmiennych
Uaktywnia akcję
Zmiana wartości w zmiennej podanej w parametrze: Zmienne aktualizujące.
Wywołanie po zajściu warunku wykonania warunkowego
Wywołuje akcję
Parametr "Wykonanie warunkowe" zwróci "prawdę"
Wykonanie przy aktualizacji waluty lub daty, lub przesunięcia
Uaktywnia akcję
Zmiana wartości w jednej ze zmiennych podanych w parametrach: Kod waluty,Data z której pobrać kurs orazPrzesunięcie daty
Nazwa parametru
Od wersji
Opis
Typ parametru
Wartość domyślna
Rodzaj pola
Uwagi i ograniczenia
Kod waluty*
1.0.3
Waluta powinna zostać przekazana w postaci kodu waluty (kody walut dostępne są na stronie NBP), np. EUR, USD.
Tekst
Pole edytowalne
Data kursu*
1.0.3
Data, z której zostanie pobrany kurs. Uwaga - jeżeli w tabeli nie zostanie znaleziony kurs z podanej daty, to akcja znajdzie kurs z możliwie najbliższą datą do podanej i występującej przed nią.
Data
Pole edytowalne
Data nie powinna być większa niż obecny dzień
Zdarzenia wywołujące akcję*
1.0.49
( typ : wartość tekstowa ) - Parametr, który określa kiedy ma zostać wywołana akcja.
Tablica wartości tekstowych
Wykonanie przy aktualizacji waluty lub daty lub przesunięcia daty
Nieedytowalna lista rozwijalna
Wartości do wyboru:
Wywołanie przy zmianie zmiennych
Wywołanie po zajściu warunku wykonania warunkowego
Wykonanie przy aktualizacji waluty lub daty, lub przesunięcia daty
Zmienne aktualizujące
1.0.49
(powiązane z parametrem Zdarzenia wywołujące akcję) Określa przy aktualizacji których zmiennych wywoła się akcja.
Tablica zmiennych
Nieedytowalna lista rozwijalna
Widoczny tylko, gdy Zdarzenia wywołujące akcję są ustawione na "Wywołanie przy zmianie zmiennych"
Numer Tabeli
1.0.81
Zwracany numer tabeli z NBP
Zmienna tekstowa
Pole edytowalne
Typ Tabeli
1.0.81
Zwracany typ tabeli z NBP
Zmienna tekstowa
Pole edytowalne
Przesunięcie daty*
1.0.106
Modyfikuję datę pobrania kursu (dodaje/odejmuje ilość dni od podanej daty)
Całkowity
0
Pole edytowalne
Przykład: Gdy data jest ustawiona na 21.07.2021 a parametr na -1 to data kursy będzie sprawdzana na dzień 20.07.2021
Strefa czasowa banku NBP
1.0.135
Użyj strefy czasowej banku NBP zamiast strefy czasowej serwera.
Operation of the "Conditional execution" parameter
Condition for calling an action
Variable
Call when variables are changed
Activates the action
Changing the value in the variable specified in the parameter: Updating variables.
Calling on the condition of conditional execution
Invokes an action
The "Conditional Execution" parameter will return "true"
Executed on currency or date update or shift
Activates the action
Changing the value in one of the variables given in the parameters: Currency code, Date of exchange rate and Day shift
Name of the parameter
From version
Description
Parameter type
Default value
Field type
Notes and restrictions
Currency code*
1.0.3
The currency should be transferred in the form of a currency code (currency codes are available on the NBP website), e.g. EUR, USD.
String
Editable field
Date of exchange rate*
1.0.3
Date from which the course will be downloaded. Note - if the table does not find the rate on the given date, the action will find the rate with the closest possible date to the given and occurring before it.
Date
Editable field
Action executing types*
1.0.49
(type: text value) - A parameter that defines when the action is to be invoked.
An array of text values
Execution when updating currency or date or date shift
Non-editable drop-down list
Selectable values:
Call when variables are changed
Calling on the condition of conditional execution
Execution when updating currency or date or date shift
Updating variables
1.0.49
(related to the Events triggering action parameter) Defines which variables will be triggered when updating.
An array of variables
Non-editable drop-down list
It is visible only when the Events that trigger the action are set to "Call when variables are changed"
Table number
1.0.49
Column for entering the table number from which the exchange ratewas taken
An array of text variables
Editable field
Table type
Column for writing the table type from which the exchange ratewas taken
An array of text variables
Editable field
Day shift*
1.0.106
Modify the date of downloading the course (adds / subtracts the number of days from the given date)
Integer
0
Editable field
Example: When the date is set to 07/21/2021 and the parameter is set to -1, the exchange rate date will be checked for 07/20/2021
NBP Bank timezone
1.0.135
Use polish NBP Bank timezone instead of a server timezone.
Boolean
No
Noneditable dropdown list
Removed in 1.0.153
Parameter*- required field
1.0.3
Adding a component
1.0.30
Changing the method of downloading currencies to the system one.