How to use the hyperlinks in the popup window ?
{ fieldName: "Report", label: "Report",Link :"href='http://data.mbmg.mtech.edu/proppant/Report.asp?SampleId=${SampleId}&reqby=M&'",visible: true}
I was using in this way . But it does not work.
Now it works in this way. Thanks for @Kelly Making Popups video demonstration.I solved it.
var template = { // autocasts as new PopupTemplate() title: "SNaP Record {SampleId}", content: "<table>" + "<tr valign='top'><td style='white-space:nowrap;'>Sample Name</td><td>{SampleName}</td></tr>" + "<tr><td style='white-space:nowrap;'>Report</td><td><a target='_newwellwin' href='http://data.mbmg.mtech.edu/proppant/Report.asp?SampleId=${SampleId}&reqby=M&'>View</a></td></tr>" + "<tr><td style='white-space:nowrap;'>Elevation</td><td style='white-space:nowrap;'>{Elevation}</td></tr>" + "<tr><td style='white-space:nowrap;'>Location</td><td style='white-space:nowrap;'>{Township} {Range} {Section} {QSection}</td></tr>" + "<tr><td style='white-space:nowrap;'>Lat/Long</td><td>{Latitude}, {Longitude}</td></tr>" + "<tr><td style='white-space:nowrap;'>Sampled?</td><td>{SampleTaken}</td></tr>" + "<tr><td style='white-space:nowrap;'>Sample Date</td><td>{SampleDate}</td></tr>" + "</table>" };
RegardsBulbul
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.