POST
|
I found multiple solution for this one. 1- You can get OID of features selected from Select widget by running this function. var ids = []; array.forEach(this.map.itemInfo.itemData.operationalLayers, function (layer) { var featureLayer = layer.layerObject; array.forEach(featureLayer.getSelectedFeatures(), function (feature) { ids.push(feature.attributes[featureLayer.objectIdField]); } }, this); }, this) 2- The other way is to use popup window but for this to work you have to configure you popup to show OID array.forEach(this.map.graphics.graphics,function(graphic){ var result = graphic.getLayer(); var info = result._map.attribution.map.infoWindow.domNode.innerText.split('\n'); var count = info.length; if (count > 1 ) { var oid = info[2].split('\t')[1]; } })
... View more
04-29-2021
02:13 AM
|
0
|
0
|
416
|
POST
|
For anyone looking for a solution to this problem I found one, check this link for details. Solved: Custom Link in Local Data Popup Click on the Map - Esri Community
... View more
04-29-2021
02:05 AM
|
0
|
0
|
801
|
POST
|
@RobertScheitlin__GISP Thanks a lot, this is exactly what I was looking for.
... View more
04-29-2021
02:03 AM
|
0
|
0
|
885
|
POST
|
@RobertScheitlin__GISP A feature action seems complicated for a simple task like adding a button, also popup is not a proper widget which means it does not reside in 'app\widget' folder, I found some files of popup in 'app\jimu.js\dijit' and I didn't find a proper file or folder structure for popup as other widgets have i.e edit. So how can I follow the instruction which were given in the link you provided when popup is not a proper widget with complete file structure. ThankYou,
... View more
04-27-2021
09:38 PM
|
0
|
0
|
889
|
POST
|
@RobertScheitlin__GISP I tried creating a feature action for popup window but i didn't found all the files for popup widget as mentioned in documentation, I was hoping to add a button by using 'data-dojo-attach-event' and then call the function i want to preform when that button is clicked. Is it possible or is feature action is the only way forward? ThankYou,
... View more
04-26-2021
11:06 PM
|
0
|
0
|
893
|
POST
|
@RobertScheitlin__GISP , I tried following the procedure mentioned above but couldn't found the 'PopupHandler.js' file in Attribute table widget. Also you mentioned that this procedure is for version 1.3 but i'm using version 2.16. I have added a screen shot of attribute table widget file. Thankyou,
... View more
04-25-2021
09:53 PM
|
0
|
1
|
2163
|
POST
|
Hi Robert, Can you explain me a bit how can one achieve this in version 2.16 of WAB Developer Edition. It'll be of great help. I also want to add a custom button or hyperlink text in Popup window of my app. Take a look at attachment for better understanding. Thank You,
... View more
04-21-2021
09:42 PM
|
0
|
3
|
2172
|
POST
|
Hello, I'm trying to add a custom button or some hyper text like 'Zoom To' which is clickable in popup window of web appbuilder v2.16, i'm using WAB developer addition can some one point in right direction that where i need to add the code for this button to appear in popup window of my application. Thankyou
... View more
04-21-2021
04:11 AM
|
0
|
1
|
894
|
POST
|
Hi Grant, Finally it worked Thanks a lot. One more question, what if the featurelayer i'm using in my web app has multiple featureclasses i.e. some different sort of point features and some line features, how can i limit the return of OID to only the feature which i want not others which may also get selected due to they overlay on each other. Thank you Again.
... View more
10-19-2020
01:49 AM
|
0
|
1
|
1429
|
POST
|
Hi Grant, Thanks again for your reply, I applied the changes as you guided in above comment but now it throw back a different sort of error "uncaught TypeError : array.forEach is not a function". i read the dojo documentation about dojo/_base/array but i can not see what is wrong in this script. On removing array.forEach ids variable generate empty output.
... View more
10-19-2020
01:14 AM
|
0
|
3
|
1429
|
POST
|
Hi Grant, Thank you for your kind reply. I have a simple widget in which a button in defined and on clicking the button i'm trying to define a function which will store OIDs of selected feature in a variable which i then pass on to some non esri webapps to preform some task. I have tried to apply your code in the function i defined for my button but it throws back an error "Uncaught reference error: array is no defined", as i'm also new in javascript i have no idea what i'm doing wrong here. I'll attach the picture of code that i have and it'll a great help if can take a look and can point out what is wrong with this code that i'm trying out.
... View more
10-18-2020
10:32 PM
|
0
|
5
|
1429
|
POST
|
wab javascript dev editon widget.js widjets web appbuilder cus web appbuilder fo arcgis Hi, I'm making a customized WebApp using ArcGIS WAB. Customization include making some widgets and some non esri webapps which will perform some specific task on features selected on webapp using Select Widget. All i'm trying here is to get OIDs of the selected features using a customized widget or a JavaScript code so i can pass those OIDs to my non esri webapps to perform some functions on data. Any sort of help is much appreciated, because i'm tired of searching for solution of this small task on internet and finding nothing at all. Thank you.
... View more
10-15-2020
10:33 PM
|
0
|
1
|
460
|
POST
|
Hi there i'm also facing this issue can you please elaborate the solution? i'm looking to get OIDs of features selected through select widget. any sort of help / pointers will be appreciated.
... View more
10-15-2020
10:07 PM
|
0
|
0
|
1429
|
Online Status |
Offline
|
Date Last Visited |
04-29-2021
03:45 AM
|