|
POST
|
I want to obtain the attribute information of the following: With the following code I can get the GLOBALID, but I am in need of each attribute. I commented out what I tried to add. It did not work. For now, if you can give me an idea on how to do a second one, I can do the rest. Here is my code: on(dom.byId("btnSignPrevious"), "click", function () {
console.log("Previous Works");
var query = new esriQuery();
var queryTask = new QueryTask(config.signLayerUrl);
query.returnGeometry = false;
query.outFields = ["*"];
query.where = "SUPPORTID = " + dom.byId("signSupportId").value;
queryTask.execute(query, function (results) {
ii--;
// Attempting to know how many signs are in my results
// Use gettArray.html to get array values
var resultItems = [];
var resultCount = results.features.length;
if (ii > -1) {
console.log("Results start now!");
console.log(results);
var featureAttributes = results.features[ii].attributes.GLOBALID;
//var attachLoc = results.features[ii].attributes.ATTACHLOC;
for (var attr in featureAttributes) {
console.log("Attribute: " + featureAttributes);
}
//for (var attr in attachLoc) {
// console.log("ATTACHLOC:" + featureAttributes);
//}
} else {
console.log("This is where you will get the support information");
//document.getElementById("btnSupportNext").disabled = true;
}
})
}); And here is the release on github that matches this code: csergent45/streetSigns at db8123a8c67514aefd8739743fe75880e23f31e7 · GitHub
... View more
07-15-2015
12:18 PM
|
0
|
23
|
7921
|
|
POST
|
I have been waiting for that for eight years. Hope it's this one.
... View more
07-15-2015
11:31 AM
|
0
|
0
|
2182
|
|
POST
|
Yes, I am attending. I also will be presenting at the DevMeetup a project that I have gotten a lot of help on here with. Finishing up some final pieces that I hope to have ready in time. But, it's looking good.
... View more
07-15-2015
11:24 AM
|
1
|
2
|
1904
|
|
POST
|
I tried to enter my name, but I wanted it to invalidate that once I did; might need to extend it if I go .NET based on a button click event to see if an item is in the list.
... View more
07-15-2015
10:55 AM
|
0
|
0
|
694
|
|
POST
|
I am going to try to do it with just JavaScript for now, but this is some excellent information.
... View more
07-15-2015
10:54 AM
|
0
|
0
|
694
|
|
POST
|
This is awesome. Do you have it on Github as well? I wouldn't mind downloading the package.
... View more
07-15-2015
10:52 AM
|
0
|
11
|
1918
|
|
POST
|
This looks like what I want. Do you have a complete code sample so I could reference it as a template?
... View more
07-15-2015
09:18 AM
|
0
|
13
|
1918
|
|
POST
|
I went here: Search | API Reference | ArcGIS API for JavaScript but don't see those two events. Do you thinks search(value?) would work after the text is entered, or is onchange available in JavaScript in general?
... View more
07-15-2015
09:14 AM
|
0
|
0
|
1916
|
|
POST
|
I will. It's a .NET form, but it looks like I need to add GIS to it.
... View more
07-15-2015
09:10 AM
|
0
|
0
|
1916
|
|
POST
|
We want to verify that only valid addresses are entered into a contact form. All valid addresses come from our Web Address Locator. How do I validate each address to ensure that it is an address that we have in our system? Otherwise I want to block the user from sending the information. In other words I only want items from the autocomplete allowed for entry. Here is the form: Contact Information Update
... View more
07-15-2015
08:28 AM
|
0
|
23
|
7612
|
|
POST
|
Jay, The jQuery has the steps you need to go through, but you need to have Web App Builder Developer Edition. I agree with Robert, it could be a lot of trouble, as there is a lot of code in the Developer Edition, but if you have to do it, it is possible.
... View more
07-15-2015
07:57 AM
|
1
|
1
|
2727
|
|
POST
|
Would this work for you: embedly/jquery-preview · GitHub
... View more
07-14-2015
02:40 PM
|
1
|
4
|
2727
|
|
POST
|
I actually had to comment out the console.log line to remove it's error as shown below: /* Evaluate if any web services are not running */
app.map.on("layer-add-result", function (evt) {
//console.log(evt);
var evalLayers = evt.layer.valueOf();
if (evalLayers._div == null) {
/* Page Redirect */
window.location.assign("http://www.w3schools.com")
}
}); and I had to change the name of a button that was not on the HTML form: // Changed name to correct button name
on(dom.byId("btnSignPrevious"), "click", function () {
console.log("Previous Works");
var query = new esriQuery();
var queryTask = new QueryTask(config.signLayerUrl);
query.returnGeometry = false;
query.outFields = ["*"];
So this solved two questions that I had, so I just marked them assumed answered. Left it up for informational reasons; but didn't want to take points for figuring it out myself.
... View more
07-14-2015
02:06 PM
|
0
|
0
|
739
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-26-2015 12:31 PM | |
| 1 | 06-24-2015 06:06 AM | |
| 1 | 07-15-2015 12:34 PM | |
| 1 | 05-21-2015 02:27 PM | |
| 1 | 05-19-2015 11:52 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|