I’m facing in a problem about the data update once I open a Popup related on a marker in Map component.
I’ve a map with some markers and when i click on one of them it appears a popup with a status led. The status is fetched trought a named query. This step works, but when I close the popup and I reopen it, seems it’s already open and it doesn’t fetch the updates data from the DB.
The Named query hasn’t checked the flag on caching result as well as the binding query doesn’t foreseen the cachin result.
Does anyone can help me?
thanks for your reply, unfotunatly nothing has changed.
I’ve set the params as custom property but the query has performed just one time once the popup has been opened.
The params ID_SENSOR has been passed from the Map component once the user click the icon marker on the map, it should be a input params
Any other suggestion?
can you confirm the id has changed?
try putting an onchange script on the viewparam ID_sensor with something like (and maybe log it to confirm it changes):
The map has (dev status project) just 3 markes and once i’ve open the marker with the lamp if i reopen it does’t refetch the data from DB. I’m simulating the switch status from the DB table but it doesn’t change
A bad solution should be polling the DB every 5 seconds but it will be the last soution to consider
Sorry, I wrote the Log in Italian XD, anyway I set the trigger into onChange script and as you can see it’s fired just one time, if I want to reopen it seems the popup it’s been cached or it is opened in background.