|
POST
|
Yea...I started with 3.3.110 and used Quick report 3.3 Im going to try and create another to see.
... View more
04-30-2019
04:51 AM
|
0
|
4
|
2370
|
|
POST
|
Tina I have version 3.3.110 installed. In settings I put the feature service in there and then in the next line try 0,1,2 for the 3 features in the feature service. In settings > Properties > Form Feature Service Address - URL of the feature service LayerID of the Feature Service - 0,1,2 I hit apply and it says "Settings Applied" If I go back into Settings and check the LayerID of the Feature Service is empty! If I just specify one of the numbers like 2 and Apply it works. Any ideas? Trying this but the values dont stay after APPLY https://community.esri.com/groups/appstudio/blog/2019/03/01/what-s-new-in-templates-for-appstudio-33-beta
... View more
04-29-2019
02:03 PM
|
0
|
6
|
4776
|
|
POST
|
I just installed App Studio and have been creating some simple apps from the examples. I then saw the Quick Report Example (3.2) Questions: Through AppStudio can you: 1. Leverage a secured Feature Service running from my ArcGIS Server 2. Configure this app to go offline I am looking for a solution that would allow my to update and add features to an ArcGIS Server Feature Service AND most importantly go offline. I saw something about a Map Package from ArcGIS Pro and going offline. Or is this just for Basemaps etc
... View more
04-17-2019
08:50 AM
|
0
|
3
|
1236
|
|
POST
|
Think I got it.... function ConvertToCSV2(objArray) {
let rows = typeof objArray !== "object" ? JSON.parse(objArray) : objArray;
let header = "";
Object.keys(rows[0]).map(pr => (header += pr + ","));
let str2 = "";
rows.forEach(row => {
let line = "";
let columns =
typeof row !== "object" ? JSON.parse(row) : Object.values(row);
columns.forEach(column => {
if (line !== "") {
line += ",";
}
if (typeof column === "object") {
line += JSON.stringify(column);
} else {
line += column;
}
});
str2 += line + "\r\n";
});
return header + "\r\n" + str2;
}
// Grab my Json return from the query and send to function
var RailroadCSVObject2 = ConvertToCSV2(RailroadJSONObject);
// Grab the value and export a csv file for the user.
var pom = document.createElement('a');
var csvContent=RailroadCSVObject2; //here we load our csv data
var blob = new Blob([csvContent],{type: 'text/csv;charset=utf-8;'});
var url = URL.createObjectURL(blob);
pom.href = url;
pom.setAttribute('download', 'DataExport.csv');
pom.click();
... View more
03-07-2019
08:38 AM
|
0
|
0
|
2591
|
|
POST
|
If I do this I get a decent return but no headers.....how do I add the headers to this final output of this // JSON to CSV Converter
function ConvertToCSV(objArray) {
var array = typeof objArray != 'object' ? JSON.parse(objArray) : objArray;
var str = '';
for (var i = 0; i < array.length; i++) {
var line = '';
for (var index in array[i]) {
if (line != '') line += ','
line += array[i][index];
}
str += line + '\r\n';
}
return str;
}
var RailroadCSVObject = ConvertToCSV(RailroadJSONObject);
... View more
03-07-2019
07:34 AM
|
0
|
2
|
2591
|
|
POST
|
I have a return from a query that I am pushing to a dgrid. That works fine. I want to take this json return and convert it to .csv I tried the code below and sent to an alert and it puts a comman after each character??? json simplify: var json = JSONObject; // This is my json object as seen in the image above
var csv = "";
function toCSV(json) {
alert("In Function");
json = Object.values(json);
var keys = (json[0] && Object.keys(json[0])) || [];
csv += keys.join(',') + '\n';
for (var line of json) {
csv += keys.map(key => line[key]).join(',') + '\n';
}
return csv;
}
toCSV(json);
alert(csv); This is the return I get when I alert the CSV variable....
... View more
03-07-2019
06:48 AM
|
0
|
3
|
2875
|
|
POST
|
Found a fix in the CHOICE tab in the excel file to symbolize specific text... choiceAnglerBoat angler <font color="red">Angler </font>
... View more
03-01-2019
05:58 AM
|
0
|
0
|
1453
|
|
POST
|
I am having a layout issue looking for some thoughts.... I want a black background with white text. Simple enough right....nope. The problem I am facing is that when I change the "Input Text Color" it effects: The text in the drop down The text for the radio buttons So with a Black background and a White Drop down background: If I made the text black it does not show up in the Radio Buttons If I make the text white if does not show up in the Drop Down box As you can see in my example it is gray but extremely hard to see in the sunlight Is there a way to: Change the color of the text specifically in the Drop Down box Change the color of the drop down background Change the color of the Radio Button text specifically
... View more
02-28-2019
06:26 AM
|
0
|
1
|
1564
|
|
POST
|
I found the error...it was in an unrelated function regarding a find near me tool....while I did not pin point the issue at this time I was able to comment out the code and remedy the problem. Thank you Robert for pointing out the fact that the code and service was working. It took me down another path that allowed me to see the real issue. Much appreciated.
... View more
02-07-2019
08:11 AM
|
0
|
0
|
2004
|
|
POST
|
OK I modified a bit to replicate what I have in my code....this appears to be working so it must be something else in my code that is causing this to happen... Maybe my legend build and the button to turn on an off the layer....will look further.. <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<title>FeatureLayer</title>
<link rel="stylesheet" href="https://js.arcgis.com/3.27/esri/css/esri.css">
<script>
var packagePath = window.location.pathname.substring(0, window.location.pathname.lastIndexOf('/'));
//dojoConfig define non-esri JavaScript source required before loading arcgis js
var dojoConfig = {
packages: [
{
name: "js",
location: packagePath + "/js"
}
]
};
</script>
<script src="https://js.arcgis.com/3.27/"></script>
<script src="js/layerlist_Railroads_TEST.js"></script>
<style>
html, body, #map {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
</style>
<script>
require([
"esri/map","esri/layers/FeatureLayer","esri/InfoTemplate","dojo/_base/lang","dojo/_base/array","dojo/domReady!"
],
function(
Map,FeatureLayer,InfoTemplate,lang,array
) {
var map = new Map("map", {
basemap: "hybrid",
center: [-79.383417, 36.581599],
zoom: 11,
showLabels : true
});
// Call the JS page that has all the GRID stuff in it. Run the Functions
window.LayerListRailroads();
map.addLayers([
RailroadCrossings
]);
});
</script>
</head>
<body>
<div id="map"></div>
</body>
</html> require([
"esri/map", "dojo/dom", "esri/layers/FeatureLayer","dojo/on", "dojo/_base/array", "dojo/_base/lang",
"esri/urlUtils", "dijit/registry", "esri/arcgis/utils", "esri/domUtils",
"dojo/_base/connect", "dojo/_base/array", "dojo/parser", "esri/InfoTemplate", "dijit/form/CheckBox",
"dojo/dom-construct", "dojo/keys", "dojo/domReady!",
"js/widgets","js/grids"
], function(
Map, dom, FeatureLayer, on, array, lang,
urlUtils, registry, arcgisUtils, domUtils,
connect, arrayUtils, parser, InfoTemplate, CheckBox,
domConstruct, keys
) {
window.LayerListRailroads = function(){
//window.legendLayers6 = [];
// LAYER FILES =======================================================================================
// RAILS -------------------------
// GRAB THE DOMAIN VALUE FROM RailroadCrossings instead of the coded value
var subTypeValRR;
getSubtypeDomainRR = function (fieldVal, fieldName){
if (RailroadCrossings.typeIdField!=null) {
//console.log("Have Subtypes");
if (fieldName==RailroadCrossings.typeIdField) {
array.forEach(RailroadCrossings.types, lang.hitch(this, function (lsf) {
if (fieldVal==lsf.id){
fieldVal=lsf.name;
subTypeValRR=lsf.id;
}
}));
} else {
array.forEach(RailroadCrossings.types, lang.hitch(this, function (lsf) {
if (lsf.id==subTypeValRR){
array.forEach(lsf.domains[fieldName].codedValues, lang.hitch(this, function (domain) {
if (fieldVal==domain.code){
fieldVal=domain.name;
}
}));
}
}));
}
} else {
//console.log("No Subtypes");
subTypeValRR=null;
array.forEach(RailroadCrossings.fields, lang.hitch(this, function (ldf) {
if (ldf.name==fieldName){
if (ldf.domain){
array.forEach(ldf.domain.codedValues, lang.hitch(this, function(domain){
if (fieldVal==domain.code){
fieldVal=domain.name;
}
}));
}
}
}));
}
return fieldVal;
};
var infoTemplateRailroadCrossings = new InfoTemplate();
infoTemplateRailroadCrossings.setTitle("Railroad Crossingss");
infoTemplateRailroadCrossings.setContent("<table>" +
"<tr><td id='tblTitle'>Railroad Crossing</td><td id='tblTitle2'></td></tr>" +
"<tr><td id='tblTitleLine'></td><td id='tblTitleLine2'></td></tr>" +
"<tr><td></td><td></td></tr>" +
"<tr><td id='tblMainline1'>crossing</td><td id='tblSubline2'>${CROSSING}</td></tr>" +
"<tr><td id='tblMainline1'>date</td><td id='tblSubline2'>${EFFDATE}</td></tr>" +
"<tr><td id='tblMainline1'>reason</td><td id='tblSubline2'>${REASON:getSubtypeDomainRR}</td></tr>" +
"<tr><td id='tblMainline1'>rr</td><td id='tblSubline2'>${RAILROAD}</td></tr>" +
"<tr><td id='tblMainline1'>rr division</td><td id='tblSubline2'>${RRDIV}</td></tr>" +
"<tr><td id='tblMainline1'>rr subdivision</td><td id='tblSubline2'>${RRSUBDIV}</td></tr>" +
"<tr><td id='tblMainline1'>highway</td><td id='tblSubline2'>${HIGHWAY}</td></tr>" +
"<tr><td id='tblMainline1'>street</td><td id='tblSubline2'>${STREET}</td></tr>" +
"<tr><td id='tblMainline1'>milepost</td><td id='tblSubline2'>${MILEPOST}</td></tr>" +
"<tr><td id='tblMainline1'>crossing type</td><td id='tblSubline2'>${TYPEXING:getSubtypeDomainRR}</td></tr>" +
"<tr><td id='tblMainline1'>crossing pos</td><td id='tblSubline2'>${POSXING:getSubtypeDomainRR}</td></tr>" +
"<tr><td id='tblMainline1'>rrcont</td><td id='tblSubline2'>${RRCONT}</td></tr>" +
"<tr><td id='tblMainline1'>inv link</td><td id='tblSubline2'><i>For more INV information please <a href='${INV_LINK}' target='_blank'><font color='0x84CCDA'>click here</font></a>."+
"<tr><td id='tblMainline1'>acc link</td><td id='tblSubline2'><i>For more ACC information please <a href='${ACC_LINK}' target='_blank'><font color='0x84CCDA'>click here</font></a>."+
"</table><hr>");
window.RailroadCrossings = new FeatureLayer("https://fragis.fra.dot.gov/fragis/rest/services/FRAGradeXing/MapServer/0", {
mode: FeatureLayer.MODE_ONDEMAND,
showLabels: false,
visible: true,
opacity: 0.5,
outFields:["*"],
infoTemplate: infoTemplateRailroadCrossings,
id:"RailroadCrossing",
definitionExpression: " StateCode='51' AND POSXING='1' "
});
// Set Definition Criteria
//RailroadCrossings.setDefinitionExpression(" StateCode='51' AND POSXING='1' ");
// Push to Layer List
//legendLayers6.push({ layer: RailroadCrossings, title: 'Railroad Crossings' });
// END LAYER FILES =======================================================================================
} // End of LoadLayerList
}); // End fo require
... View more
02-06-2019
11:36 AM
|
0
|
1
|
2004
|
|
POST
|
hmmmm...interesting...Maybe something to do with having my code in a seperate js file that I am referencing and using window. to get back to the main js page....will have to look closer...
... View more
02-06-2019
10:57 AM
|
0
|
1
|
2004
|
|
POST
|
I am consuming this service for Railroad crossings. When I put it in my app it renders the labels when the layer is turned off. When I turn it on it still shows them. I cant seem to turn them off....I want them to turn off when I turn the layer off. Layer: Rail Crossings (ID: 0) Any thoughts? I am trying to below but nothing seems to work. window.RailroadCrossings = new FeatureLayer("https://fragis.fra.dot.gov/fragis/rest/services/FRAGradeXing/MapServer/0", {
mode: FeatureLayer.MODE_ONDEMAND,
showLabels: false,
onStatusChanged: {
if(status = Enums.LayerStatusInitialized) {
enableLabels = false;
}
},
infoTemplate: infoTemplateRailroadCrossings,
id:"RailroadCrossing",
definitionExpression: " StateCode='51' AND POSXING='1' "
}); I also tried to showLabels as false on the map itself but then no other labels show up...I have them true in this example window.map = new Map("map", {
basemap: "gray",
center: [-77.980586, 37.566286],
zoom: 15,
logo: false,
showLabels : true
});
... View more
02-06-2019
09:54 AM
|
0
|
6
|
2079
|
|
POST
|
Looking for a good place to start to reference and build a mobile app that will: Popup a new screen when you identify a map feature And then hit an arrow to get back to the main map Maybe something with a find near me? Just look for a couple examples to show this workflow. Any help would be appreciated.
... View more
01-31-2019
01:28 PM
|
0
|
0
|
596
|
|
POST
|
????? Didnt read to much into this but how about this Set the WebContextURL with this workflow: Do the following to change the WebContextURL: Open a web browser and sign in to the ArcGIS Portal Directory as a member of the default administrator role in your portal organization. The URL is formatted https://portal.domain.com:7443/arcgis/portaladmin. Click System > Properties > Update Properties. On the Update System Properties dialog box, insert the following JSON, substituting your own reverse proxy server or DNS alias URL as seen by users outside your organization's firewall. { "WebContextURL": "https://xxxxxxx.gov/portal" } To resolve the invalid_redirect_URI, see the attached PDF. Accessing the Portal using the native 7443 port uses a different certificate than what is installed in IIS. We can secure the Portal over the 7443 port, but it's not usually a necessity since all users are accessing using the web adaptor IIS. http://enterprise.arcgis.com/en/portal/latest/administer/windows/import-a-certificate-into-the-portal.htm
... View more
01-17-2019
01:36 PM
|
0
|
0
|
5689
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-20-2018 11:09 AM | |
| 1 | 09-10-2018 06:26 AM | |
| 1 | 09-15-2022 11:02 AM | |
| 1 | 05-21-2021 07:35 AM | |
| 1 | 08-09-2022 12:39 PM |
| Online Status |
Offline
|
| Date Last Visited |
09-19-2022
09:23 PM
|