POST
|
Hello All, I'm using Web App Builder 2.2 Developer Edition. Once feature is captured using Edit Widget, I want to apply attributes from the spatial query before apply edits. I have written my code as below to achieve this but query gets completed after attribute inspector is opened. _canDeleteSelectionFeatures: function () { // return ture if all features can be deleted, // else return false. var canDeleteFeatures = true; var selectionFeatures = this._getSelectionFeatuers(); if(selectionFeatures.length === 0) { canDeleteFeatures = false; } else { array.some(selectionFeatures, function (feature) { var featureLayer = feature.getLayer && feature.getLayer(); //I have written below line on(featureLayer, 'before-apply-edits', lang.hitch(this, this.onBeforeApplyEdits)) if (!featureLayer || !featureLayer.getEditCapabilities({ feature: feature }).canDelete ) { canDeleteFeatures = false; return true; } }, this); } return canDeleteFeatures; }, and then onBeforeApplyEdits, I have done spatial query to get the required attribute as below: onBeforeApplyEdits: function (evt) { if (evt.adds != null) { var selectionFeatures = this._getSelectionFeatuers(); array.some(selectionFeatures, lang.hitch(this,function (feature) { var queryDivsionName = new Query(); queryDivsionName.returnGeometry = false; queryDivsionName.outFields = ["division"]; queryDivsionName.geometry = feature.geometry; queryDivsionName.spatialRelationship = Query.SPATIAL_REL_INTERSECTS; var queryDivsionNameTask = new QueryTask(divsionLayer.url); execute(queryDivsionName, lang.hitch(this, function (featureSet) { console.log(featureSet); divisionName = featureSet.features[0].attributes.division; })); })); evt.adds[0].attributes.division = divisionName ; } Please suggest how to spatial query for attribute and apply to feature before apply edits. Regards, Krish
... View more
01-01-2017
09:04 PM
|
0
|
12
|
2105
|
IDEA
|
Option to configure portal so that when user "x" log in, he must see his own gallery on home page and when user "y" log in, he must see his own gallery and also these users should have the capability of changing banners.
... View more
12-01-2016
01:14 AM
|
11
|
4
|
1318
|
POST
|
Hi Derek, Thanks for your quick response. Regards, Krishna VSAV
... View more
12-01-2016
01:10 AM
|
0
|
0
|
843
|
POST
|
Is there any way to configure portal so that when user "x" log in, he must see his own gallery on home page and when user "y" log in, he must see his own gallery. Any ideas, please let me know
... View more
11-30-2016
09:50 PM
|
1
|
9
|
1533
|
POST
|
Hello Derek Law, Thanks for your response! Is it possible to customize html & js files in local folder so that I can achieve this functionality. Regards, Krish
... View more
06-08-2016
08:37 PM
|
0
|
0
|
559
|
POST
|
Hello All, I want to check CAPTCHA before sign in to Portal for ArcGIS.. Kindly suggest me where I have to add the code to achieve this.. Really appreciate your support on this. Regards, Krish
... View more
06-08-2016
03:53 AM
|
0
|
2
|
3150
|
POST
|
Hi, Did you find any solution for this. If yes, can you post a sample. Regards, Krish
... View more
05-10-2016
08:50 PM
|
0
|
0
|
948
|
POST
|
Hi All, is there any widget or tool or sample in javascript to create a thematic map using value stored in a related table? our goal is to do this with mapservice/feature service with relationship tables in arcgis server 10.3 In the JS API web site All the renderer sample codes are based on map service with internal layer attributes: is it possible to use the renderer class with relationship attributes? what we need is something similar to this widget made (only) for flex api: Thematic maps by table join—ArcGIS API for Flex | ArcGIS for Develope Appreciate your support on this.. Thanks, Krish
... View more
05-10-2016
05:05 AM
|
1
|
2
|
2835
|
POST
|
Hi Wang, From version 10.3, you will have option, Open in ArcGIS Desktop, once it is clicked, a package file will be downloaded. This file cane be opened in ArcGIS desktop. For more information, you can look at below link. Use ArcGIS for Desktop with your portal—Portal for ArcGIS (10.4) | ArcGIS for Server Regards, Krish
... View more
05-04-2016
01:58 AM
|
0
|
1
|
2569
|
POST
|
Zulfiqar, You can also refer to https://github.com/URSpatial/WAB_AddShapefile for getting started.. Regards, Krish
... View more
05-02-2016
09:43 PM
|
0
|
0
|
1080
|
POST
|
Hello All, I have extracted some data from a feature service with all the Editing Capabilities and have done few editing using ArcGIS Desktop. Is there any way to Sync the edited data with Feature Service..? Please let me know your suggestions. Appreciate if you could provide any walkthrough or JS Samples. Thanks in Advance..! Regards, Krish
... View more
04-18-2016
04:05 AM
|
0
|
0
|
761
|
POST
|
Any advice on this is highly appreciated..! Thanks!
... View more
04-06-2016
12:37 AM
|
0
|
0
|
1162
|
POST
|
Dear All, Extract Data Task GP Service is working when Input mode is set to "Choice List" as per below screenshot. But this service is working only for layers shown in below screenshot. I want to use this GP Service to work for any layer. Hence I have changed Input Mode to "User defined value" as shown in below screenshot but result is always failed. Request you to suggest how to make this Extract Data Task GP service work for any layer. Appreciate your support on this. Regards, Krish
... View more
04-04-2016
02:26 AM
|
0
|
3
|
5017
|
Title | Kudos | Posted |
---|---|---|
1 | 11-16-2021 03:44 AM | |
1 | 08-21-2019 10:49 PM | |
1 | 12-08-2020 08:29 PM | |
1 | 12-08-2020 01:22 AM | |
1 | 06-04-2017 08:38 AM |
Online Status |
Offline
|
Date Last Visited |
01-11-2024
03:54 PM
|