Hi,
I'm using extensible control to load Google Map and add markers there reflecting planned activities.
Is it possible to somehow pass information about clicked marker back to the calling control? E.g. if users
clicks marker "A1" on the map then at least the label should be passed on, so activity "A1" could
be opened.
Yes, it worked! Thanks a lot.
You can either set properties of your control, or you can call an X++ method from Javascript. Such method must be decorated with FormCommand attribute and there are some extra requirements for it. Refer to Extensible control programming reference > Runtime: FormCommandAttribute for more details.
Hi Judy,
It's clear what you suggested, but I think we're still in realm of the Map. The question is - how can I pass information with the label back to D365 and use it - e.g. save it in a table or run some action.
Hi luksz,
The google.maps.Marker object can listen to click event, you can adds a label to the marker. A marker label is a letter or number that appears inside a marker.
The method getLabel() to get the label of the Marker.
You may check Maps JavaScript API Reference which Events are listed in a separate section for each object which contains events. You can edit the test map effect:
developers.google.com/.../events
I've already studied his posts. Unfortunately there is nothing mentioned about getting data back from the map. There is actually similar question by Irena, but it wasn't answered. I'm not too proficient in JS, so I'm trying to find something by trial and error, but I'm not sure if it's actually possible.
Hi Luksz,
Martin Drab wrote a blog about extensible controls before. In his example he used Google Maps. He didn't write about your requirement, but the blog might give some hints and links: Extensible control – HTML/JavaScript – Goshoom.NET Dev Blog
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Andrés Arias as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Sohaib Cheema 745 User Group Leader
Martin Dráb 597 Most Valuable Professional
André Arnaud de Cal... 580 Super User 2025 Season 2