|
POST
|
Hello! I am developing a custom ExB widget. The widget creates a CSVLayer and adds it to the map. I would also like to add it to the attribute table. After a lot of hunting and pecking, I managed to get a hold of the "viewInTable" data action but I can't get it executed. I believe I need to somehow cast the CSVLayer as a DataRecordSet. Does anybody have a working example of this? Thanks! Jill
... View more
11-01-2023
08:47 AM
|
1
|
3
|
1507
|
|
POST
|
Hello @chapmunnhsc ! This is a few months old but did you get this functionality working? I managed to get the View in Table data action but I can't quite figure out how to pass in my feature layer. Thank you!
... View more
11-01-2023
08:26 AM
|
0
|
1
|
4133
|
|
POST
|
Hi Monica, I don't think you're missing a simple step. I don't think it's possible to populate a list with one layer and then zoom to extents stored in another layer (I think that's what you're trying to do). Could you create a Joined view layer and use that as the source of your list? You wouldn't be publishing new data but it would be another content item to maintain. Thanks, Jill
... View more
08-31-2023
11:27 AM
|
0
|
1
|
1846
|
|
POST
|
If your JavaScript app is consuming a web map, just adjust the scale dependent visibility of each layer (or group them and adjust the visibility of the group) in the web map. The legend will automatically adjust to show the layers that are visible. If your app is not consuming a web map, you can adjust the minScale and maxScale properties of an individual layer object. Hope that helps. Thanks!
... View more
08-31-2023
11:13 AM
|
1
|
0
|
981
|
|
POST
|
Looks like it was available starting at 11.0 Edit features (Map Viewer)
... View more
08-16-2023
11:41 AM
|
0
|
0
|
944
|
|
POST
|
Hi Jeff, This workflow uses the same authentication and sharing scheme as your ArcGIS Online Organization. You would create a named user in your Organization (or use an existing one). You would share the web map with the user, just like you would share any other piece of non-public content. You will give the developer the ID of this web map, so they know where to look for it. You aren't giving the developer a token, you're giving them the URL for the token service, so that they can request a token using the supplied credentials as needed. When the "application", requires access the web map, a request is made to the token service using the supplied credentials. This token is appended to the request for the web map and since the map has been shared with the user that was used to generated the token, access will be granted. Since the tokens are short lived the app will need to request a new token every time the token expires. The developer will be handling that process as part of the app. There are tutorials and help docs for each of those steps but I don't know of one for the entire workflow. You really just need to handle steps 1 - 3 and the developer handles step 4. Jill
... View more
07-31-2023
11:57 AM
|
1
|
1
|
6851
|
|
POST
|
Hi Jeff, The back end of ArcGIS Online consists of web services that can return data and configurations to any number of clients. I think in this context, when the doc says "application", it's just referring to the client that's making the request. It's up to the client that's requesting and using the token to manage it correctly. I don't know the details of your specific asset management software but my suspicion is that they are using an Esri API to manage tokens in a way that is transparent to the end user. It looks like the consultant is asking for a token service, username and password so that they can authenticate to "import" your data. I'm not sure if that means they are actually making a copy of your data or if they will use the credentials to access the live services using short lived tokens. They are also asking for a web map ID, I suspect to define which layers are seen by the end users. They are giving you the option to require each end user to log in with their own AGOL credentials to view this map or to use the stored user name and password. Hope that helps, Jill
... View more
07-27-2023
03:42 PM
|
0
|
1
|
6881
|
|
POST
|
Hi Jeff, Yes, when accessing secured content via the REST API, a token is appended to each request. If you look at the network traffic when you're browsing AGOL, you can see that all of the requests for content have a token parameter. AGOL handles the authentication but if they're accessing the content directly they will need to authenticate against a token service to obtain the token themselves. Details for the token service are found here - https://developers.arcgis.com/rest/users-groups-and-items/generate-token.htm. There is a general discussion about authentication here - Introduction to security and authentication and details about generating a token here - Generate a token. Hope that helps!
... View more
07-26-2023
09:53 AM
|
1
|
2
|
6938
|
|
POST
|
Hi Jeff, Does the consultant have their own ArcGIS Online organization? If so, you can invite them to join a group or create a collaboration. Jill
... View more
07-26-2023
09:20 AM
|
0
|
4
|
6951
|
|
POST
|
Hello! I have published a Web Tool to Portal with two GPFeatureRecordSetLayer output parameters. I run the tool with no errors but the output is always empty and the exceededTransferLimit property is set to true. When I look at the output of the job in the arcgisoutput folder on the federated server, the feature classes have been created successfully. The gdb is a modest 200KB in size and the two feature classes have 8 and 19 records. The max number of records for the service is 1000. I have similar web tools published to this portal that execute successfully without exceededTransferLimit getting set to true. Any ideas on how I could troubleshoot this? Thank you! Jill
... View more
06-27-2023
01:25 PM
|
0
|
0
|
885
|
|
POST
|
Hi Ann, How are you determining what features are symbolized with the Correctional Facilities symbol? If those features fall out of range, in the Counts and Amounts style, there is an option to "Draw features with out of range or no value". Would that work?
... View more
05-23-2023
07:54 AM
|
0
|
0
|
659
|
|
POST
|
In case it's helpful to someone else, changing the output parameter type to "DEFeatureClass" did the trick. out_features = arcpy.Parameter(
displayName="Output Features",
name="out_features",
datatype="DEFeatureClass",
parameterType="Derived",
direction="Output")
return [out_features]
... View more
05-23-2023
07:46 AM
|
0
|
0
|
955
|
|
POST
|
In case it's helpful to someone else, changing the output parameter type to "DEFeatureClass" did the trick. out_features = arcpy.Parameter(
displayName="Output Features",
name="out_features",
datatype="DEFeatureClass",
parameterType="Derived",
direction="Output")
return [out_features]
... View more
05-23-2023
07:45 AM
|
2
|
2
|
2305
|
|
POST
|
Hello! I am trying to successfully return a feature layer as the output of the GP service and having absolutely no luck. I have a very simple python toolbox tool with the following output parameter: out_features = arcpy.Parameter(
displayName="Output Features",
name="out_features",
datatype="GPFeatureRecordSetLayer",
parameterType="Derived",
direction="Output")
return [out_features] The main code block looks like this: def execute(self, parameters, messages):
"""The source code of the tool."""
inFeatures = r"D:\Projects\OCTA\LODES\data\Test_GP_Service\Test_GP_Service.gdb\Parcels_SaltLakeSub"
out_fc = arcpy.CreateScratchName("out_features",
data_type="FeatureClass",
workspace=arcpy.env.scratchGDB)
out_fc = arcpy.analysis.Buffer(inFeatures, out_fc, 100).getOutput(0)
arcpy.AddMessage(out_fc)
#parameters[0].value = out_fc
arcpy.SetParameter(0, out_fc)
return I'm able to execute the tool successfully and publish the results to a standalone ArcGIS Server. When I submit the job, the logs say that everything was executed successfully and the feature class in scratch.gdb in the related arcgisjobs folder looks correct on the server. However, when I try and view the contents of the output either using the REST endpoint by submitting a job using Javascript, it is always empty. Somehow, I'm not setting up the output parameter correctly but I can't figure out the trick. Any ideas are greatly appreciated. Thank you! Jill
... View more
05-19-2023
11:29 AM
|
0
|
1
|
1004
|
|
POST
|
Hello! I am trying to successfully return a feature layer as the output of the GP service and having absolutely no luck. I have a very simple python toolbox tool with the following output parameter: out_features = arcpy.Parameter(
displayName="Output Features",
name="out_features",
datatype="GPFeatureRecordSetLayer",
parameterType="Derived",
direction="Output")
return [out_features] The main code block looks like this: def execute(self, parameters, messages):
"""The source code of the tool."""
inFeatures = r"D:\Projects\OCTA\LODES\data\Test_GP_Service\Test_GP_Service.gdb\Parcels_SaltLakeSub"
out_fc = arcpy.CreateScratchName("out_features",
data_type="FeatureClass",
workspace=arcpy.env.scratchGDB)
out_fc = arcpy.analysis.Buffer(inFeatures, out_fc, 100).getOutput(0)
arcpy.AddMessage(out_fc)
#parameters[0].value = out_fc
arcpy.SetParameter(0, out_fc)
return I'm able to execute the tool successfully and publish the results to a standalone ArcGIS Server. When I submit the job, the logs say that everything was executed successfully and the feature class in scratch.gdb in the related arcgisjobs folder looks correct on the server. However, when I try and view the contents of the output either using the REST endpoint by submitting a job using Javascript, it is always empty. Somehow, I'm not setting up the output parameter correctly but I can't figure out the trick. Any ideas are greatly appreciated. Thanks! Jill
... View more
05-19-2023
10:43 AM
|
0
|
3
|
2362
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-11-2018 10:05 AM | |
| 1 | 04-21-2023 11:03 AM | |
| 1 | 08-22-2024 12:12 PM | |
| 1 | 06-17-2022 08:38 AM | |
| 2 | 05-23-2023 07:45 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|