[Mapbender-users] Digitizer Schemes pipe commands
Astrid Emde (WhereGroup)
astrid.emde at wheregroup.com
Thu Jul 2 23:10:15 PDT 2020
Hello Zsolt,
the behaviour is normal at the moement :)
You could save your configuration separately in a textfile and transfer
it to Mapbender if you make changes.
Astrid
Am 2020-07-03 06:28, schrieb Gal Zsolt:
> 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
> _______________________________________________
> Mapbender_users mailing list
> Mapbender_users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapbender_users
--
Mit freundlichen Grüßen
Astrid Emde
GIS-Consultant
-----------------------------------
Aufwind durch Wissen!
Jetzt neu: Webinare und Online-Schulungen
bei der www.foss-academy.com
-----------------------------------
Astrid Emde
WhereGroup GmbH
Eifelstraße 7
53119 Bonn
Germany
Fon: +49(0)228 90 90 38 - 22
Fax: +49(0)228 90 90 38 - 11
astrid.emde at wheregroup.com
www.wheregroup.com
Folgen Sie der WhereGroup auf twitter:
http://twitter.com/WhereGroup_com
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
-------------------------------
More information about the Mapbender_users
mailing list