<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-7" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
O/H Oliver Christen έγραψε:
<blockquote cite="mid:5FEE0D1256674A91B17188E7D0C4D4EA@maunakea"
type="cite">
<title>{$cartoclient_title}</title>
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.6000.16705" name="GENERATOR">
<style></style>
<div>
<div><font size="2">please remove</font></div>
<div> </div>
<div><font size="2">{if $edit_allowed|default:''}<div id="edit_div"<br>
style="display:none"></div>{/if}</font></div>
<div> </div>
<div><font size="2">from your template header section, it has
absolutly nothing to do there</font></div>
<div> </div>
<div><font size="2">that should go usualy in the body section, where
you want to see the selected elements array appear.</font></div>
<div> </div>
<div><font size="2">regards</font></div>
<div><font size="2">Oliver</font></div>
</div>
</blockquote>
<br>
Thank you.<br>
I placed the above statement where i should and now the plugin works!<br>
But now i have a problem using the tools.<br>
I can select and edit all points that alreadt exhist in the database!<br>
The problem i have is with points that create myself.<br>
I can create them but when i move or delete them i get the following
error message.<br>
<br>
<pre>Error [2, array_key_exists() [<a
href="http://localhost/cartoweb3/htdocs/function.array-key-exists">function.array-key-exists</a>]: The first argument should be either a string or an integer, C:\ms4w\apps\cartoweb3\projects\mytest\plugins\edit\client\ClientEdit.php, 245]
With the configuration i have,each entry in the database has 7 columns wich are:
gid (integer),v_poi (integer),v_poi_point (integer),city (string),city_lat (string),label(string),the_geom(geometry).
The v_poi field has the same values with the gid field.
The v_poi_point field is always 0 (Strange shapefile source!!!)
In my map file i have choosen to edit only the attributes city,city_lat and label.
I guess that the problem with the points i create is that when they are written in the postgis database
their entries have the field gid filled,the other two fields (v_poi,v_poi_point) are not filled!
If i am right how can i fill them automatically with the proper values.(That is,v_poi equal to gid and v_poi_point=0).
Thank you very much!
</pre>
<br>
</body>
</html>