Select to view content in your preferred language

Form loading extreamly slow

775
2
07-21-2011 10:04 PM
YuyingLi
Emerging Contributor
I have a customized form developed for field tortoise fence monitoring. So when the user click to add a point, the edit form will be initialized. However, to open the form for edting takes about 1 - 1.5 minutes which seems way too slow. On loading form, I just checked the feature class to auto populate the next unique id for the point...any idea why it takes so long to open the form? (it is really fast in the desktop)...currently there are about 600 points in FC.

Thanks,
Yuying
Tags (3)
0 Kudos
2 Replies
LastingerBrooks
Deactivated User
Well, I'm assuming you have some sort of script going off whenever you're numbering. Like maybe you co-opted the "AutoIncrement" script example?

Well, I did that too. It totally craps out after you get about 1000 points- because it has to scan your entire dataset's values in order to determine which number is the maximum so it can autoincrement by one.

What you need to do is limit the number of points you send out to like 5-10 or so.

SO: When you check out of ArcGIS, make sure you only select those features which are vital to your workflow- those that might overlap with areas you're currently working in, and ALWAYS the last feature in your dataset, so that your autoincrement number properly increments.

Am I getting warm?
0 Kudos
RobertMcCann
Deactivated User
One thing you could do is run your script to find the maximum value of your unique id only when the map opens.  Then save the value to a global variable (I add a value to the "UserProperties" array as it's already there and global to all forms and applets).  Then increment the value when the form "onok" event is fired.

This will mean your map will take a while to load, but your form should be nice and snappy.
0 Kudos