<div dir="ltr">Hello again!<div>If i read you right, with Mapbender 3.0.8.1 i can not use this feature as long as i update in a couple of weeks.</div><div>Thank you for your help</div><div>best regards</div><div>Uwe Seher</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Do., 22. Okt. 2020 um 12:35 Uhr schrieb Astrid Emde (WhereGroup) <<a href="mailto:astrid.emde@wheregroup.com">astrid.emde@wheregroup.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
the definition is in the feature section and the user name is referred <br>
via $user and groups as $userRoles (which is an array):<br>
<br>
                                 featureType:<br>
                                     connection: geodata_db<br>
                                     table: poi<br>
                                     uniqueId: gid<br>
                                     geomType: point<br>
                                     geomField: geom_25832<br>
                                     srid: 25832<br>
                                     filter: 'st_isempty(geom_25832) = <br>
false'<br>
                                     events:<br>
                                         onBeforeSave: <br>
$feature->setAttribute('abstract', 'MAPS'); <br>
$feature->setAttribute('user_name', $user <br>
);$feature->setAttribute('group', implode(',', $userRoles));<br>
<br>
But it looks like this feature is not working with the actual Mapbender <br>
3.0.8.6 which uses digitizer 1.1.x. It works with digitzer 1.3 version.<br>
<br>
To change to the 1.3 version you have install Mapbender via Github and <br>
change in composer.json to "mapbender/digitizer": "dev-release/1.3",<br>
<br>
Then you can build your own mapbender with digitizer 1.3.<br>
<br>
Astrid<br>
<br>
<br>
Best regards Astrid<br>
<br>
Am 2020-10-22 08:58, schrieb Toma, Charlotte:<br>
> Hello Uwe,<br>
> <br>
> you can use the „events“ to add predefined attributes from the<br>
> mapbender database, e.g. the groupname or the username. You can use<br>
> the example in the documentation<br>
> (<a href="https://doc.mapbender3.org/en/functions/editing/digitizer.html#events" rel="noreferrer" target="_blank">https://doc.mapbender3.org/en/functions/editing/digitizer.html#events</a><br>
> [1]) and add the „onBeforeSafe“ event. Furthermore you need a<br>
> coulumn in your table to save the information.<br>
> <br>
> Greetings from Wiesbaden<br>
> <br>
> Charly<br>
> <br>
> Mit freundlichen Grüßen<br>
> im Auftrag<br>
> <br>
> Charlotte Toma<br>
> <br>
> Landeshauptstadt Wiesbaden<br>
> -Der Magistrat-<br>
> <br>
> Stadtplanungsamt<br>
> -610230-<br>
> Gustav-Stresemann-Ring 15<br>
> 65189 Wiesbaden<br>
> Tel.: 0611 31-3436<br>
> Fax: 0611 31-3917<br>
> E-Mail: <a href="mailto:61GIS@wiesbaden.de" target="_blank">61GIS@wiesbaden.de</a><br>
> Internet: <a href="http://www.wiesbaden.de" rel="noreferrer" target="_blank">www.wiesbaden.de</a> [2]<br>
> <br>
> Jede nicht gedruckte Seite spart Holz, Wasser und Strom.<br>
> <br>
> Von: Mapbender_users [mailto:<a href="mailto:mapbender_users-bounces@lists.osgeo.org" target="_blank">mapbender_users-bounces@lists.osgeo.org</a>]<br>
> Im Auftrag von Uwe Seher<br>
> Gesendet: Donnerstag, 22. Oktober 2020 08:14<br>
> An: Mapbender User List <<a href="mailto:mapbender_users@lists.osgeo.org" target="_blank">mapbender_users@lists.osgeo.org</a>><br>
> Betreff: [Mapbender-users] User-Name as an attribute in the digitizer<br>
> <br>
> Hello!<br>
> <br>
> I want to log, when a feature has been changed by the digitizer. Is<br>
> there a possibillity to use the logged in username as an attribute in<br>
> the digitizer form or store it otherways in the edited feature?<br>
> <br>
> Thank you in advance<br>
> <br>
> Uwe Seher<br>
> <br>
> Links:<br>
> ------<br>
> [1] <br>
> <a href="https://doc.mapbender3.org/en/functions/editing/digitizer.html#events" rel="noreferrer" target="_blank">https://doc.mapbender3.org/en/functions/editing/digitizer.html#events</a><br>
> [2] <a href="http://www.wiesbaden.de/" rel="noreferrer" target="_blank">http://www.wiesbaden.de/</a><br>
> _______________________________________________<br>
> Mapbender_users mailing list<br>
> <a href="mailto:Mapbender_users@lists.osgeo.org" target="_blank">Mapbender_users@lists.osgeo.org</a><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/mapbender_users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapbender_users</a><br>
<br>
-- <br>
Mit freundlichen Grüßen<br>
<br>
Astrid Emde<br>
GIS-Consultant<br>
<br>
  -----------------------------------<br>
  Aufwind durch Wissen!<br>
  Jetzt neu: Web-Seminare und Online-Schulungen<br>
  bei der <a href="http://www.foss-academy.com" rel="noreferrer" target="_blank">www.foss-academy.com</a><br>
  -----------------------------------<br>
<br>
   Astrid Emde<br>
   WhereGroup GmbH<br>
   Eifelstraße 7<br>
   53119 Bonn<br>
   Germany<br>
<br>
   Fon: +49(0)228 90 90 38 - 22<br>
   Fax: +49(0)228 90 90 38 - 11<br>
<br>
   <a href="mailto:astrid.emde@wheregroup.com" target="_blank">astrid.emde@wheregroup.com</a><br>
   <a href="http://www.wheregroup.com" rel="noreferrer" target="_blank">www.wheregroup.com</a><br>
<br>
   Folgen Sie der WhereGroup auf twitter:<br>
<a href="http://twitter.com/WhereGroup_com" rel="noreferrer" target="_blank">http://twitter.com/WhereGroup_com</a><br>
<br>
Geschäftsführer:<br>
Olaf Knopp, Peter Stamm<br>
Amtsgericht Bonn, HRB 9885<br>
-------------------------------<br>
_______________________________________________<br>
Mapbender_users mailing list<br>
<a href="mailto:Mapbender_users@lists.osgeo.org" target="_blank">Mapbender_users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapbender_users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapbender_users</a></blockquote></div>