POST
|
Kelly, Now at version 3.2 in I.E. when I launch the app I get a little dialog/message stating "Only secured content is displayed" and there is a button to display all content. I hit that but no map layers and really that doesn't make sense because everything is secure...OH except the ESRI and Bing Base Layers??? Umm??? Well I ran the code through JSLint and it looks bad...lots of messy white space and using dojo, esri, and dijit before defined " 'dojo' was used before it was defined." Not really sure about that started with a web template and that is how you guys did it. Attached is my layout.js that I attached to the first message hasn't changed except version 2.8 is now 3.2 and my web server address and proxy address. If you really want to see it all I could send you my code? I could also give you my app address but all my services aren't secured..still working securing them one by one and one site at a time. Hum, what about just moving back to 3.1 where there were no issue. You mentioned before a lot of new changes to identity manger at 3.2? J
... View more
01-03-2013
01:36 PM
|
0
|
0
|
938
|
POST
|
Kelly, Thanks for all the replies. It was my proxy file. After I did the change in my proxy I got the ESRI site working and My site working. I do have a different issue/question. My site runs fine in I.E. with version 3.1. But with version 3.2 it does not display any services or map layers (secured or unsecured). It does work in Firefox with version 3.2. Do you know what could be causing this. I' have a sea proxy and an SSL certificate on the server that hosts the app and proxy. Thanks J p.s. can't wait to see what you guys roll out at the Dev Summit!
... View more
01-03-2013
12:58 PM
|
0
|
0
|
938
|
POST
|
Kelly, Thanks for the response! That helped with my questions about the ESRI Sample but still doesn't explain why I don't see a log-in dialog box for my application. I posted my code in a zip. It is a simple app with two feature layers and when I use Mozilla I don't see the log-in credential splash dialog; it just goes into my app and doesn't show my locked feature services. Any suggestions? THanks Jay
... View more
01-02-2013
02:48 PM
|
0
|
0
|
938
|
POST
|
Still looking for help. I really need to lcok down this services that is exposed. Can someone help?
... View more
01-02-2013
12:02 PM
|
0
|
0
|
938
|
POST
|
Rahul_M, The conditions are met: 1. ArcGIS Server resources secured is using token-based authentication. 2. ArcGIS Server versions is 10.1.1. Current Version: 10.11 Full Version: 10.1.1 SOAP URL: http://myserver/arcgis/services Secure SOAP URL: https://myserver/arcgis/services Authentication Information: Is Token Based Security: true Token Service URL: https://myserver/arcgis/tokens/ ShortLived Token Validity: 60 minutes Thanks for the reply. I hoping someone can look at my code and maybe shed some light there. Also I'm wondering about I.E. 9 problems because I can't get the ESRI example to work with I.E. 9 but it does work with FireFox...all noted in original post. J
... View more
12-27-2012
06:47 AM
|
0
|
0
|
938
|
POST
|
Attached is my layout.js. I've added the identity manager and secured my feature service and I'm not getting prompted for creditials. The feature services doesn't show or draw. I'm at version 2.8. If I flip over to 3.2 none of my layers draw in I.E version 9.0.8112 but they do in Mozilla. Either way I don't see the login dialog for the sercured service. Am I missing something? Do I need to be at 3.2? Does I.E. 9.0.8112 support 3.2? If I download the sample index.html file and load it on my machine. It works in firefox. I'm propmt for creditals but in I.E. I'm never prompt and don't see the feature layer. THanks J
... View more
12-26-2012
02:11 PM
|
0
|
9
|
1308
|
POST
|
Below is my layout.js. I've added the identity manager and secured my feature service and I'm not getting prompted for creditials. The feature services doesn't show or draw. I'm at version 2.8. If I flip over to 3.2 none of my layers draw in I.E version 9.0.8112 but they do in Mozilla. Either way I don't see the login dialog for the sercured service. Am I missing something? Do I need to be at 3.2? Does I.E. 9.0.8112 support 3.2? THanks J
dojo.require("esri.map");
dojo.require("esri.arcgis.utils");
dojo.require("esri.IdentityManager");
dojo.require("dijit.layout.TabContainer")
dojo.require("esri.dijit.editing.Editor-all");
dojo.require("esri.dijit.BasemapGallery");
dojo.require("dijit.Tooltip");
dojo.require("esri.dijit.Legend");
dojo.require("dijit.form.CheckBox");
dojo.require("esri.tasks.locator");
dojo.require("dojo.number");
dojo.require("dojox.grid.DataGrid"); //Find task - data table grid
dojo.require("dojo.data.ItemFileReadStore"); //Find Task
dojo.require("esri.tasks.find"); //find task
dojo.require("esri.tasks.query"); //query task
dojo.require("esri.SnappingManager");
var map;
var editorSettings;
var map;
var basemapGallery;
var bingKey = 'AiTi9z8-SSO1SqTeqHIhX2FOOe41v74qv_NIuw4JBnoyWwmybvT5uaFt8HSzIvgN';
var legendLayers = [];
//for layer list
var visible = [];
var Baselayers;
var mapLayers = []; //array of layers in client map - for feature layers to map
var locator;
var findTask; //Find Task
var findParams; //Find Task
var grid; //Find Task
var store; //Find Task
var queryTask; //Query Task
var query; //Query Task
function init() {
dojo.connect(grid, "onRowClick", onRowClickHandler); //FIND TASK
// dojo.connect(gridsup, "onRowClick", onRowClickHandler); //FIND TASK
//
//hide grid on startup
esri.hide(dojo.byId("grid")); //Grid for Signs
esri.hide(dojo.byId("gridsup")); //Grid for supports
//snapping is enabled for this sample - change the tooltip to reflect this
esri.bundle.toolbars.draw.start = esri.bundle.toolbars.draw.start + "<br/>Press <b>CTRL</b> to enable snapping";
esri.bundle.toolbars.draw.addPoint = esri.bundle.toolbars.draw.addPoint + "<br/>Press <b>CTRL</b> to enable snapping";
//This sample requires a proxy page to handle communications with the ArcGIS Server services. You will need to
//replace the url below with the location of a proxy on your machine. See the 'Using the proxy page' help topic
//for details on setting up a proxy page.
esri.config.defaults.io.proxyUrl = "/proxypage_net/proxy.ashx";
//This service is for development and testing purposes only. We recommend that you create your own geometry service for use within your applications
esri.config.defaults.geometryService = new esri.tasks.GeometryService("http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer");
var extent = new esri.geometry.Extent({
"xmin": -13048964.9158736,
"ymin": 3906979.12225891,
"xmax": -13008585.9918137,
"ymax": 3922872.31483902,
"spatialReference": {
"wkid": 102100
}
});
map = new esri.Map("map", {
extent: extent,
logo:false
});
//Create Basemap Gallery
createBasemapGallery();
dojo.connect(map, "onLoad", function() {
//resize the map when the browser resizes
dojo.connect(dijit.byId('map'), 'resize', map,map.resize);
});
dojo.connect(map, "onLayersAddResult", initEditing);
//Add the topographic layer to the map. View the ArcGIS Online site for services http://arcgisonline/home/search.html?t=content&f=typekeywords:service
var basemap = new esri.layers.ArcGISTiledMapServiceLayer("http://myserver/ArcGIS/rest/services/Imagery_102100/MapServer");
map.addLayer(basemap);
Baselayers = new esri.layers.ArcGISDynamicMapServiceLayer
("http://myserver/ArcGIS/rest/services/BaseLayers_102100/MapServer",{"opacity":0.5});
// legendLayers.push({layer:Baselayers,title:"Baselayers"});
map.addLayer(Baselayers);
legendLayers.push({layer:Baselayers,title:'Base Layers'});
//for layer list
if (Baselayers.loaded) {
buildLayerList(Baselayers);
}
else {
dojo.connect(Baselayers, "onLoad", buildLayerList);
}
//end code for layerlist
var editSigns = new esri.layers.FeatureLayer("http://myserver/ArcGIS/rest/services/Signs/FeatureServer/0", {
mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
outFields: ["*"]
});
mapLayers.push(editSigns);
var editSignSupports = new esri.layers.FeatureLayer("http://myserver/ArcGIS/rest/services/Signs/FeatureServer/1", {
mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
outFields: ["*"]
});
mapLayers.push(editSignSupports);
legendLayers.push({layer:editSignSupports,title:'SignSupport'});
legendLayers.push({layer:editSigns,title:'Signs'});
//############################Add for out of the box legend ######################///
dojo.connect(map,'onLayersAddResult',function(results){
var legend = new esri.dijit.Legend({
map:map,
layerInfos:legendLayers
},"legendDiv");
legend.startup();
});
//############################end Add for out of the box legend ######################///
map.addLayers([editSignSupports, editSigns]);
// map.addLayers([operationsPointLayer, operationsPolygonLayer, operationsLineLayer]);
// dojo.byId("title") = test;//response.itemInfo.item.title;
// dojo.byId("dataSource") = <p> Test </>;
//locator = new esri.tasks.Locator("http://tasks.arcgis.com/ArcGIS/rest/services/WorldLocator/GeocodeServer");
locator = new esri.tasks.Locator("http://myserver/ArcGIS/rest/services/AddressLoc102100/GeocodeServer");
dojo.connect(locator, "onAddressToLocationsComplete", showResults);
// map.infoWindow.resize(200,125);
//************************FIND TASK for SIGNS *********************************************
//Create Find Task using the URL of the map service to search
findTask = new esri.tasks.FindTask("http://myserver/ArcGIS/rest/services/Signs/MapServer/");
// findTask = new esri.tasks.FindTask("http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/TaxParcel/TaxParcelQuery/MapServer/");
//Create the find parameters
findParams = new esri.tasks.FindParameters();
findParams.returnGeometry = true;
findParams.layerIds = [0];
// findParams.searchFields = ["SIGNTYPE"];
// findParams.searchFields = ["OWNERNME1","OWNERNME2"];
findParams.searchFields = ["DATEINST","SIGNCATEGORY","SIGNTYPE","DIRFACES","SUBSTRMAT","BACKGRDMAT","SIGNSIZE","SIGNMEMO","HEIGHT","SUPPORTID"];
findParams.outSpatialReference = map.spatialReference;
//*****************************FIND TASK *******************************************************************************
//**************************Sign QUERY TASK ***************************************////
// build query
queryTask = new esri.tasks.QueryTask("http://myserver/ArcGIS/rest/services/Signs/MapServer/0");
//dojo.connect(queryTask, "onComplete", showResults);
//build query filter
query = new esri.tasks.Query();
query.returnGeometry = true;
// query.outFields = ["FACILITYID","DATEINST","SIGNCATEGORY","SIGNTYPE","DIRFACES","SUBSTRMAT","BACKGRDMAT","SIGNSIZE","SIGNMEMO","HEIGHT","SUPPORTID","OBJECTID"];
query.outFields = ["*"];
query.outSpatialReference = map.spatialReference;
//************************** END Sign QUERY TASK ***************************************////
//**************************Support QUERY TASK ***************************************////
// build query
queryTaskSupport = new esri.tasks.QueryTask("http://myserver/ArcGIS/rest/services/Signs/MapServer/1");
//build query filter
querySupport = new esri.tasks.Query();
querySupport.returnGeometry = true;
querySupport.outFields = ["*"];
querySupport.outSpatialReference = map.spatialReference;
... View more
12-26-2012
02:05 PM
|
0
|
0
|
792
|
POST
|
Instead of binding to the SelectedWellsTreeView_SelectedItemChanged Event and Binding with SelectedWellsTreeView.Tag. Create a GraphicsLayer_PropertyChange Event for your graphics layer which is binded to your FDG (QueryDetailsDataGrid) and bind with the OBJECTID, I threw in a message box so you can double check it is same APN. private void GraphicsLayer_PropertyChanged(object sender, PropertyChangedEventArgs e) { if (e.PropertyName == "SelectedGraphics" && ResultsDisplay.IsOpen == true && QueryDetailsDataGrid.SelectedGraphics.Count == 1) { GraphicsLayer selectionGraphicslayer = Map.Layers["MySelectionGraphicsLayer"] as GraphicsLayer; var objectidi = QueryDetailsDataGrid.SelectedGraphics.First().Attributes["OBJECTID_1"]; strObjecitID = objectidi.ToString(); intObjectID = Int32.Parse(strObjecitID); MessageBox.Show(strObjecitID); RelationshipParameter relationshipParameters = new RelationshipParameter() { Convert.ToInt32(QueryDetailsDataGrid.SelectedGraphics.First().Attributes["OBJECTID"] as string) }, ObjectIds = new int[] { intObjectID }, OutFields = new string[] { "*" }, RelationshipId = 0, OutSpatialReference = Map.SpatialReference, }; queryTask.ExecuteRelationshipQueryAsync(relationshipParameters); relateIDstring = apn10; } }
... View more
11-21-2012
12:46 PM
|
0
|
0
|
200
|
POST
|
I'm getting ready to design a database that will meet the CAL FIRE Grant-Funded Tree Inventories specs (http://www.fire.ca.gov/resource_mgt/downloads/CALFIRE_UFGrants_Inventory_2012_2013.pdf). Before I start I was wondering if someone has already completed something similar. If I can't find a File GDB, I was wondering if anyone had a list of all tree species (genus and species plus common name). Thanks Jay
... View more
09-27-2012
08:06 AM
|
0
|
2
|
311
|
POST
|
Silverlight 5 shouldn't be the problem the template was built with 5. Did you just download it or is it from the old resource center? Under your Reference in the Solution Explorer are all the ref paths good..especially the System.Windows.dll? Jay
... View more
08-15-2012
09:15 AM
|
0
|
0
|
306
|
POST
|
YOu have two slashes in you address http://minxing/ArcGIS//services/binhai/MapServer I also think you need to add the word rest http://minxing/ArcGIS/rest/services/binhai/MapServer Jay
... View more
08-14-2012
08:05 AM
|
0
|
0
|
267
|
POST
|
When you hit the rest end point http://yourservername/arcgis/rest/services and click on the service you published Then click View In ArcGIS JavaScript Can you see the map with that? Can you view the source code? If you can then I think it might be your silverlight app code. Jay
... View more
08-14-2012
07:51 AM
|
0
|
0
|
267
|
POST
|
James, I'm not sure entirely what you are trying to accomplish. You have a table in SDE oracle and you want to write records to that table? You have to add that table as a feature layer so you can write to it. Add it to you mxd/msd and publish it as a feature layer and then write away. Once it is added as a feature layer you can write some query tools to query it and then display that information in a Feature Data Grid or Form. I would maybe bind it to a FeatureDataGrid (see the sample gallery for that...easy straight forward) and then add a button to the feature data grid or form to add a new record. Something like this:
<Button x:Name="AddNewRow" Margin="5,0" Style="{StaticResource MenuButtonStyle}" Click="addrowButton_Click">
<TextBlock Margin="5" Text="Add a new record" VerticalAlignment="Center"/>
</Button>
and the add button code would look something like this:
private void addrowButton_Click(object sender, RoutedEventArgs e)
{
var g = new Graphic();
if (l != null && l.LayerInfo != null && l.LayerInfo.Fields != null)
{
foreach (var f in l.LayerInfo.Fields)
{
// if you want to prepopulate fields add that info here: something like -
//g.Attributes["DateTime"] = DateTime.UtcNow;
}
}
else
{
//g.Attributes["DateTime"] = DateTime.UtcNow;
}
l.Graphics.Add(g);
}
Hope that helps Jay
... View more
08-14-2012
07:46 AM
|
0
|
0
|
157
|
POST
|
Moses, Have you tried tracing your error in Fiddler to see what is happening? If you are unfamiliar with Fiddler check out this link where I explain how to use Fiddler. http://forums.arcgis.com/threads/22613 If you send the Fiddler information. I might be able to help. Jay
... View more
08-14-2012
07:20 AM
|
0
|
0
|
203
|
POST
|
Not sure if that first attachment is working...here it is again.
... View more
05-17-2012
07:49 AM
|
0
|
0
|
457
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|