[Mapbender-users] Digitizer Schemes pipe commands

Gal Zsolt zsolt.gal at satelitnt.com
Thu Jul 2 21:28:58 PDT 2020


Hi everyone!

In digitizer Schemes I wrote this:

onBeforeSave: |
$nr = $feature->getAttribute(\"nr\");
$s = $feature->getAttribute(\"sufix\");
$bloc = $feature->getAttribute(\"bloc\");
$scara = $feature->getAttribute(\"scara\");
$label=$nr.$s.\"\r\n\";
if ($bloc <> \"\"){$label.=\"bl.\".$bloc;}
if ($scara <> \"\"){$label.=\"sc.\".$scara;}
$feature->setAttribute(\"textlabel\",$label );

after save change to this:
.......
onBeforeSave: "$nr = $feature->getAttribute(\"nr\"); \n$s = $feature->getAttribute(\"sufix\"); \n$bloc = $feature->getAttribute(\"bloc\"); \n$scara = $feature->getAttribute(\"scara\"); \n$label=$nr.$s.\"\r\n\";\nif ($bloc <> \"\"){$label.=\"bl.\".$bloc;}\nif ($scara <> \"\"){$label.=\"sc.\".$scara;}\n$feature->setAttribute(\"textlabel\",$label );\n"
...........

Exist a settings in Mapbender to prevent this changes? I use Mapbendet installed on Linux.

Thanks in advance for any advice!


Zsolt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20200703/cd7b28d2/attachment.html>


More information about the Mapbender_users mailing list