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

Michael Schulz mschulz at webgis.de
Tue Dec 2 05:38:03 EST 2008


Hi Christoph,

wow, that was quick, thanks a lot. It's a mb 2.5.

Michael


2008/12/2 Christoph Baudson <christoph.baudson at wheregroup.com>:
> 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
>
> $_SESSION['mb_user_name']
>
> (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
>
> Christoph
>
>
>> Any ideas?
>>
>> Cheers, Michael
>>
>>
>
>
> --
> ********************************************
> Where2B-Konferenz
> 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
> Germany
>
> Christoph Baudson
> Anwendungsentwickler
>
> Fon: +49 (0)228 / 90 90 38 - 15
> Fax: +49 (0)228 / 90 90 38 - 11
> christoph.baudson at wheregroup.com
> www.wheregroup.com
> Amtsgericht Bonn, HRA 6788
> _______________________________________
>
> Komplementärin:
> WhereGroup Verwaltungs GmbH
> vertreten durch:
> Olaf Knopp, Peter Stamm
> _______________________________________
>
> _______________________________________________
> Mapbender_users mailing list
> Mapbender_users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>



-- 
-----------------------------------------------------------
Michael Schulz
mschulz at webgis.de

in medias res
Gesellschaft für Informationstechnologie mbH

In den Weihermatten 66
79108 Freiburg

Tel  +49 (0)761 556959-5
Fax +49 (0)761 556959-6

http://www.webgis.de / http://www.zopecms.de
-----------------------------------------------------------
Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck
Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg


More information about the Mapbender_users mailing list