qgis / qwc2-demo-app

QWC2 demo application
Other
243 stars 155 forks source link

FeatureForm for layers not editable #367

Closed benoitblanc closed 2 years ago

benoitblanc commented 2 years ago

Hi there,

We have seen the new FeatureForm plugin added recently in qwc2 to show generated forms of picked features. At Oslandia, we were wondering how to use these forms for layers which are not editable (so not declared in editConfig), instead of the list generated in Identify plugin. Is it something that you have already thinking about at Sourcepole ? Is there a start of work in progress ? Or can we start to implement this ?

Any suggestions or advices on how to deal with editConfig, read-only layers and generated .ui are welcome ! :-)

Thanks

manisandro commented 2 years ago

Hi @benoitblanc

As the FeatureForm queries the data service rather than the ows service, all layers which you want to query through the FeatureForm will need to be configured as data resources in the admin gui, and will need an editConfig.

I'll verify the behaviour with read-only datasets shortly (i.e. if "Write" is not checked in the resource permission).

manisandro commented 2 years ago

With qwc-config-generator v2022.06.14 and the latest qwc2 with https://github.com/qgis/qwc2/commit/56a6c470366fc98905b8d1974b96a7de5fa0f3fc it should work correctly if you create the data resources and permissions.

benoitblanc commented 2 years ago

@manisandro I have just tested it, works perfectly. Thank you !