|
POST
|
Russ, I have added you to a group i have created. I cannot get the map to download for offline using the App on my iPhone 5. Would you be able to take a look at it? Thank you!
... View more
11-24-2014
08:38 AM
|
0
|
2
|
1269
|
|
POST
|
One more quick question: I watched the demo for Damage Assessment App. In the video it shows adding a photo. Is the photo managed using attachment manager?
... View more
11-20-2014
11:45 AM
|
0
|
2
|
1195
|
|
POST
|
So, would the service created from the feature class support the domains?
... View more
11-20-2014
07:35 AM
|
0
|
4
|
1195
|
|
POST
|
Thanks! i got the returnDistinct to work. now i will work on the stats...thanks again!
... View more
11-03-2014
01:12 PM
|
0
|
0
|
1510
|
|
POST
|
Do i need to redo myQueryTask and replace it with the StatisticDefinition? or is there a place in my code i can implement that? Sorry i am still learning...
... View more
11-03-2014
12:56 PM
|
0
|
2
|
1510
|
|
POST
|
I looked at those methods but was unclear of how to implement them with the grid. I will do more research and see how to make them work...Thanks!
... View more
11-03-2014
12:44 PM
|
0
|
4
|
1510
|
|
POST
|
I am creating a dojo grid. I would like to have the grid give me unique values for the Lease Type with the sum in a column next to it. The output looks like this: I would like it to show one Lease Type with the sum of the Annual Revenue. Here is the code i am using:
var grid;
var myLeaseData;
var myQueryTask;
var UniqueLeaseCodes = [];
var FoundLeaseCode = false;
var myQuery;
require([
"esri/tasks/QueryTask", "esri/tasks/StatisticDefinition", "esri/tasks/query",
"dojo/number", "dojo/date/locale", "dojo/dom", "dojo/on",
"dojo/_base/array", "dojo/store/Memory",
"dgrid/OnDemandGrid", "dojo/domReady!"
], function (
QueryTask, StatisticDefinition, Query,
number, locale, dom, on,
arrayUtils, Memory,
OnDemandGrid
) {
// create a dgrid
var sortAttr = [{
attribute: "LEASE_TYPE",
descending: false
}];
grid = new OnDemandGrid({
store: new Memory({
idProperty: "name"
}),
columns: {
name: "Lease Type",
annualExpense: {
label: "Annual Expense",
formatter: formatRound
}
},
sort: sortAttr,
query: {STATUS: "Active"},
}, "grid");
myQueryTask = new QueryTask(getUrlKlondike('Leases'));
var myDate = new Date();
var myMS = myDate.getMilliseconds();
myQuery = new Query();
myQuery.outFields = ['*'];
myQuery.returnGeometry = false;
myQuery.where = "(" + myMS + "=" + myMS + ")";
myQueryTask.execute(myQuery, function (results) {
myLeaseData = [
{name: "", id: ""},
{name: "", id: ""}
];
for (var i = 0; i < results.features.length; i++) {
if (results.features.attributes.LEASE_TYPE) {
myLeaseData.push({
name: results.features.attributes.LEASE_TYPE,
annualExpense: results.features.attributes.ANNUAL_EXPENSE,
annualRevenue: results.features.attributes.ANNUAL_REVENUE,
leaseDPSF: results.features.attributes.DOLLARS_PER_SQ_FT,
objectIDCheck: results.features.attributes.LEASE_ID,
id: results.features.attributes.LEASE_ID,
OBJECTID: results.features.attributes.OBJECTID,
SQ_FT: results.features.attributes.SQ_FT,
EFFECTIVE_DATE: results.features.attributes.EFFECTIVE_DATE,
EXPIRATION_DATE: results.features.attributes.EXPIRATION_DATE,
LINK_TO_DOC: results.features.attributes.LINK_TO_DOC,
LESSEE: results.features.attributes.LESSEE,
LESSOR: results.features.attributes.LESSOR,
LEGAL_DESCRIPTION: results.features.attributes.LEGAL_DESCRIPTION,
LEASE_TERM_YEARS: results.features.attributes.LEASE_TERM_YEARS,
ANNUAL_REVENUE: results.features.attributes.ANNUAL_REVENUE,
ANNUAL_EXPENSE: results.features.attributes.ANNUAL_EXPENSE,
LESSOR_NAME: results.features.attributes.LESSOR_NAME,
LESSEE_NAME: results.features.attributes.LESSEE_NAME,
STATUS: results.features.attributes.STATUS,
CONTACT_DEPT: results.features.attributes.CONTACT_DEPT,
LEASE_USE: results.features.attributes.LEASE_USE,
LEASE_TYPE: results.features.attributes.LEASE_TYPE,
NOTES: results.features.attributes.NOTES,
DOC_ACRES: results.features.attributes.DOC_ACRES,
DOLLARS_PER_SQ_FT: results.features.attributes.DOLLARS_PER_SQ_FT,
RENEWAL_NOTIFICATION: results.features.attributes.RENEWAL_NOTIFICATION,
LEASE_ID: results.features.attributes.LEASE_ID
});
}
}
console.log('Query A: ' + myLeaseData.length);
updateGrid(myLeaseData);
});
// formatting function for numbers
function formatRound(value) {
return number.round(value, 2);
}
function updateGrid(myLeaseData) {
grid.store.setData(myLeaseData);
grid.refresh();
}
});
... View more
11-03-2014
11:51 AM
|
0
|
7
|
1941
|
|
POST
|
Ok, i have a backwards question: How "DO" i include the sublayers in the legend? here is my code bringing in the layer that has the sublayers: -----Layer: ImprovementsAll (ID: 17) Sub Layers: ImprovementsStanding ImprovementsNoStatus ImprovementsConstruction ImprovementsMaintained ImprovementsPaved ImprovementsPlanning ImprovementsRemoved ImprovementsSold ImprovementsUnpaved Name: ImprovementsAll Display Field: Type: Group Layer //add the improvement data buildingsLayer = new FeatureLayer(getUrlKlondike("ImprovementsAll"), { mode: FeatureLayer.MODE_ONDEMAND, id: 'ImprovementsAll', visible: true, infoTemplate: template1, outFields: ["*"] }); legendLayers.push({layer: buildingsLayer, title: 'Improvements:'}); when i add the buildingsLayer to: map.addLayers([easementsLayer, easementsSelectLayer, disposalsLayer,buildingsLayer]}; it makes it so no layers are visible and the map hangs up. Any help would be greatly appreciated. Thanks!
... View more
10-20-2014
12:08 PM
|
0
|
0
|
1162
|
|
POST
|
What if i want to zoom to latitude/longitude i enter in to a textbox? How would that work?
... View more
10-16-2014
09:14 AM
|
0
|
2
|
1782
|
|
POST
|
Can you show an example in Fiddle or JSBin? Ken, Here is a sample: http://jsfiddle.net/Mr_Kirkwood/x4tgd/ I guess another question would be - how do i get tooltips to show up on the zoom in and zoom out buttons? Also, the overview map is in the bottom left...
... View more
04-10-2014
07:08 AM
|
0
|
0
|
1954
|
|
POST
|
Did you try what Kelly suggested in an earlier post? Ken, I have tried various versions of it. here is an example:
var showText = esriBundle.widgets.overviewMap.NLS_show;
overviewMapDijit.on("load", function(){
query('div[title ="' + showText + '"]').forEach(function(node){
domAttr.remove(node, "title");
domAttr.set(node, "data-title", showText);
});
});
CSS.. [data-title]:hover:after {
content: attr(data-title);
text-align: center;
font-family: Arial;
font-size: 11px;
font-weight: bold;
background-color: white;
border: 1px solid #000000;
border-radius: 1px;
padding: 4px 8px;
left: 40px;
width: 40px;
z-index: 20px;
position: absolute;
} but to no avail...
... View more
04-09-2014
08:33 AM
|
0
|
0
|
1954
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-16-2022 11:47 AM | |
| 1 | 06-28-2017 06:36 AM | |
| 1 | 06-23-2016 06:54 AM | |
| 1 | 03-19-2015 01:21 PM | |
| 1 | 07-20-2017 06:07 AM |
| Online Status |
Offline
|
| Date Last Visited |
08-12-2025
07:31 AM
|