|
POST
|
Hello, yes, this is possible if you modify the default infoTemplate to display your custom attributes as well as have the more results HTML. default: infoTemplate: new InfoTemplate(i18n.widgets.Search.main.searchResult, "<div class=\"${searchTheme}\"><div id=\"${searchMoreResultsId}\" class=\"${searchMoreResults}\"><div class=\"${searchMoreResultsItem}\">${searchResult}</div><div>${searchMoreResultsHtml}</div></div></div>") Modified example: var tpl = "";
tpl += "<div class=\"${searchTheme}\"><div id=\"${searchMoreResultsId}\" class=\"${searchMoreResults}\"><div class=\"${searchMoreResultsItem}\">";
// table
tpl += "<table>";
tpl += "<thead>";
tpl += "<tr><th><strong>DistrictID<br /></strong></th><th><strong>Name<br /></strong></th><th>";
tpl += "<strong>Party<br /></strong></th></tr>";
tpl += "</thead>";
tpl += "<tbody>";
tpl += "<tr>";
tpl += "<td><strong>${DISTRICTID}</strong></td>";
tpl += "<td>Virginia Fox</td>";
tpl += "<td>";
tpl += "<p>${PARTY}</p>";
tpl += "</td>";
tpl += "</tr>";
tpl += "<tr>";
tpl += "<td><strong>3706</strong></td>";
tpl += "<td>xxxxx</td>";
tpl += "<td>xxxxx</td>";
tpl += "</tr>";
tpl += "</tbody>";
tpl += "</table>";
tpl += "</div><div>${searchMoreResultsHtml}</div></div></div>"; infoTemplate: new InfoTemplate("My Popup", tpl);
... View more
06-30-2015
04:24 PM
|
2
|
6
|
2841
|
|
POST
|
In 3.14, there will be an option to set a displayTemplate which will allow you to display the returned fields similar to a popup infoTemplate.
... View more
06-23-2015
03:16 PM
|
1
|
1
|
3340
|
|
POST
|
Hi Scott, Currently, there isn't an option for that. We've had another request for the same thing though so It's something we'll consider as an enhancement. You could modify the code to hide the map and host the app yourself. Esri/geoform-template-js · GitHub Thanks!
... View more
06-10-2015
04:24 PM
|
0
|
1
|
810
|
|
POST
|
Make sure to setup a geometry service since you're using a custom spatial reference. Then it will project to the correct location. Default API Configurations | Guide | ArcGIS API for JavaScript
... View more
05-13-2015
04:23 PM
|
0
|
0
|
763
|
|
POST
|
Hi Aaron, Unfortunately, no. The service needs to have support for suggestions. It won't use findAddressCandidates for handling suggestions like the Geocoder widget does.
... View more
05-12-2015
08:40 AM
|
0
|
0
|
2187
|
|
POST
|
Hey John, Try setting it to 0. Zero should be the first index for the sources array. If you only have one source set on the widget and you're not just pushing it to sources then you shouldn't have to specify the index. Yes, you need a locator that supports the suggest operation in order to get suggestions. If you want suggestions with a feature layer, the layer needs to support pagination. Hope that helps. -Matt
... View more
04-27-2015
04:35 PM
|
1
|
0
|
2187
|
|
POST
|
Yep! Just set the constructor option for activeSourceIndex to whichever source index you'd like to be the default.
... View more
04-23-2015
11:26 AM
|
0
|
2
|
2734
|
|
POST
|
Hey John, That looks correct. Maybe the singleLineFieldName isn't correct? I'm seeing it as "Single Line Input" on your locator service. You can set the sources on the widget's constructor and then it won't show the Esri world locator. or instead of pushing to sources, just set sources.
... View more
04-23-2015
11:18 AM
|
1
|
4
|
2734
|
|
POST
|
Hey Ryan, Here's how it's formatted by default in an InfoTemplate. new InfoTemplate(i18n.widgets.Search.main.searchResult, "<div class=\"${searchTheme}\"><div id=\"${searchMoreResultsId}\" class=\"${searchMoreResults}\"><div class=\"${searchMoreResultsItem}\">${searchResult}</div><div>${searchMoreResultsHtml}</div></div></div>") You can customize it to get it looking how you want. Hope that is what you're looking for.
... View more
04-10-2015
08:56 AM
|
1
|
0
|
2734
|
|
POST
|
The geocoder widget code on github is updated if you'd like to use it.
... View more
04-09-2015
03:08 PM
|
1
|
1
|
2422
|
|
POST
|
Yes, the Search widget will search and find suggestions for "all" or you can select one specific source to search. The option to select isn't shown if there is just one source.
... View more
04-09-2015
01:50 PM
|
1
|
0
|
2422
|
|
POST
|
Thanks Stan. I'll open up an issue for it to get fixed for the next API release. I think the web app builder will use the Search widget instead of the Geocoder soon.
... View more
04-09-2015
01:22 PM
|
2
|
4
|
2422
|
|
POST
|
Hey Stan, This looks to be in the latest release already. Is there still an issue? If so, I'll open an issue. If you have any code demonstrating it, that would be helpful Also, I recommend using the new Search widget instead of the geocoder. Search | API Reference | ArcGIS API for JavaScript
... View more
04-09-2015
10:28 AM
|
0
|
6
|
2422
|
|
POST
|
Yep, the plan is to integrate it into the directions widget.
... View more
03-16-2015
09:05 AM
|
1
|
0
|
2734
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-14-2024 01:33 PM | |
| 1 | 12-01-2023 11:14 AM | |
| 1 | 06-23-2021 09:54 AM | |
| 1 | 04-12-2018 11:10 AM | |
| 1 | 04-09-2015 03:08 PM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|