POST
|
I think something like below should work for you. // define friendly name
$permitDocument = $results['PERMIT DOCUMENT'];
if(strcasecmp($permitDocument, '123456' )==0)
{
$friendlyName = "ABC";
}
echo "<a href='".$results['PERMIT DOCUMENT']."'>".$friendlyName."</a>"
... View more
06-04-2017
12:36 AM
|
2
|
0
|
381
|
POST
|
Here is another update on the source that prints only the table as per defined format.
... View more
06-01-2017
02:12 AM
|
0
|
0
|
1610
|
POST
|
I tried to delete or edit jsbin but it didn't work. I will try again. Here is your full code with print function. You can tweak it more to suite your page style.
... View more
06-01-2017
12:52 AM
|
2
|
1
|
1610
|
POST
|
If you have taken the exact code from JSBin it should have worked. Do you see any errors in your browser console?
... View more
06-01-2017
12:18 AM
|
1
|
4
|
1610
|
POST
|
If that solves your problem would you kindly mark it as the correct answer for this question. This will help others too.
... View more
06-01-2017
12:10 AM
|
0
|
6
|
1610
|
POST
|
This wildcard need not be entered by the end user. Below are the steps you will have to implement. 1. User submits the literal string eg."509 BERRY CT" to your php page. 2. In php page break this string into multiple words. 3. Parse multiple words with wildcard character. 4. Send this new parsed string to the query. The code could be something like below. $search = "509 BERRY CT";
$multipleWords = explode(" ",$search);
$parsedTerm = "%";
foreach($multipleWords as $word){
$parsedTerm .= $word."%";
}
$query = $pdo->prepare("select * from PERMITMASTER where ADDRESS LIKE '".$parsedTerm."'"); Here is a php sandbox link with a working snippet for this case.
... View more
06-01-2017
12:07 AM
|
3
|
2
|
2284
|
POST
|
Hi, After going through your script i have found few issues with the code as follows. 1. grid.on() ==> due to this line it triggered an error and the query never initiated. 2. The query was always returning OBJECTID. Need to define outfields at the constructor level which takes precedence on any other outField declarations. 3. In Function showResults... it is arrayUtils.map not arrayUtils.mapMain. "map" is a function within arrayUtils class. 4. In Function showresults... arrayUtils.map was calling again showresults() and therefore it never return results to the table. You can check your code that works now at JSBin. Note: In order to test & work from jsbin i had to add these two lines that you can remove. "esri/config" in require esriConfig.defaults.io.proxyUrl = "/proxy/";
... View more
05-31-2017
04:51 AM
|
1
|
8
|
1610
|
POST
|
I've tested through your page. Right now what is happening is that the query is kind of looking for the whole term "509 BERRY CT" but trying to maintain the position of each word within it. Instead if we break this whole term into words and send to the query it will return the results wherever it finds each word regardless of its position. So in your backend page check for spaces for the input and substitute those with "%" and send to query. For example: 509%BERRY%CT This above screen shot from your page returned me results with the address having 509.
... View more
05-31-2017
12:22 AM
|
3
|
4
|
2284
|
POST
|
Hi Jordan, After checking the class references there is nowhere I could find FeatureServer to be accessed by ServerObject. IServerObjectHelper has a class "ServerObject" as its member. And unfortunately i see that IServerObject have access to all others except FeatureServer.
... View more
05-30-2017
01:14 AM
|
1
|
0
|
554
|
POST
|
Hi, I assume that you must be doing an Identify operation to get the feature information. And you want to limit the results to a single feature class of your choice. This can be controlled by passing the required layerid's in the identify parameters object. Here is a reference and a sample for identify task. identifyTask = new IdentifyTask("https://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/Parcels/MapServer");
identifyParams = new IdentifyParameters();
identifyParams.tolerance = 3;
identifyParams.returnGeometry = true;
identifyParams.layerIds = [0, 2];
identifyParams.layerOption = IdentifyParameters.LAYER_OPTION_ALL;
identifyParams.width = map.width;
identifyParams.height = map.height; identifyParams.layerIds = [0,2]
... View more
05-30-2017
12:19 AM
|
0
|
2
|
700
|
POST
|
Hi, Just to add a little more to @JoshuaBixby's reply. Instead of "+" sign use "." which is used for string concatenation in php. '%".$search."%'"
... View more
05-30-2017
12:03 AM
|
2
|
6
|
2284
|
POST
|
Hi Stefan, I think this sample "Create an offline app" will give you a head start for your task. It describes in detail about the exporting tiles from a service for an area of interest and saving it locally.
... View more
05-29-2017
01:00 AM
|
0
|
0
|
611
|
POST
|
Muqit & SriHarsha, Metadata of a service or a particular layer can be retrieved by the typical rest service calls to your service. For example, the below is a call to service that returns metadata in json format for the service itself. Service URL: https://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Network/USA/NAServer/Service%20Area Metadata call: https://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Network/USA/NAServer/Service%20Area?f=json Here it returns metadata for a particular layer. URL to a Layer: https://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/MapServer/0 Metadata of a Layer: https://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/MapServer/0?f=json
... View more
05-29-2017
12:43 AM
|
1
|
0
|
455
|
POST
|
Hi, There is this sandbox sample "Watch For Changes". I believe, this snippet taken from the same sample should work for you too. Still if it doesn't work then i think there could be some other error in script that is preventing this event to trigger. // Listen to layer change events on all of map's layers
// Only listening to layer added event in this case.
map.allLayers.on("change", function(event) {
// change event fires after an item has been added, moved or removed from the collection.
// event.moved - an array of moved layers
// event.removed - an array of removed layers
// event.added returns an array of added layers
if (event.added.length > 0) {
event.added.forEach(function(layer) {
var info = "<br> <span> layer added: </span> " + layer.title;
displayMessage(info);
});
}
});
... View more
05-29-2017
12:09 AM
|
0
|
3
|
3077
|
POST
|
Hi, If target is an exact record did you try using the Equal operator. select * from PERMITMASTER where ADDRESS='509 BERRY CT'
... View more
05-28-2017
11:52 PM
|
1
|
1
|
2284
|
Title | Kudos | Posted |
---|---|---|
1 | 10-12-2021 04:45 AM | |
1 | 05-31-2017 04:51 AM | |
1 | 06-01-2017 12:18 AM | |
1 | 06-04-2017 01:28 AM | |
1 | 06-27-2018 03:12 AM |
Online Status |
Offline
|
Date Last Visited |
02-17-2024
05:23 PM
|