POST
|
Hi Robert, You're correct - these are not domains. I adjusted the EXPRESSION as you recommended, but now an Application Error (#1090: XML parser failure: element is malformed) displays when the Flex Viewer loads. Here's the changed XML code: <expressions> <expression alias="Parcel ID" textsearchlabel="Search parcels by ID [Example: 102.6-2-9]" upper(TAXID) LIKE upper('%[value]%')</expression> <expression alias="Parcel OWNER" textsearchlabel="Search parcels by OWNER [Example: Smith, John]" upper(OWNER1) LIKE upper('%[value]%')</expression> <expression alias="Parcel LOCATION" textsearchlabel="Search parcels by LOCATION [Example: 139 Pack Forest Rd]" upper(PROP_ADDR) LIKE upper('%[value]%')</expression> </expressions> Can you tell if I zapped too much code (or should add additional elements)? Thanks!!!
... View more
10-19-2011
04:50 AM
|
0
|
0
|
419
|
POST
|
Hi Robert, First - thank you SO much for this widget! I'm using the Compiled version for Flex Viewer 2.4. I have just one problem that I'm not sure how to tackle (sorry, newbie here): 1. Error message when any of the three Text Search options I've set are selected: TypeError: Error #1009: Cannot access a property or method of a null object reference. at widgets.eSearch::SearchWidget/popCBwithDomain() at MethodInfo-100() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent() at com.esri.ags.layers::Layer/setLoaded() at com.esri.ags.layers::FeatureLayer/initLayer() at MethodInfo-2361() at mx.rpc::AsyncResponder/result() at com.esri.ags.tasks::DetailsTask/handleDetails() at Function/http://adobe.com/AS3/2006/builtin::call() at com.esri.ags.tasks::BaseTask/handleResult() at MethodInfo-2094() at mx.rpc::Responder/result() at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyResult() at mx.rpc.events::ResultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders() at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler() at mx.rpc::Responder/result() at mx.rpc::AsyncRequest/acknowledge() at DirectHTTPMessageResponder/completeHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onComplete() If I click "Continue" the error clears and the search works just fine!
... View more
10-18-2011
12:31 PM
|
0
|
0
|
419
|
POST
|
Sorry - Python 2.5 for 9.3.1. But the difference in ArcGIS versions (9.3.1 desktop versus 10 Server) may be where the problem lies.
... View more
11-08-2010
05:30 AM
|
0
|
0
|
131
|
POST
|
Have you tried Python version 2.6? I'm not sure if that'll do the trick, but it's the version installed with ArcGIS 10 so it may make a difference.
... View more
11-08-2010
04:03 AM
|
0
|
0
|
131
|
POST
|
Does anyone know if there's a tool that allows assignment of an alias to a field using model builder?
... View more
11-05-2010
12:35 PM
|
0
|
4
|
3447
|
IDEA
|
I'd love the ability to insert a drawing point where I stop measuring - right now I just have to eyeball roughly where the measurement stops.
... View more
10-29-2010
06:46 AM
|
10
|
1
|
390
|
POST
|
I have a personal geodatabase that contains a table to remove. Does anyone know what the syntax is to complete this task?
... View more
08-25-2010
12:18 PM
|
0
|
2
|
2714
|
POST
|
Here's what worked: import os import shutil dirlist=os.listdir("Z:\\COMMON\\GIS\\WORK\\Ron\\NEW") #Initial directory with personal geodatabases dst="C:\\Arcwork\\parcelmdb" #Destination folder for copies of personal geodatabases mdblist=[] #Defines the list to hold the full path and file name of each personal geodatabase for item in dirlist: #Loops through all the contents of the initial diretory [INDENT]if item.lower().endswith("mdb"): #Find files with MDB extension jmdb=os.path.join("Z:\\COMMON\\GIS\\WORK\\Ron\\NEW", item) #Combine dir path and filename to variable mdblist.append(jmdb) #Add variable value (full path and filename) to LIST shutil.copy(jmdb,dst) #Copy list item to destination directory [/INDENT]
... View more
08-24-2010
05:28 AM
|
0
|
0
|
335
|
POST
|
Neat - thanks Luke! Sounds like this should work for Windows as well as Unix platform? I'll give a shot this morning. It's good to see there's usually more than one way of "skinning the cat".
... View more
08-24-2010
05:00 AM
|
0
|
0
|
694
|
POST
|
I need to copy a set of personal geodatabases from a master directory to a local working directory for processing. Here's my Python code: import os import shutil dirlist=os.listdir("Z:\\COMMON\\GIS\\WORK\\Ron\\NEW") dst="C:\\Arcwork\\parcelmdb" mdblist=[] for item in dirlist: [INDENT] if item.lower().endswith("mdb"): mdblist.append(item) [/INDENT] for db in mdblist: [INDENT] shutil.copyfile(db,dst) [/INDENT]However, when run I get an error: Traceback (most recent call last): File "C:\Arcwork\GetMasterMDBList.py", line 11, in <module> shutil.copyfile(item,dst) File "C:\Python26\ArcGIS10.0\lib\shutil.py", line 52, in copyfile fsrc = open(src, 'rb') IOError: [Errno 2] No such file or directory: 'Bolton.mdb' - I seems like the copyfile command has trouble reading the mdblist? I also tried to use the copyfile function in the first For loop (skipping the Append to list), but no luck. Any thoughts on how to intepret this error is great appreciated!
... View more
08-23-2010
08:29 AM
|
0
|
4
|
502
|
POST
|
Presto!!! Thanks so much to you all. :o) I promise to be on the "giving" side down the road... Have a terrific weekend. -Sheri
... View more
08-20-2010
12:55 PM
|
0
|
0
|
694
|
POST
|
I've tweaked the code: import os dirlist=os.listdir("c:\\Arcwork") mdblist=[] for item in dirlist: if item.endswith("mdb"): print item mdblist.append[item] print mdblist _____________________________ But I get this error: do I need to import another module to use the "Append'? Traceback (most recent call last): File "C:\Python26\ArcGIS10.0\Lib\site-packages\Pythonwin\pywin\framework\scriptutils.py", line 325, in RunScript exec codeObject in __main__.__dict__ File "C:\Arcwork\GetMasterMDBList.py", line 8, in <module> mdblist.append[item] TypeError: 'builtin_function_or_method' object is unsubscriptable
... View more
08-20-2010
11:46 AM
|
0
|
0
|
694
|
POST
|
Thanks - tried this but validation returns a syntax error.
... View more
08-20-2010
09:25 AM
|
0
|
0
|
694
|
POST
|
I need to generate a list of all files in a directory with a *.MDB extension (personal geodatabases) in a Python script. Should I first split the path and filenames: dirname = "C:\Arcwork" (filepath, filename) = os.path.split(dirname) and then somehow split the filename into name and extension (how?!), or vice versa?
... View more
08-20-2010
07:32 AM
|
0
|
15
|
1305
|
Title | Kudos | Posted |
---|---|---|
1 | 3 weeks ago | |
1 | 06-26-2023 05:47 AM | |
4 | 02-08-2024 12:38 PM | |
1 | 12-08-2023 06:40 AM | |
1 | 09-06-2023 09:47 AM |
Online Status |
Offline
|
Date Last Visited |
2 weeks ago
|