Refresh only a part of webpanel in Genexus every (e.g.) 10 seconds

882 views Asked by At

I have a basic webpanel with a notifications icon. I want to refresh every x seconds this icon checking if unreaded notifications exist in DB.

How can I do it? I couldn't make work web notifications in Genexus.

How can I do it with jquery/AJAX or a kind of this?

Thanks!

1

There are 1 answers

0
Jose Rascon On

You can create a web component with your logic and then refresh it every 'x' seconds.

  1. Create web component 'wc_x'.
  2. Change 'wc_x'Refresh timeout/Lapse property.
  3. Edit the web form adding a table and putting your image inside.
  4. Edit the Start Event and put your logic.
  5. Call your new 'wc_x' in the web panel you want to see the image.