Hello
Me again for questions in the edit mode.
We want to set tup rules for do not let users to let empty / null attributes when editing.
https://mapstore.geosolutionsgroup.com/mapstore/docs/api/plugins#plugins.FeatureEditor
For example, we don not want the "code_rm" attribute to be empty.
So we put :
{
"cfg": {
"editingAllowedRoles": [
"ADMIN",
"USER",
"EL_MAJ_COMPTAGESROUTIERS"
],
"customEditorsOptions": {
"rules": [
"regex": {
"attribute": "^code_rm$",
"typeName": "^maj:comptage_station$"
},
"editorProps": {
"allowEmpty": false
}
}
]
}
},
"override": {}
}
But it has no impact in the context (station_uid and comm_insee) are required because in DB it is not null attributes and GeoServer knows it) :
What is wrong / missing ?
Maël REBOUX
Service Information Géographique Rennes Métropole
--
You received this message because you are subscribed to the Google Groups "mapstore-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapstore-users/005601d77a21%247b9cebf0%2472d6c3d0%24%40rennesmetropole.fr.
==
GeoServer Professional Services from the experts!
Visit http://bit.ly/gs-services-us for more information.
==
Dott. Ing. Tobia Di Pisa
Technical Lead / Project Manager
GeoSolutions Group
phone: +39 0584 962313
fax: +39 0584 1660272
https://www.geosolutionsgroup.com/
http://twitter.com/geosolutions_it
-------------------------------------------------------