POST
|
Thanks, Leo, Can you give me a sample of codes as examples.
... View more
02-21-2020
06:47 AM
|
0
|
0
|
1629
|
POST
|
Thanks for your response, but when calling API using (Esri/request) in (ListLayer) needs to be asynchronous. where the layer appears before the response from the remote server received.
... View more
02-19-2020
03:35 AM
|
0
|
1
|
1629
|
POST
|
Thanks for your replaying, but when calling API using (Esri/request) needs to be asynchronous.
... View more
02-18-2020
07:43 PM
|
0
|
2
|
1629
|
POST
|
Hello everyone, I need to used API to return permissions on layers If the user haven't permission hide/ remove a layer from the map.
... View more
02-18-2020
11:07 AM
|
0
|
7
|
1898
|
POST
|
thanks Robert Scheitlin, GISP can i get value of sql expression from url paramters
... View more
05-30-2018
10:13 PM
|
0
|
1
|
642
|
POST
|
Hello every one, i have application build in web app builder. I want to make dynamic filter for specific layer using URL query parameter and apply the filter thanks
... View more
05-29-2018
05:33 AM
|
0
|
3
|
863
|
POST
|
Hello every one, i have application build in web app builder. I want to make dynamic filter for specific layer using URL query parameter thanks
... View more
05-28-2018
07:04 AM
|
0
|
0
|
374
|
POST
|
Hi every one, i 'm having json file export from map server not feature server as json file. how i can convert it using arcgis desktop app. while i can do that when file from feature map export using json to features tools Thanks
... View more
10-22-2016
09:08 AM
|
0
|
0
|
1162
|
POST
|
Hi every one, i 'm having json file export from map server not feature server as json file. how i can convert it using arcgis desktop app. while i can do that when file from feature map export using json to features tools Thanks
... View more
10-22-2016
09:06 AM
|
0
|
0
|
1079
|
POST
|
08-26-2016
01:40 PM
|
0
|
0
|
1014
|
POST
|
Hi every one, I was return the results of table on grid and need when click record make a new query and zoom to . related point in the map, My codes below but i have a problem in centerAndzoom is undefined define([
'dojo/on',
'dojo/topic',
'esri/map',
'esri/tasks/query',
'esri/tasks/QueryTask',
'esri/geometry/Extent',
'esri/geometry/Point',
'esri/SpatialReference'
], function (on, topic, map, Query, QueryTask,Extent,Point,SpatialReference) {
//*****************
var queryTask, query;
function showResults(results) {
//This function is run when the query has finished.
//It zooms the map to the extent of the first feature returned by the query.
var result = results.features[0];
if (result.geometry.type == 'point' ){
var pointx;
var pointy;
pointx = results.features[0].geometry.x;
pointy = results.features[0].geometry.y;
point = new esri.geometry.Point(pointx, pointy,new SpatialReference({wkid:4326}));
alert(pointx );
this.map.centerAndZoom(point,15);
}
}
function errResults(err) {
//This section runs if there's a problem with the query
alert("Sorry, there's a problem with the query : " + err);
}
//*****************
return {
map: true,
mapClickMode: true,
spatialReference: null,
layers: [
{
//*********************************
name: 'LayerA&TableB',
queryParameters:{
type:'table',
url: 'https://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer/1',
outFields: ['*']
},
// linkField: 'sf_311_serviceoid',
// idProperty: 'objectid'
// ,
attributeSearches:[{
name: 'Search for TableB fields',
searchFields: [
{
//**************
name: 'Inspector Name',
label: 'Inspector Name',
expression: ' ( 1 = 1 )', // ( sf_311_serviceoid = \'[value]\' )
placeholder: 'Enter the Inspector Name',
required: true,
minChars: 1
}
]
, title: 'Inspector',
topicID: 'InspectorQuery',
gridOptions: {
columns: [
{
field: 'sf_311_serviceoid',
label: 'Name',
width: 150,
renderCell: function (object, value, node) {
on(node, 'click', function () {
queryTask = new QueryTask('https://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer/0');
query = new Query();
query.returnGeometry = true;
query.outFields = ["*"];
query.where = '1 = 1';
queryTask.execute(query,showResults,errResults)
});
node.innerHTML = '<i class=\'fa fa-pencil\' style=\'margin-left:8px;\'></i>';
}
},
{
field: 'agree_with_incident',
label: 'agree_with_incident',
width: 150
}
],
sort: [
{
attribute: 'sf_311_serviceoid',
descending: 'ASC'
}
]
}
}]
/*,
linkedQuery: {
url: 'https://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer/0',
type: 'spatial', //you could probably use more of the queryParameters options like outfields etc
linkField: 'objectid',
outFields: ['*'],
ids: []
}
*/
//*********************************
}
]
};
});
... View more
08-25-2016
10:50 PM
|
0
|
0
|
1014
|
POST
|
.Hello thejus kambi, all things is right But the results of grid show the Layer A fields not table B. How we can show the fields of table B in the grid and when users click on the record zoom to it.Here's the sample: define([
'dojo/on',
'dojo/topic'
], function (on, topic) {
return {
map: true,
mapClickMode: true,
layers: [
{
//*********************************
name: 'LayerA&TableB',
queryParameters:{
type:'table',
url: 'https://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer/1',
outFields: ['*']
},
linkField: 'sf_311_serviceoid',
idProperty: 'objectid'
,
attributeSearches:[{
name: 'Search for TableB fields',
searchFields: [
{
//**************
name: 'Inspector Name',
label: 'Inspector Name',
expression: ' ( 1 = 1 )', // ( sf_311_serviceoid = \'[value]\' )
placeholder: 'Enter the Inspector Name',
required: true,
minChars: 1
}
]
, title: 'Inspector',
topicID: 'InspectorQuery',
gridOptions: {
columns: [
{
field: 'sf_311_serviceoid',
label: 'Name',
width: 150
},
{
field: 'agree_with_incident',
label: 'agree_with_incident',
width: 150
}
],
sort: [
{
attribute: 'sf_311_serviceoid',
descending: 'ASC'
}
]
}
}]
,
linkedQuery: {
url: 'https://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer/0',
type: 'spatial', //you could probably use more of the queryParameters options like outfields etc
linkField: 'objectid',
outFields: ['*'],
ids: []
}
//*********************************
}
]
};
}); The results:
... View more
08-19-2016
11:05 AM
|
0
|
1
|
1014
|
POST
|
Thank you for your replaying, i'm tracing the code and note that it need to add ,linkedID but when run my app the print in console where clause note it empty console.log ==== results pk_num in () . where in clause is empty .I will try to add linkedIDS in search queryParameters
... View more
08-15-2016
07:21 AM
|
0
|
1
|
1014
|
POST
|
08-15-2016
05:44 AM
|
0
|
1
|
1014
|
POST
|
Thanks Mr. thejus kambi, when apply your idea i have a small problem. , in linkedQuery when ids is null or empty there is no results appear in the grid i tried to solve it when click on grid record pass fk_pk to linkedQuery but fails. how i can search using related table and return the results on the grid, and when click in any records in grid refer to the map.
... View more
08-13-2016
07:52 AM
|
0
|
0
|
1014
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|