Documentation

Trace:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
jvx:communication:async_callback [2018/01/31 21:40]
admin
jvx:communication:async_callback [2020/06/08 15:48] (current)
cduncan Edited for English grammar (capitalization, punctuation, correct verb conjugation)
Line 1: Line 1:
-~~Title: Asynchronous Communication ​using CallBac~~+~~Title: Asynchronous Communication ​Using CallBack~~
  
-Any function at the client´s business logic can be addressed using [[jvx:​communication:​calling_server_action|Server Actions]]. These are usually actions that do not take up a lot of time, such as, for example, input validation.+Any function at the client´s business logic can be addressed using [[jvx:​communication:​calling_server_action|Server Actions]]. These are usually actions that do not take up a lot of time, such as, input validation.
  
 For this reason, communication between client and server is synchronized,​ i.e., the client makes a request to the server and waits for a response. During the wait time, the mouse cursor in the application is displayed as an hourglass, and the user can perform no further actions. For this reason, communication between client and server is synchronized,​ i.e., the client makes a request to the server and waits for a response. During the wait time, the mouse cursor in the application is displayed as an hourglass, and the user can perform no further actions.
Line 9: Line 9:
 For time-consuming tasks, asynchronous communication is possible without additional effort. This does not mean, however, that the entire communication has to work asynchronously. It is up to the developer to decide which tasks should be executed asynchronously. For time-consuming tasks, asynchronous communication is possible without additional effort. This does not mean, however, that the entire communication has to work asynchronously. It is up to the developer to decide which tasks should be executed asynchronously.
  
-Results are transmitted automatically;​ the developer does therefore not need to worry about particularities.+Results are transmitted automatically;​ the developer doesthereforenot need to worry about particulars.
  
 == Example == == Example ==
  
-Our application allows the creation of reports that are based on millions of datasets. However, the datasets have to be evaluated and compressed. Processing time for an individual report is approximately ​minutes.+Our application allows the creation of reports that are based on millions of datasets. However, the datasets have to be evaluated and compressed. Processing time for an individual report is approximately ​three minutes.
  
 The user initiates the report by clicking a button (see [[jvx:​client:​gui:​actions|Client Actions]]) and is notified when the report has been created. In the meantime, the user can continue to work as usual. The user initiates the report by clicking a button (see [[jvx:​client:​gui:​actions|Client Actions]]) and is notified when the report has been created. In the meantime, the user can continue to work as usual.
Line 67: Line 67:
 </​file>​ </​file>​
  
-Once the report is created the client is notified. In this example an information dialog is displayed.+Once the report is createdthe client is notified. In this examplean information dialog is displayed.
  
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information