POST
|
How to bind fetched items from ItemFileReadStore to a table td vertically not datagrid Question asked by Sadanandachar B on Jun 16, 2016 Like • Show 0 Likes0 Comment • 0 Hi All, I am binding items to data grid table as shown below, function executeIdentifyTask(geom) { //clear the graphics layer map.graphics.clear(); // var polygonSymbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DOT, new dojo.Color([151, 249, 0, .80]), 3), new dojo.Color([151, 249, 0, 0.45])); symbol = new esri.symbol.SimpleMarkerSymbol(); symbol.setSize(10); symbol.setColor(new dojo.Color([255, 255, 0])); identifyParams.geometry = geom.mapPoint; identifyParams.mapExtent = map.extent; identifyTask.execute(identifyParams, function (response) { var parcelItems = []; dojo.forEach(response, function (result) { var feature = result.feature; //add selected feature to graphics layer feature.setSymbol(symbol); map.graphics.add(feature); if (result.layerName === 'SPL_NSDI') { parcelItems.push(feature.attributes); } }); var parcelsStore = new dojo.data.ItemFileReadStore({ data: { identifier: 'ID', items: parcelItems } }); gridParcels.setStore(parcelsStore); } -------------------------------------- <table dojotype="dojox.grid.DataGrid" jsid="gridParcels" id="gridParcels" style="width:100%;height:100%;" selectionMode="none"> <thead > <tr> <th field="ID">ID</th> <th field="STATION_NAME">STATION_NAME </th> </tr> </thead> </table > ------------------------------------------------- But how to bind the fetched items from ItemFileReadStore to table td not dojo data grid and table values should be vertical, Below is the code that how i fetched the items var queryObj = {}; var value = null; var staionName = null; parcelsStore.fetch({ query: queryObj, onItem: function (item) { value = (parcelsStore.getValue(item, 'ID')); staionName = (parcelsStore.getValue(item, 'STATION_NAME')); } }); // return value; }); Result should be like this ID 1 STATION_NAME Mysore Please help on this issue..,. Thanks!
... View more
06-16-2016
11:36 PM
|
0
|
2
|
1734
|
POST
|
Hi All, I am binding items to data grid table as shown below, function executeIdentifyTask(geom) { //clear the graphics layer map.graphics.clear(); // var polygonSymbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DOT, new dojo.Color([151, 249, 0, .80]), 3), new dojo.Color([151, 249, 0, 0.45])); symbol = new esri.symbol.SimpleMarkerSymbol(); symbol.setSize(10); symbol.setColor(new dojo.Color([255, 255, 0])); identifyParams.geometry = geom.mapPoint; identifyParams.mapExtent = map.extent; identifyTask.execute(identifyParams, function (response) { var parcelItems = []; dojo.forEach(response, function (result) { var feature = result.feature; //add selected feature to graphics layer feature.setSymbol(symbol); map.graphics.add(feature); if (result.layerName === 'SPL_NSDI') { parcelItems.push(feature.attributes); } }); var parcelsStore = new dojo.data.ItemFileReadStore({ data: { identifier: 'ID', items: parcelItems } }); gridParcels.setStore(parcelsStore); } -------------------------------------- <table dojotype="dojox.grid.DataGrid" jsid="gridParcels" id="gridParcels" style="width:100%;height:100%;" selectionMode="none"> <thead > <tr> <th field="ID">ID</th> <th field="STATION_NAME">STATION_NAME </th> </tr> </thead> </table > ------------------------------------------------- But how to bind the fetched items from ItemFileReadStore to table td not dojo data grid and table values should be vertical, Below is the code that how i fetched the items var queryObj = {}; var value = null; var staionName = null; parcelsStore.fetch({ query: queryObj, onItem: function (item) { value = (parcelsStore.getValue(item, 'ID')); staionName = (parcelsStore.getValue(item, 'STATION_NAME')); } }); // return value; }); Result should be like this ID 1 STATION_NAME Mysore Please help on this issue..,. Thanks!
... View more
06-16-2016
09:59 PM
|
0
|
1
|
1378
|
POST
|
Hi thank you for your kind replay, Sorry, but can you show me simple example
... View more
06-15-2016
04:13 AM
|
0
|
0
|
3
|
POST
|
Hi All, I have one feature class with columns like ID, STATION_NAME, ATT1,ATT2,..,LAT,LONG,PDF, etc. And i have created one mapservice for this " http://xxx/Arcgis/rest/services/NSDL/mapserver ". My question is how to display all the attribute information on map click using Identify task and also depending on the point i have selected , I need to display the pdf document of that point feature, stored in the server folder(It may be local or externel). I am storing only pdf names in the PDF columns. My result should be like this, One side my map and beside that i need to display resultant attributes with pdf documet. Can you people please help me on this issue Thanks!
... View more
06-15-2016
03:30 AM
|
0
|
2
|
1330
|
POST
|
Thanks FC Basson Can you give me simple example for this, i am new to javascript, can you please help me
... View more
06-14-2016
04:26 AM
|
0
|
2
|
8
|
POST
|
Hi All, I have one spatial table with attributes information and pdf name stored in it. On map click i am displaying the attribute information information in datagridview using identify task in arcgis javascript. My problem is along with attribute information i have to display pdf document related to that feature which is stored in a server folader. Please show me some examples to do this. Thanks!
... View more
06-14-2016
02:54 AM
|
0
|
4
|
1437
|
POST
|
Hi All, I am new to arcgis javascript api, I want to select multiple features on the map using polygon and show the resultent attributes in a datagrid, i need some examples for this , Please help on this issue Thank You Sadanand
... View more
06-08-2016
11:15 PM
|
0
|
1
|
3695
|
POST
|
Hi All, I have one folder which contains multiple feature classes and how to copy all those feature classes to single shape file using python script Thanks in advance
... View more
05-31-2016
05:37 AM
|
0
|
1
|
2550
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|