Note that there are some explanatory texts on larger screens.

plurals
  1. POGWT - Loading screen onButtonClick
    primarykey
    data
    text
    <p>I'm trying to create a loading screen (in this case a PopUp Panel) everytime I click on a button and to hide the screen when the processing is done.</p> <p>But the problem is that the loading screen never appears.</p> <p>If I delete the line that hides the loading screen:</p> <pre><code> //HIDES THE LOADING POPUP closeLoadingFilter(); </code></pre> <p>The loading screen appears but only until everything finished processing. (not inmediately after I click the button).</p> <p>I think all the processing in the button handler must be completed before anything appears on the screen. So when the processing is complete the popup is hidden before it was ever showed on the screen.</p> <p>How can I solve this problem. By the way there is no Async call in the processing, everything is in-memory processing and the drawing of google visualizations with the in-memory information</p> <p>Thank you all</p> <p>Here is the code:</p> <pre><code>buttonFilter.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { //SHOWS THE LOADING POPUP showLoadingFilter(); //ALL THIS TAKES AROUND 4 SECONDS //THERE IS NO ASYNC CALL //EVERYTHING IS IN-MEMORY PROCESSING //AND DRAWING OF GOOGLE VISUALIZATION listValues.clear(); listFields.clear(); CreateListFiltersSingle(); GetFilterSingleOptions(); RunFilter(dashboardProductos); DrawVisualizations2(); //HIDES THE LOADING POPUP closeLoadingFilter(); } }) public void showLoadingFilter() { popupFilterLoading.clear(); popupFilterLoading.add(new Label("Please wait")); popupFilterLoading.setGlassEnabled(true); popupFilterLoading.center(); isFilterLoading = true; popupFilterLoading.show(); } public void closeLoadingFilter() { if (isFilterLoading) { popupFilterLoading.hide(); isFilterLoading = false; } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload