Hi, I'm using the google maps Forge component. and I'm adding the map marker in the preparation from a list that has the place id, longitude and latitude, then I'm adding a marker event, I don't know what's the logic to be used to get the id of that place, and trigger another event to populate the data of it.


Hi Abeer ElAssal,

You can see the answer to your question here:

http://apps.outsystems.com/GoogleMapsDemo/

Regards,

Marco Arede wrote:

Hi Abeer ElAssal,

You can see the answer to your question here:

http://apps.outsystems.com/GoogleMapsDemo/

Regards,

Hi Marco, I checked but still I don't know how to trigger an event to use the ajax refresh or even pass that id or assign it to another var.

thanks in advance


Hi Abeer ElAssal,

I now understand better what you need. This function only returns the identifier of the created marker action. There is no identifier returned of the notify method itself. 

However, you can edit your component to add that part of javascript, so that you can return the reference of the method notify.

Regards,

Hi Abeer,

The handle of AddMarkerEvent is just JS that will run when the even is trggered, in your case when you click on the marker. If you want to call a screen action when you click on a Marker you just need to use RichWidgets\FakeNotifyWidget. On handler JS use something like this:

"function() {
    OsNotifyWidget('" + FakeNotify.Id + "', MarkerId)
}"

This will call the action defined on the FakeNotify and will send as message the MarkerId. To get the message just use the action NotifyGetMessage.

If this isn't what you are looking for plz explain better your use case.

Regards,

Marcelo