|
DOC
|
@JinchengGao The OTB search widget uses a Geocoding service with you can not use to add a layer to the map.
... View more
08-19-2021
06:59 AM
|
0
|
0
|
20341
|
|
DOC
|
@JinchengGao You can not search the world street basemap. That is a tiled Map service, you need to use a Mapserver or a Featureserver service. When you install the eSearch widget it has several example service already added.
... View more
08-19-2021
06:45 AM
|
0
|
0
|
20348
|
|
POST
|
@GeoDev , Because you have not inserted your API Key into your codepen code. https://developers.arcgis.com/documentation/mapping-apis-and-services/security/#api-keys
... View more
08-18-2021
02:15 PM
|
0
|
1
|
1403
|
|
DOC
|
@JinchengGao Sure just check the "Add result as operational layer" from the widget settings.
... View more
08-17-2021
02:28 PM
|
0
|
0
|
20405
|
|
POST
|
@AdamPodlewski The SingleQueryLoader.js file is where the actual Query class is created (in the _query method).
... View more
08-09-2021
08:41 AM
|
0
|
2
|
989
|
|
DOC
|
@LiangJiang1 Even in WAB 2.5 the jewelry box theme allows for widgets in the header controller to be collapsed using the double up arrow and un-collapsed using the double down arrow in the widget panel header.
... View more
08-09-2021
08:35 AM
|
0
|
0
|
20637
|
|
DOC
|
@RezaTehranifar2 Is that app public where I can do some testing on it? There is just not enough info for me to diagnose what the issue is.
... View more
08-09-2021
07:53 AM
|
0
|
0
|
20643
|
|
DOC
|
@LiangJiang1 That really depends on the theme you are using and where you have the widget place (i.e. foldable theme in the header controller vs. the on screen place holders).
... View more
08-09-2021
07:09 AM
|
0
|
0
|
20663
|
|
POST
|
I think this is related to the json syntax error in the wkidDetails.json that has been un resolved for several releases now. I guess no one has called tech support about it.
... View more
08-05-2021
08:50 AM
|
2
|
0
|
2322
|
|
DOC
|
@RezaTehranifar2 "We also tried to introduce the widget on the same existing app. We were able to access the settings and everything but we were unable to click ok (no message on the dev console). It was greyed out" - Are there any error messages in the web console when you do this? What theme are you using in that existing app that was made in 10.7? "A panel slight opens up slightly"???
... View more
08-05-2021
07:38 AM
|
0
|
0
|
20733
|
|
POST
|
@MayurDodiya Just use the "Choose Widget" UI in WAB to add another Layer Toggle widget to the Header Controller widget.
... View more
08-04-2021
05:39 AM
|
0
|
0
|
1672
|
|
POST
|
@GilbertoMatos How did you do in your api? Does the solution in the widget you created pass parameters to the api? My API uses VB.net and one of the API Functions looks like this: <WebGet(UriTemplate:="/suggest/parcelnumbers?parcelnum={oParNum}", ResponseFormat:=WebMessageFormat.Json, BodyStyle:=WebMessageBodyStyle.Bare)>
Public Function GetParcelnumber(Optional ByVal oParNum As String = "") As Message
Dim parcelnum As New acSuggestions
Using conn As New SqlConnection()
conn.ConnectionString = strConn2
Using cmd As New SqlCommand()
cmd.CommandText = "select [PARCEL_NUMBER] from county.OwnerParcel where " & "[PARCEL_NUMBER] like @SearchText + '%'"
cmd.Parameters.AddWithValue("@SearchText", oParNum)
cmd.Connection = conn
conn.Open()
Using sdr As SqlDataReader = cmd.ExecuteReader()
While sdr.Read()
parcelnum.suggestions.Add(String.Format("{0}", sdr("PARCEL_NUMBER")))
End While
End Using
conn.Close()
End Using
Dim msg As Message
Dim formatQueryStringValue As String = WebOperationContext.Current.IncomingRequest.UriTemplateMatch.QueryParameters("f")
If String.IsNullOrEmpty(formatQueryStringValue) = False Then
If formatQueryStringValue.Equals("xml", System.StringComparison.OrdinalIgnoreCase) Then
msg = WebOperationContext.Current.CreateXmlResponse(parcelnum)
ElseIf formatQueryStringValue.Equals("json", System.StringComparison.OrdinalIgnoreCase) Then
msg = WebOperationContext.Current.CreateJsonResponse(parcelnum)
ElseIf formatQueryStringValue.Equals("pjson", System.StringComparison.OrdinalIgnoreCase) Then
Dim json = JsonConvert.SerializeObject(parcelnum, Newtonsoft.Json.Formatting.Indented)
msg = WebOperationContext.Current.CreateTextResponse(json)
Else
Throw New WebFaultException(Of String)(String.Format("Unsupported format '{0}'", formatQueryStringValue), HttpStatusCode.BadRequest)
msg = WebOperationContext.Current.CreateJsonResponse(parcelnum)
End If
Else
msg = WebOperationContext.Current.CreateJsonResponse(parcelnum)
End If
Return msg
End Using
End Function As far as the code in WAB I sent you the Suggest_TextBox.js code already and you can see in there that _onKeyUp checks for the length of the string in the input and if it matches the this.characters length the it fires the _popup that sends a esriRequest (with parameters) to the API. By the way neither of your posted links work for me.
... View more
08-04-2021
05:34 AM
|
0
|
0
|
1401
|
| Title | Kudos | Posted |
|---|---|---|
| 16 | 05-17-2021 01:51 PM | |
| 1 | 07-06-2020 05:32 AM | |
| 1 | 07-10-2018 05:49 AM | |
| 9 | 01-28-2022 10:58 AM | |
| 1 | 03-28-2022 06:20 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|