|
POST
|
You can start the the load indicator, after calling task execute method. Since it is deferred, your indicator will start first before any of the events are called.
... View more
04-07-2016
01:02 PM
|
1
|
0
|
1456
|
|
POST
|
The function initializeSidebar is part of moduleI so, you need to use this.initializeSidebar, within the function executeIdentifyTask. that should do the trick.
... View more
04-06-2016
08:04 AM
|
2
|
0
|
3606
|
|
POST
|
There are couple of things you need to ensure. 1) the path mentioned in the dojoConfig exist. In your case myCustomModule folder. 2) If the file name is module.js, than in the require you need to provide the same ie "myCustomModule/module" and not "myCustomModule/moduleI", the file name should match.
... View more
04-06-2016
07:26 AM
|
1
|
6
|
3606
|
|
POST
|
You are just calling the method in the module on map click event. Please update the below changes. map.on("click", function(evt){ moduleI.executeIdentifyTask(evt); })
... View more
03-31-2016
11:38 AM
|
1
|
1
|
1492
|
|
POST
|
Looks good to me. What kind of browser are you using? Thejus
... View more
03-28-2016
08:50 AM
|
0
|
2
|
1883
|
|
POST
|
Thanks for the suggestion. This got me thinking about the version of dgrid, included along with esri api. esri api uses dgrid 0.3.17 version, and according to documentation of that version the selector should be used as below. var columns = { col1: selector({ label: "Select", selectorType: "checkbox" }), col2: { label: 'STRC_ID', field: "STRC_ID", sortable: false }, col3: { label: 'FNDG_CTGY_NB', field: 'FNDG_CTGY_NB' } }; So that was my mistake. I need to include the latest version of dgrid in my application, as the feature I need are not there in 0.3.17. Thanks for the help, I was breaking my head trying to figure out 'where I went wrong?'. Thejus
... View more
03-24-2016
06:38 AM
|
2
|
1
|
1643
|
|
POST
|
I know, this is not related to esri javascript API but, I am using dgrid included along with the esri api. In my application I need to show the query result in the grid with check-boxes for selection. I tried using the dgrid and selector for it. For some reason it does not display the check-boxes. below is the jsbin for the sample code. JS Bin - Collaborative JavaScript Debugging Any help would be really appreciated. Thejus
... View more
03-23-2016
01:15 PM
|
0
|
4
|
3112
|
|
POST
|
If my understanding is correct, you are showing the load indicator in a method which is not a event. try this, Show the load indicator in update-start event and hide it in update-end event. That way when ever the feature layer is updating its content the load indicator will be shown. And incase the layer is not visible, both the events will not be fired and it will not display the load indicator. Hope this was helpful.
... View more
03-16-2016
06:03 AM
|
2
|
0
|
2371
|
|
POST
|
Hello Linda The updateDataGrid.txt does not have any logic to update the server. i.e. no code is calling the featurelayer.applyedits method. the store.setValue updates only the memory variables so as long, you dont search again the values you have updated will remain. But if you get the records again from the service. The original values will be returned. Hope this answers your doubt. Thejus
... View more
03-11-2016
05:36 AM
|
0
|
1
|
782
|
|
POST
|
you need to wait till the layer is loaded in the map. Use the map's layer-add-result event and then check for the contents. on(map, "layer-add-result", function(layer){ console.log(layer.graphics[0]); }); or you could watch the FeatureLayer's update event. Update event is fired when the layer completes fetching the data from the server.
... View more
03-09-2016
01:30 PM
|
0
|
1
|
2841
|
|
POST
|
Like I updated the comment, you need to add the layer to the map before using it.
... View more
03-09-2016
01:16 PM
|
0
|
3
|
2841
|
|
POST
|
In OnDemand mode, the graphics are update when the map changes extent i.e, Zoom or pan. You need to do featurelayer.refresh to the the data. Also, you need to added to map before checking any graphics.
... View more
03-09-2016
12:54 PM
|
0
|
5
|
2841
|
|
POST
|
If you are building the column headers from the feature.attributes. why are you iterating throught the attributes again. you could just use array.map and get a list of objects and bind it dgrid. (I guess you are using dgrid or datagrid).
... View more
03-09-2016
10:13 AM
|
0
|
1
|
2808
|
|
POST
|
What kind of dgrid are you using. To be able to dynamically add results you need to use OnDemandGrid. Could you let us know what you mean by "when selected". Also share screen shot and code, where you assign the typesData to dgrid. may be the issue is not how you are creating the data store. but rather how it is assigned.
... View more
03-03-2016
05:21 AM
|
0
|
0
|
1303
|
|
POST
|
You could use '&' or comma (,) or some special charater as delimiter and split the input string to array. Then loop through them and execute multiple findtasks. And then using promise/all combine all the results and use it to populate the grid.
... View more
02-26-2016
07:17 AM
|
1
|
0
|
1226
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-24-2017 07:15 AM | |
| 1 | 09-13-2016 06:27 AM | |
| 1 | 05-21-2015 08:06 AM | |
| 1 | 12-16-2015 05:43 AM | |
| 1 | 07-20-2015 09:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
05-13-2026
09:55 AM
|