I'm having trouble understanding exactly what wants to be done. So the Temp_bdry value should remain constant or you want the user to be able to change this? And it should always be a line?
Tracy - you are my only hope on this one.
The problem I would like to solve is that I always need to have the boundary lines plotted, which is not possible if one allows the user to select wells on the map. As soon as one, or several wells are selected the boundary line is gone as I have implemented it as an artificial well (no actual location) through custom sql. As I wrote earlier my actual problem has 2000+ wells and the selection through (CTRL)clicking on the map is crucial.
Also, in the actual problem there are two boundary lines (min and max permitted) and they are dependent on user specified parameter values, but this is not too relevant here.
One way I see that could fix my problem is if every well had the information for the boundary line(s). However, I don't know how to write a custom sql statement that adds 2 rows (actually 4 for two boundary lines) to every well. This way a single well would have the info required for the boundary line plotting. Since all wells would have the same boundary info it would also work for many selected wells, the boundary lines would simply plot on top of each other. Again, I don't know how to do that.