Select to view content in your preferred language

Can I change value of Edit box on Identify form?

622
0
06-20-2013 08:25 AM
TereseRowekamp
Deactivated User
I have a custom Edit form which is also being used as the Identify form. The Edit form has an Edit box that is updated with the current feature's line length (taken from the feature's shape). My code updates this value when the user is editing an existing line or creating a new line.

Here's my problem. If I Identify a line, my Edit box shows no value, as expected. If I then edit or create a new line, the Edit box updates with that line's length. Again, as expected. But if I now Identify another line, the previously displayed length of the line being edited/created is still visible in the Edit box. Everytime I edit existing or create new, the value updates correctly, but everytime I use Identify after the Edit form is opened, the last displayed value is shown in the Edit box. I can't just tie my Edit box to the Shape_Length field because I need to display it in a different unit of measurement.

I originally tried to get the Identify form to update with that feature's correct length but Map.SelectionLayer generates an "Object required" error message when used with Identify. When that approach didn't work, I decided to try to clear out the value from the Edit box instead.

I have tried everything I can think of to clear out the value of the Edit box - when the form is loading, when the form is unloading, when the Page loses focus - my code to update the Edit box text appears to be executed based on messages I display and doesn't generate any error messages, but once populated, the previously displayed value never clears when using Identify.

How can I get this to work?
Tags (3)
0 Kudos
0 Replies