Comments (13)
Your screenshots are "Popup", not "Attribute table". It's two different tools. This is not the way to hide fields in a popup (depending of the kind of popup you use, CF documentation)
from lizmap-web-client.
@Antoviscomi i think that the popup is based on WMS and the attribute table is based on WFS from field options on QGIS Desktop
from lizmap-web-client.
Your screenshots are "Popup", not "Attribute table". It's two different tools.
@Gustry I have not checked this on LMWC 3.7.* but on previous versions if a field is unpublished from WMS capabilities (layer properties > fields > configuration > dot not expose via WMS) it surely does not show in the automatic popup in LMWC. If it does not work the same way in LMWC I would consider it really a regression, but as I said I haven't tested it in the latest version.
This is not the way to hide fields in a popup
What would be the right way then?
from lizmap-web-client.
@gioman Look at @Antoviscomi description ;-)
@Gustry I have not checked this on LMWC 3.7.* but on previous versions if a field is unpublished from WMS capabilities (layer properties > fields > configuration > dot not expose via WMS) it surely does not show in the automatic popup in LMWC.
This 100% correct, it's correct behavior.
The "Attribute table" tool in Lizmap is not linked to the popup tool.
- Popup → WMS service
- Attribute table → WFS service
In "Automatic" popup, fields are coming straight from QGIS Server. If fields are not exposed on QGIS server, then LWC (which is downstream) will not have fields as well.
I just tried, it works for me, with "automatic" popup and hiding fields from WMS service, with QGIS Desktop and server 3.34 :
field_tab_1
is missing from the popup.
QGIS Desktop : 3.36.0
QGIS Server : 3.36.0
@Antoviscomi Does it occurs since you have updated to QGIS Desktop and server 3.36 ?
You said 3.6.10 is impacted as well, but the number of backport on the 3.6 branch has been very low now, and QGIS 3.36 is very recent.
from lizmap-web-client.
When did you update to :
- QGIS server 3.36 ?
- QGIS desktop 3.36 ?
- LWC 3.6.10 ?
- LWC 3.7.5 ?
Was it working in between these upgrades ?
You can make the query straight to QGIS server to check if these fields are exposed from QGIS server ?
LWC is an overlay to QGIS Server. If QGIS server is hiding fields (which must happen if the flag is set, then LWC can't have data and can't display it) . If LWC can display these hidden fields from QGIS Server, it means these fields are not hidden from QGIS Server.
from lizmap-web-client.
@Gustry @gioman @josemvm after systemctl restart apache2
all works fine now in both versions
from lizmap-web-client.
@Gustry I use the Automatic popup that reads values from Attributes Table, as configured in Lizmap plugin, at least in all previous versions of LWC it seems to me (I remember so)
from lizmap-web-client.
@Gustry consider to reopen because
This is the fields configuration
from lizmap-web-client.
@Antoviscomi i think that the popup is based on WMS and the attribute table is based on WFS from field options on QGIS Desktop
In the above screenshot are the configurations where both WMS and WFS are checked to hide
from lizmap-web-client.
What would be the right way then?
Yes, It's the right way but, No @josemvm @gioman doesn't works anymore, I omitted the last screenshot for mistake in the initial bug topic
from lizmap-web-client.
@gioman I don't know is it related to 3.36 Qgis update (it's possible) but in previous configurations (as above descripted) the fields I checked to hide were really hidded now I'm not able to hide them anymore
from lizmap-web-client.
You said 3.6.10 is impacted as well, but the number of backport on the 3.6 branch has been very low now, and QGIS 3.36 is very recent.
@gioman yes, I confirm this impact for both 3.6.10 and 3.7.5 LWC versions, so I think you're right, there is something wrong on Qgis server 3.36 I suppose
from lizmap-web-client.
When did you update to :
- QGIS server 3.36 ?
- QGIS desktop 3.36 ?
- LWC 3.6.10 ?
- LWC 3.7.5 ?
Was it working in between these upgrades ?
You can make the query straight to QGIS server to check if these fields are exposed from QGIS server ?
LWC is an overlay to QGIS Server. If QGIS server is hiding fields (which must happen if the flag is set, then LWC can't have data and can't display it) . If LWC can display these hidden fields from QGIS Server, it means these fields are not hidden from QGIS Server.
@Gustry was only something wrong in session (apparently) because of after restart Qgis server all works as expected
from lizmap-web-client.
Related Issues (20)
- Instruction for Redis cache HOT 5
- [Bug]: 3.8.0: Change zoom section for first get feature query
- If server cache is activeted, select categories doesn't work HOT 8
- Attribution only for baselayers HOT 1
- [Bug]: empty hidden group leads to fatal HOT 1
- [Bug]: Histogram "sum" does not sum but counts instead
- [Bug]: Baselayers are not rendered below 1:2000 scale HOT 1
- Can't edit PostGIS layer HOT 13
- Lizmap no longer displaying projects due to QGIS Server configuration HOT 2
- [Question]: Define Redis-DB Username and Password
- [Bug]: Can't print anymore HOT 2
- Problem with permission
- [Bug]: Custom Edition screen is not shown HOT 4
- [Bug]: Lizmap 3.7 doesn't show QGIS Drag&Drop Form as pop up source HOT 3
- [Bug]: Pop up is not shown in atlas container with Lizmap 3.7 HOT 1
- Problem with Lizmap-QGIS_server installation/configuration HOT 5
- [Bug]: Problems using XYZ tiles depending on project reference system in Lizmap 3.7 HOT 2
- [Bug]: Editing fails with no feedback when trying to open a form for a invalid layer HOT 1
- 3.8.0-alpha.1: Measuring does not work. Extension request Snapping HOT 1
- Search by address bar on my lizmap map HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lizmap-web-client.