|
POST
|
I understand what you say, but: - why did you say that it is escaped while in your previous reply in the visualization of your response it is not escaped? - why is it that, if I follow either Querydata method or IRecordset (see my previous example) I have two different results; the first one escaped while the second not escaped? - the specification are not followed Thank you in advance for your help.
... View more
01-06-2012
08:22 AM
|
0
|
0
|
1042
|
|
POST
|
Thank you for replay. Sorry I made a mistake in my writing: I meant that backslash. I have in field DENOM a string with this text: "Test \r\n Test1" but I have this result from this stardard query request (ags .net 10sp3 with data in file geodatabase): http: //myserver/ArcGIS/rest/services/myservice/MapServer/0/query?text=&geometry=&geometryType=esriGeometryPoint&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&objectIds=1&where=&time=&returnCountOnly=false&returnIdsOnly=false&returnGeometry=true&maxAllowableOffset=&outSR=&outFields=*&f=pjson ... "features" : [ { "attributes" : { "OBJECTID" : 1, "IDEXT" : "01555", "DENOM" : "Test \\r\\n Test1", "INSEGNA" : " ", .... What's the problem? I have tested also with querydata method in arcobjects and I have same problem. no problem with IRecordset arcobjects.
... View more
01-04-2012
01:40 AM
|
0
|
0
|
1042
|
|
POST
|
I have a value in a field string example "Test /n Test1...". If I publish a mapserver and I do a request rest query with response type json: it returns "Test //n Test1..." but from json.org for newline in string I use /n. In rest esri uses QueryData because I have tried with this method and I have same response but if I use IRecordset I have no problem.
ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Desktop);
IRecordSet pNewRs = new RecordSet();
IRecordSetInit prsInit = pNewRs as IRecordSetInit;
IFields pFields = new Fields();
IFieldsEdit pFieldsEdit = pFields as IFieldsEdit;
pFieldsEdit.FieldCount_2 = 2;
IField pField = new Field();
IFieldEdit pFieldEdit = pField as IFieldEdit;
pFieldEdit.Name_2 = "Type";
pFieldEdit.Type_2 = esriFieldType.esriFieldTypeString;
pFieldEdit.Length_2 = 50;
pFieldsEdit.set_Field(0,pField);
pField = new Field();
pFieldEdit = pField as IFieldEdit;
pFieldEdit.Name_2 = "Area";
pFieldEdit.Type_2 = esriFieldType.esriFieldTypeDouble;
pFieldsEdit.set_Field(1,pField);
prsInit.CreateTable(pFields);
ICursor pIC = prsInit.Insert();
IRowBuffer pRowBuf = prsInit.CreateRowBuffer();
pRowBuf.set_Value(0, "Test /n Test1");
pRowBuf.set_Value(1, 10.2);
pIC.InsertRow(pRowBuf);
byte[] fs = Conversion.ToJson(pNewRs);
using (System.IO.FileStream f = new System.IO.FileStream(@"c:\test.txt", System.IO.FileMode.Create))
{
f.Write(fs, 0, fs.Length);
f.Flush();
f.Close();
}
I have "Test \n Test1" in test.txt:
{"displayFieldName":"","fieldAliases":{"Type":"Type","Area":"Area"},"fields":[{"name":"Type","type":"esriFieldTypeString","alias":"Type","length":50},{"name":"Area","type":"esriFieldTypeDouble","alias":"Area"}],"features":[{"attributes":{"Type":"Test \n Test1","Area":10.2}}]}
... View more
12-29-2011
05:49 AM
|
0
|
6
|
2192
|
|
POST
|
see http://msdn.microsoft.com/en-us/library/ms160330.aspx Ports used by the database server are open. If you are accessing SQL Server relational databases on external computers, or if the report server database is on an external SQL Server instance, you must open port 1433 and 1434 on the external computer. Be sure to restart the server after you open ports.
... View more
12-21-2011
06:46 AM
|
0
|
0
|
813
|
|
POST
|
here you can download api javascript: http://resources.arcgis.com/content/web/arcgis-javascript-api-download also if I suggest use api hosted from esri
... View more
11-06-2011
11:57 PM
|
0
|
0
|
403
|
|
POST
|
here I have made a video using basic viewer esri " rel="nofollow" target="_blank">http://www.youtube.com/watch?v=cFHcgBMzeuQ[/video]
... View more
10-31-2011
03:24 AM
|
0
|
0
|
900
|
|
POST
|
Open proxy.ashx with Visual studio and debug your url (http://localhost/test/proxy.ashx?htt...r/2/applyEdits) so you can check your problem
... View more
10-31-2011
03:22 AM
|
0
|
0
|
5201
|
|
POST
|
another good ide is http://www.jetbrains.com/webstorm/index.html you can do local and remote debug and you can add dojo (also help) and api esri for intellisense
... View more
10-27-2011
12:31 AM
|
0
|
0
|
900
|
|
POST
|
- have you tried insert feature from rest page? - have you configurated serverUrls in page proxy? - can you do debug on page.jsp calling page http://arcgis:8399/proxy/proxy.jsp?h.../18/applyEdits ?
... View more
10-14-2011
12:18 AM
|
0
|
0
|
2067
|
|
POST
|
here I have written in my blog about result map service: http://nicogis.blogspot.com/2011/09/non-ti-scordar-mai-del-result-map.html (open with firefox and use translate this page)
... View more
10-07-2011
06:04 AM
|
0
|
0
|
416
|
|
POST
|
if your web application is protect with login, in page js you can use also only proxy page.
... View more
09-30-2011
09:12 AM
|
0
|
0
|
814
|
|
POST
|
How you can see in fiddler add-in calls before geonames (https://secure.geonames.net/findNearestIntersection?lat=xxx&lng=yyy) for nearest point and then http://downloads2.esri.com/arcgisexplorer/addins/streetviewer/getPano.html?lat=xxx&long=yyy where hosted page html from esri for see streetview so if they aren't available (down servers, firewall denied url ect) add-in doesn't run.
... View more
09-27-2011
02:05 AM
|
0
|
0
|
736
|
|
POST
|
you can use Bing geocode http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/ve_geocoding.htm (see also Bing Maps geocoding resrictions)
... View more
09-22-2011
10:14 AM
|
0
|
0
|
383
|
|
POST
|
with 10.1 you will have SDS for editing spatial data rdbms (the Spatial Database Server creates a geospatial REST interface with any tabular data stored in an RDBMS) see video: http://video.arcgis.com/watch/483/sharing-data-as-a-feature-service-using-the-spatial-data-server-with-arcgis-10.1
... View more
09-22-2011
10:00 AM
|
0
|
0
|
466
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-20-2024 11:20 AM | |
| 1 | 05-25-2017 10:11 AM | |
| 1 | 06-20-2023 12:09 AM | |
| 1 | 10-14-2022 05:14 AM | |
| 1 | 06-14-2023 02:00 AM |
| Online Status |
Offline
|
| Date Last Visited |
09-10-2025
05:25 AM
|