[Mapbender-users] WFS configuration: how to access global values?

Christoph Baudson christoph.baudson at wheregroup.com
Tue Dec 2 05:31:11 EST 2008

Michael Schulz schrieb:
> Hi,
> how would it be possible to use the values of some global variables
> (mb_user_name and the like) in the context of a wfs configuration? In
> my special case, we want the mb_user_name to be inserted when saving a
> digitized geometry. The featuretype has an attribute that should be
> filled with mb_user_name, without exposing an input element. Do you
> have any ideas how to do that?
> I thought about using a hidden input element and some JS to insert the
> value, but I didn't succeed.

There is a column in wfs_conf, "f_auth_varname". You can enter a php 
variable like


(use single quotes) for the appropriate feature type which will hold the 
value of this variable.

This has been introduced in Mapbender 2.4.5, but there have been a lot 
of bug fixes since then, so I recommend updating to 2.5


> Any ideas?
> Cheers, Michael

Die Geo-IT Konferenz der WhereGroup
vom 9.-10. Dezember 2008 in Bonn
Web: www.where2b-conference.com

W h e r e G r o u p GmbH & Co. KG

Siemensstraße 8
53121 Bonn

Christoph Baudson

Fon: +49 (0)228 / 90 90 38 - 15
Fax: +49 (0)228 / 90 90 38 - 11
christoph.baudson at wheregroup.com
Amtsgericht Bonn, HRA 6788

WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm

More information about the Mapbender_users mailing list