Perspective Map Component, popup doesn't update

Hello everyone,

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?

There are some bugs related to viewparams in popups across the versions.

Update and move your query to a custom param. And turn off (input/)output on your viewparams, a popup should not have output params

Hello Victor,

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.
image

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):

self.refreshBinding('custom.ITEM_DB')

I’ve already set a log to understand the behaviour, and if I click on a marker it trigger a log on a Chrome console:


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
image
A bad solution should be polling the DB every 5 seconds but it will be the last soution to consider

i dont understand what is being printed there xd
Does the onchange script trigger when you reopen the popup

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.

how do you open the popup?

I open the popups through the Map component. if i click on the marker it opens the popup automatically

Ah i did not know it was within the map itself, havent really used that component yet xD
I have no idea then how it works