|
POST
|
The script should return: The code works on Database a [u'USER, u'TABLE', u'Data1', u'Data2'] [u'USER, u'TABLE', u'Data1', u'Data2'] [u'USER, u'TABLE', u'Data1', u'Data2'] The u seems is needed for a new column, within the recordset. The same script returns an error on Database b, an older database??
... View more
05-28-2015
04:17 AM
|
0
|
0
|
929
|
|
POST
|
I found a similar example @ arcpy.ArcSDESQLExecute(sde) problem This has a working example of the CSV.Writer class. Still getting an unicode error from the SQL statement: sdeReturn = sdeConn.execute("SELECT * FROM DBA_OBJECTS" )
... View more
05-28-2015
03:16 AM
|
0
|
1
|
929
|
|
POST
|
I cannot retrieve records for a Arc/Oracle database I get an "UnicodeEncodeError: 'ascii' codec can't encode character" error snippet of the code: sdeConn = arcpy.ArcSDESQLExecute(sde_conn_file) for tbl in tableList: try: userValue = "u'" val = ''.join([x for x in userValue if ord(x) < 128]) sdeReturn = sdeConn.execute("SELECT * FROM DBA_OBJECTS" ) The records are printed out as: [u'GISADMIN.KCC_KHS_CUSTOMER_LKP', u'GISADMIN.KCC_KHS_DISTRICT_LKP'] I tried to use a CSV.writer - did nothing?? def writerows(self, rows): file = open(output_file, 'wb') for row in rows: print row self.writerow(row) file.close() I would appreciate assistance to get the CSV.writer working... Thanks, Clive
... View more
05-27-2015
10:49 AM
|
0
|
3
|
4218
|
|
POST
|
I have a .NET SOAP WebService that is retrieving data from an old dataset. With database connections you setup the database connection, database name, tables, etc. The .NET projects only lists the AddressSearch and Web.Services. I do not see any reference to the database/Tables, Locator, csv, etc??? AddressSearch.cs lists [System.Web.Services.WebServiceBindingAttribute(Name="AddressSearchSoap", Namespace="http://webservices.localgov.gov.uk/nlpgv1webservice")] I cannot find the database or data file reference in the ASPX project??? I would appreciate any assistance in resolving this issue. Thanks, Clive
... View more
05-19-2015
04:01 AM
|
0
|
0
|
3703
|
|
POST
|
Hi, The Javascript API installation file instructs: Replace '[HOSTNAME_AND_PATH_TO_JSAPI]' with the following "<myserver>/arcgis_js_api/library/3.1/jsapi/" I am testing a virtual Machine . I replaced with the Virtual machine path <test.NRT.int> : test.NRT.int/arcgis_js_api/library/3.1/jsapi/ I get an error "file not found" Any suggestions to solve this problem??? Thanks for your assistance.
... View more
02-10-2014
07:00 AM
|
0
|
1
|
640
|
|
POST
|
Hi, We have 3 map services that share common functions e.g. function init(); FinaliseMap = function()....etc. The aim is to put the common code into a single file and call the functions as required. I have tried moving the code to a common file then calling the function from Map A for example. Get an error calling them?? For example. I put function COL.init() in col_common_SHARED.js Then tried to call function COL.init() in Map Service A (mapA.js). mapA.js var function init() = COL.init; Any suggestions what is wrong AND what I should be doing?? Appreciate any assistance.
... View more
04-03-2012
01:00 AM
|
0
|
1
|
661
|
|
POST
|
Hi Raymond, Thanks for the email. Replacing (map.infoWindow.orientation == 270;) with map.infoWindow.orientation = 270; Got rid of the error message. However it has not changed the infoWindow orientation?? Is there anything that I am missing??
... View more
03-23-2012
07:02 AM
|
0
|
0
|
549
|
|
POST
|
Hi, I need to display the infoWindow portrait if less than 5 records AND landscape if more than 5 records. Getting getinfoWinTabContainer error, details: [object error] Code: >>>>>>>>>>>>>>>>>>>>>>>> map.infoWindow.setTitle("Identify Results"); //map.infoWindow.setContent(tc.domNode); if( (theLayerName != "Underground") && (idResults.length == 1) ) { // alert("1 record"); map.infoWindow.resize(360, 200); map.infoWindow.setContent(tc.domNode); } else if ( (theLayerName != "Underground") && (idResults.length > 1) ) { // alert("> 1 record"); map.infoWindow.resize(900, 425); map.infoWindow.orientation == 270; map.infoWindow.setContent(tc.domNode); // tc = tcLarge; }
... View more
03-23-2012
06:27 AM
|
0
|
3
|
1290
|
|
POST
|
Hi, Tried to create a variable for the TabContainer to use for the TabContainer size. Getting getInfoWinTabContainer error?? getInfoWinTabContainer error, details: [object error] Code >>>>>>>>>>>>>>>>>>>>>>>>>>> function getInfoWinTabContainer() { try { var tc = dijit.byId("tabs"); var tcSmall = new dijit.layout.TabContainer({ style : "width:354px;height:196px;visibility:hidden;display:none;padding:2px;", id: "tabs"}, dojo.create("div", null, dojo.body())); var tcLarge = new dijit.layout.TabContainer({ style : "width:890px;height:240px;visibility:hidden;display:none;padding:2px;", id: "tabs"}, dojo.create("div", null, dojo.body())); >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
... View more
03-23-2012
03:55 AM
|
0
|
0
|
296
|
|
POST
|
Hi, I am trying to put the TabContainer into a loop. The aim is to set the size of the TabContainer function getInfoWinTabContainer() { try { var tc = dijit.byId("tabs"); //On IE setContent destroys the dijit if(tc === undefined) { if( (theLayerName != "Underground") && (idResults.length <= 1) ) { // alert("1 record"); //map.infoWindow.resize(360, 200); tc = new dijit.layout.TabContainer({ style : "width:354px;height:196px;visibility:hidden;display:none;padding:2px;", id: "tabs"}, dojo.create("div", null, dojo.body())); } else if ( (theLayerName != "Underground") && (idResults.length > 1) ) { // alert("> 1 record"); // map.infoWindow.resize(900, 425); tc = new dijit.layout.TabContainer({ style : "width:890px;height:420px;visibility:hidden;display:none;padding:2px;", id: "tabs"}, dojo.create("div", null, dojo.body())); } } else { tc.domNode.style.display = 'none'; tc.domNode.style.visibility = 'hidden'; }
... View more
03-23-2012
02:42 AM
|
0
|
1
|
825
|
|
POST
|
I tried to edit the TabContainer to increase the size. else if ( (theLayerName != "Underground") && (idResults.length > 1) ) { // alert("> 1 record"); map.infoWindow.resize(900, 450); new dijit.layout.TabContainer({ style : "width:890px;height:300px;visibility:hidden;display:none;padding:2px;",}) } } Get an error, expected identifies, string or number??
... View more
03-22-2012
08:50 AM
|
0
|
0
|
1104
|
|
POST
|
Hi, Yes the map is var map; The infoWindow is defined: map.infoWindow.setTitle("Identify Results"); map.infoWindow.setContent(tc.domNode); map.infoWindow.resize(360, 200); If there is only 1 record returned, then keep the infoWindow (360, 200). How ever if there is more than 1 record then increase the infoWindow to fill the page.
... View more
03-22-2012
07:56 AM
|
0
|
0
|
1104
|
|
POST
|
Hi Derek, Many thanks for the email. I modified the code: widthoftable = map.infoWindow.width; heightoftable = map.infoWindow.height; alert("Height = " + heightoftable + " \Width = " + widthoftable); No error, get mesage Height = undefined Width = undefined. If the infoWindow has 1 record it maybe 100 px x 200 px. If it has 10 records this maybe 500 px x 200px. Trying to find the height & width to auto-size the infoWindow.
... View more
03-21-2012
07:29 AM
|
0
|
0
|
1104
|
|
POST
|
Hi, I have queried the infoWindows properties, getting an error returned?? addIdentifyResultsToMap (function) error, details: [object error] Any idea why this returns an error?? widthoftable = document.getElementById(map.infoWindow).width; heightoftable = document.getElementById(map.infoWindow).height; alert("Height = " + heightoftable + " \Width = " + widthoftable);
... View more
03-21-2012
06:50 AM
|
0
|
6
|
3867
|
|
POST
|
I am getting a MS JScript runtime error: dojo is undefined in Line 1 I have the dojo listed in TEST.js dojo.require("dijit.dijit"); // Line 1 dojo.require("dijit.form.Button"); dojo.require("dijit.layout.BorderContainer"); dojo.require("dijit.layout.ContentPane"); dojo.require("dijit.layout.TabContainer"); dojo.require("dijit.layout.AccordionContainer"); dojo.require("dijit.form.CheckBox"); dojo.require("dijit.ProgressBar"); dojo.require("dijit.Tooltip"); dojo.require("dijit.Toolbar"); dojo.require("dojo.NodeList-traverse");
... View more
03-20-2012
03:25 AM
|
0
|
1
|
1097
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-22-2021 04:17 AM | |
| 1 | 02-05-2021 07:18 AM | |
| 1 | 11-06-2020 07:13 AM | |
| 2 | 07-07-2021 04:20 AM | |
| 1 | 01-07-2021 02:53 PM |
| Online Status |
Offline
|
| Date Last Visited |
02-23-2024
07:07 PM
|