|
POST
|
Trying this Console.log gives me this First alert gives me [object Object] Second alert does NOT show up. Just need to get the Match Address and XY back...ugggg // Search widget
var search = new Search({
view: view,
});
search.on("select-result", function (event) {
console.log("The selected search result: ", event);
test = event;
alert(test);
var vtest = event;
var vreturn = JSON.stringify(vtest);
alert(vreturn);
});
... View more
02-27-2020
10:11 AM
|
0
|
5
|
2623
|
|
POST
|
If I make a call like this in JS how to I capture the result IN JS and parse through it and set variables for the Match_addr and X and Y findAddressCandidates—ArcGIS REST API: World Geocoding Service | ArcGIS for Developers http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?SingleLine=380%20New%20York%20Street%2C%20Redlands%2C%20CA%2092373&category=&outFields=*&forStorage=false&f=pjson
... View more
02-27-2020
09:38 AM
|
0
|
2
|
1772
|
|
POST
|
Initial Need: The user selects a point in the map and that defines the address in the form I am looking for a solution that provides a certain level of interaction between a traditional web form and leveraging the ESRI JS api. What I am trying to do is proof a concept where a user can leverage the Find Address example below: Search for an address | ArcGIS for Developers I created this JS fiddle with some modifications to the example above https://jsfiddle.net/Jaykapalczynski/6e0snvyr/3/ Edit fiddle - JSFiddle - Code Playground In this example the user can click on the map. This will geocode the Map Location and return an address and XY to variables I can then use these variables to populate a couple textareas and most importantly to populate a Form on the page. This works great. ALTHOUGH - If I use the Find Address input box from the search widget I can enter and address and get the result in a popup. While this appears to solve my needs, I need to capture that Address and XY being returned to the popup (I am assuming the XY location is available some how.) I do NOT want the user to have to interact with the map...ONLY the Find Address input box. I cant seem to find a way to grab the results from the geocoding that are sent back via the Find Address or Place geocoder Questions: 1. What I am having an issue with is .... capturing the result from the Find Address or Place search and th resulting popup that appears after the search is done (NOT a map click)....and writing those values (address, X, Y) to variables that I can split and push to the forms input boxes. 2. Is there a way to JUST display the "Find Address or Place" input box and get rid of the map and zoom tools? Or do I have to create a new widget? I dont care about the map and zoom tools. If I have to create my own GP Service and handle the communication back and forth I will do so...but just thought this might be easier.
... View more
02-27-2020
08:06 AM
|
0
|
6
|
2731
|
|
POST
|
I am looking to add a point to my feature class. I see i can add the edit wdget and use that to add a point but i need to interact with my map first before i can submit the point. I have a tool that selects some features in the map and builds a string from their name field....i want to add this as values to a field of the FC. So i was thinking of just adding a few input boxes, A few combo boxes, And the input box that will get populated from my code. Then submit to add the point to the FC I am pondering options: 1. I think i would have to create a new widget to do this via a widget. 2. Or if I simply create my own input and comboboxes what are my options to add this point to the FC class outside of: passing parameter values to GP Service which was published from a python script using an insert cursor.... Any thoughts on number 2 above? Are there any other options to add point other than the GP tool from html input boxes and combobox?
... View more
02-23-2020
09:14 AM
|
0
|
0
|
542
|
|
POST
|
Updated JSFiddle: Edit fiddle - JSFiddle - Code Playground
... View more
02-21-2020
01:00 PM
|
0
|
2
|
1623
|
|
POST
|
I am modifying this example: ArcGIS API for JavaScript Sandbox 1. I changed the data source 2. I added a couple text boxes to return the results of the selected For some reason, which I cannot figure out, I am only returning the OBJECTID....none of the other fields are being returned. I created this JSFiddle to show my mods....Edit fiddle - JSFiddle - Code Playground Anyone out there see why all the other fields are not showing up??????
... View more
02-21-2020
12:57 PM
|
0
|
3
|
1702
|
|
POST
|
Or could I select multiple counties in the map and then write those values to a field in the point FC....I actually like this option the best....but I assume I would have to write this in a JS app that I create not via AGOL Editing.
... View more
02-21-2020
07:00 AM
|
0
|
0
|
658
|
|
POST
|
I have a project up and trying to outline a few ideas. I want to add a point and add attribute info. No Big deal there. But then I have to try and record that location which contain multiple counties (that location supports multiple counties) I dont want to create polygons, I would rather stay with the point location, as there might be overlap between the locations supporting the same county. That being said I was thinking of a related table or a field that will hold an array of some sort... Where I could: 1. Select the drop down combobox and choose multiple counties and it stores these values in a field in the FC 2. Select the drop down combobox and choose multiple counties and it stores in the related table I would much rather use option one above. My question is this possible? Can I select multiple values in a combobox and write those values to a single field in a FC via AGOL web map?
... View more
02-21-2020
06:47 AM
|
0
|
1
|
682
|
|
POST
|
I just did what Joe was talking about.....so now to continue with your solution
... View more
02-06-2020
01:59 PM
|
0
|
1
|
6277
|
|
POST
|
Good point Bruce....I will have to continue your approach...but still confused....
... View more
02-06-2020
01:58 PM
|
0
|
2
|
6277
|
|
POST
|
Alright I simply created a model Event Layer then to Geodatabase. Will set this python script to run on a scheduled task
... View more
02-06-2020
01:57 PM
|
0
|
0
|
6277
|
|
POST
|
I can run a stored procedure and read the data....I think I need to then read the Stored Procedure via python to create the Feature Class? Using an insert cursor? ALTER PROCEDURE [dbo].[addData]
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
CREATE TABLE #ImportData
(
CFS varchar(MAX),
Code varchar(MAX),
)
-- Insert statements for procedure here
BULK INSERT #ImportData from 'C:\Scripts\Service\DailyCalls.csv' WITH
(
FIELDTERMINATOR = ',',
FIRSTROW = 2
)
SELECT * FROM #ImportData
DROP TABLE #ImportData
END
... View more
02-06-2020
01:30 PM
|
0
|
2
|
6277
|
|
POST
|
I have a csv file in a folder location that gets updated every hour. I need to take this info and update a Feature Class that is being published to a feature service. Looking for the smartest and most effective means in which to do this. Stored Procedure and then to FC? Any ideas would be appreciated.
... View more
02-06-2020
01:14 PM
|
0
|
12
|
8159
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-20-2018 11:09 AM | |
| 1 | 09-10-2018 06:26 AM | |
| 1 | 09-15-2022 11:02 AM | |
| 1 | 05-21-2021 07:35 AM | |
| 1 | 08-09-2022 12:39 PM |
| Online Status |
Offline
|
| Date Last Visited |
09-19-2022
09:23 PM
|