Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Polish

  ← Powrót do listy dostępnych akcji

Info
 Jeśli masz problem ze zrozumieniem jak działa akcja, sprawdź opisy: Akcja, Wykonanie warunkowe, Parametry komponentów
Panel
titlePodstawowe informacje

Kategoria: Ogólne

Umiejscowienie akcji: Tabela, Zmienna, Przycisk

Poprzednie nazwy: Zwrócenie servletu do zmiennej (do 1.0.43)

Dostępna od wersji: 1.0.3

Panel
titleOpis
Akcja zwraca odpowiedź z webservice'u i zapisuje do zmiennej po zajściu zdarzenia: zmiany zmiennej, zmiany w tabeli lub naciśnięciu przycisku (w zależności od miejsca przypisania akcji).
Panel
titleWywołanie akcji
Info

Pozostawienie pustego pola wykonania warunkowego jest jednoznaczne z ustawieniem go na "prawdę".

Umiejscowienie akcjiDziałanie parametru "Wykonanie warunkowe"Warunek wywołania akcji
Tabela

Uaktywnia akcję

Aktualizacja tabeli, tj. dodanie, usunięcie bądź edycja wiersza.

ZmiennaUaktywnia akcję

Zmiana wartości zmiennej na której znajduje się akcja

PrzyciskUaktywnia akcję

Naciśnięcie przycisku na którym znajduje się akcja

Panel
titleParametry konfiguracyjne
Nazwa parametruOd wersjiOpisTyp parametruWartość domyślnaRodzaj polaUwagi i ograniczenia
Ścieżka servletu*1.0.3Ścieżka servletu, którego zwrócona wartość zostanie zapisana do zmiennej.Tekst Pole edytowalneServlet musi być umieszony w projekcie. Ścieżka powinna zawierać przedrostek "api/"
Nazwy parametrów servletu*1.0.3Lista nazw parametrów servletuTablica wartości tekstowych Pole edytowalne 
Wartości parametrów servletu*1.0.3Lista wartości parametrów servletuTablica wartości tekstowych Pole edytowalneWartości parametrów są przekazywane jako tekst, więc webservice powinien przyjmować wartości tekstowe

Zmienna wynikowa*

1.0.3Zmienna do której zostanie zapisany wynik servletuZmienna Pole edytowalne

 

Parametr*- pole wymagane

Panel
titlePrzykładowa konfiguracja


Warning

Servlet w projekcie klienckim powinien znajdować się w package rozpoczynającym się od com.suncode

Panel
titlePrzykład

Poniższy servlet przyjmuje parametr o nazwie userName typu tekstowego. Jego wynik powinien zostać zapisany do zmiennej logicznej.

 

Code Block
languagejava
titlePrzykładowy servlet
@Controller
@RequestMapping( "/user" )
public class UsersController
{
    @Autowired
    private UserExistenceChecker checker;

    @RequestMapping( value = "user-exists", method = RequestMethod.GET )
    public @ResponseBody Boolean getUser( @RequestParam String userName )
        throws Exception
    {
        return checker.userExists( userName );
    }
}
Panel
titleChange log

1.0.3

  • Dodanie komponentu

1.0.43

  • Zablokowanie możliwości dodania akcji pod przycisk akceptacji
  • Zmiana nazwy z "Zwrócenie servletu do zmiennej" na "Zwrócenie wyniku webservice'u do zmiennej"

1.0.57

  • Aktualizacja dynamicznego formularza
Panel
titlePakiet z przykładowym formularzem wykorzystującym akcję

 

View file
nameTesty komponentów - akcje - [AKCJA] Zwrócenie servletu do zmiennej 2019-10-14 10_22_41.zip
height250

Hide If
special@anonymous

Zadania związane z komponentem

Aktualne

Archiwalne

JIRA
server192.168.1.52 JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId2e6b42a8-62e1-3c71-bfe9-dbf183b33dc1
keyCUFCMP-23

JIRA
server192.168.1.52 JIRA
serverId2e6b42a8-62e1-3c71-bfe9-dbf183b33dc1
keyCUFCMP-256

JIRA
server192.168.1.52 JIRA
serverId2e6b42a8-62e1-3c71-bfe9-dbf183b33dc1
keyCUFCMP-433

JIRA
server192.168.1.52 JIRA
serverId2e6b42a8-62e1-3c71-bfe9-dbf183b33dc1
keyCUFCMP-462

English

  ← Return to the list of available actions

Info
If you have a problem understanding how the action works, check the descriptions: Action, Conditional execution, Component parameters
Panel
titlePodstawowe informacje

Category: General

Action location: Table, Variable, Button

Previous names: Returning a servlet to a variable (up to 1.0.43)

Available from version: 1.0.3

Panel
titleOpis

The action returns the response from the webservice and writes it to the variable after the occurrence of the event: change of the variable, change in the table or pressing the button (depending on the place where the action is assigned).

Panel
titleWywołanie akcji
Info

Leaving an empty conditional field is the same to setting it to "the truth".

Action locationThe "Conditional execution" parameterAction call condition
Table

Activates the action

Table update, i.e. adding, deleting or editing a row.

VariableActivates the action

Change the value of the variable on which the action is located

ButtonActivates the action

Pressing the button on which the action is located

Panel
titleParametry konfiguracyjne
Parameter nameFrom versionDescriptionParameter typeDefault valueField typeComments and restrictions
Servlet path*1.0.3Servlet path, whose returned value will be saved to the variable.Text Editable fieldServlet must be placed in the project. The path should contain the prefix "api/"
Servlet parameter's name*1.0.3List of servlet parameter namesTable of text values Editable field 
Servlet parameter's value*1.0.3List of servlet parameter valuesTable of text values Editable fieldParameter values are passed as text, so webservice should accept text values

Result variable*

1.0.3Variable to which the servlet result will be savedVariable Editable field

 

Parameter*- required field

Panel
titleSample configuration


Warning

The servlet in the client project should be in a package starting with com.suncode

Panel
titleExample

 The following servlet accepts a parameter named userName of the text type. Its result should be written to a logical variable.

Code Block
languagejava
titleSample servlet
@Controller
@RequestMapping( "/user" )
public class UsersController
{
    @Autowired
    private UserExistenceChecker checker;

    @RequestMapping( value = "user-exists", method = RequestMethod.GET )
    public @ResponseBody Boolean getUser( @RequestParam String userName )
        throws Exception
    {
        return checker.userExists( userName );
    }
}
Hide If
special@anonymous

Change log

1.0.3

  • Adding a component

1.0.43

  • Blocking the possibility of adding shares to the acceptance button
  • Renaming from "Returning servlet to variable" to "Returning webservice result to variable"

1.0.57

  • Update of the dynamic form

Tasks related to the component

Current

Archive

JIRA
server192.168.1.52 JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId2e6b42a8-62e1-3c71-bfe9-dbf183b33dc1
keyCUFCMP-23

JIRA
server192.168.1.52 JIRA
serverId2e6b42a8-62e1-3c71-bfe9-dbf183b33dc1
keyCUFCMP-256

JIRA
server192.168.1.52 JIRA
serverId2e6b42a8-62e1-3c71-bfe9-dbf183b33dc1
keyCUFCMP-433

JIRA
server192.168.1.52 JIRA
serverId2e6b42a8-62e1-3c71-bfe9-dbf183b33dc1
keyCUFCMP-462

Panel
titleA map with an example configuration