Show Edit Link in Info Window

3810
3
Jump to solution
10-28-2014 07:35 AM
RichardMoussopo
Occasional Contributor III

When viewing my feature server service in ArcGIS.com Map I get the Edit link in the info window as image bellow, but in my App, the Edit link is not showing up. is there a way to activate it?

EditInInfoWindow.PNG

0 Kudos
1 Solution

Accepted Solutions
RichardMoussopo
Occasional Contributor III

Here is the code to Add Links inside the infoWindow:

  if (dojo.byId("MyLink") == undefined) {

                            dojo.create("a", {

                                "id": "MyLink",

                                "class": "action",

                                "innerHTML": "Edit",

                                "onclick": "MyLinkAction();return false;"

                            }, dojo.query(".actionList", map.infoWindow.domNode)[0]);

                        }

View solution in original post

0 Kudos
3 Replies
RichardMoussopo
Occasional Contributor III

Here is the code to Add Links inside the infoWindow:

  if (dojo.byId("MyLink") == undefined) {

                            dojo.create("a", {

                                "id": "MyLink",

                                "class": "action",

                                "innerHTML": "Edit",

                                "onclick": "MyLinkAction();return false;"

                            }, dojo.query(".actionList", map.infoWindow.domNode)[0]);

                        }

0 Kudos
adminadmin3
New Contributor

Hello,

it's very interesting but i have a question of beginner

where this code must be integrated ?

0 Kudos
KellyHutchins
Esri Frequent Contributor

cédric grenet‌ Here's a link to a sample in the help that uses the code posted above to add a link to the popup. The sample code should help you see where to add the code.

Geoprocessing tool link in popup | ArcGIS API for JavaScript

0 Kudos