Comments (18)
with #4414 the data table will no longer be empty when using HTML tag with attributes in field content (virtual or not)
PR still needed for displaying a thumbnail
from lizmap-web-client.
Can you elaborate ? What is is not working ? What is the error in the console ? Any picture ?
from lizmap-web-client.
@Gustry the table is not displayd at all on data tool
from lizmap-web-client.
Any error message displayed in the console ? (F12)
from lizmap-web-client.
no, no errors displayed in the console, just 11:31:07 WARNING Server[15550]: Error parsing post data as XML: at line 1, column 1: error occurred while parsing element. Assuming urlencoded query string sent in the post body.
in qgis server log file...
from lizmap-web-client.
Please describe your issue @josemvm
this expression here [URL] stop working on 3.7.7-pre.7395
is very vague.
Is the panel empty ? Is the table there but empty (table headers) ?
Does it work if you remove the virtual field ? (maybe try to not expose it with WMS/WFS?)
Is the button to open the "Attribute table" panel OK ? Is the button to choose the layer to display in the panel OK ?
Is-there any error in the console when pressing one of these buttons ? (Check both "console" and "networks" tab) There must be a WFS requests sent to get the data ? Is the content of the request empty or is there an HTTP error code ?
Your first description and title mention that the expression is not working (so I understand only the tip preview is not working, then later you say : "the table is not displayd at all on data tool", so it means nothing is displayed at all ?
from lizmap-web-client.
@Gustry sorry
Is the panel empty ? Is the table there but empty (table headers) ?
the panel is not empty, the panel has de name of the table but the table doesn´t appears (no headers)
Does it work if you remove the virtual field ? (maybe try to not expose it with WMS/WFS?)
yes, it works if i remove the virtual field (just expose with WFS)
Is the button to open the "Attribute table" panel OK ? Is the button to choose the layer to display in the panel OK ?
yes
Is-there any error in the console when pressing one of these buttons ? (Check both "console" and "networks" tab) There must be a WFS requests sent to get the data ? Is the content of the request empty or is there an HTTP error code ?
no errors in the console nor in the network inspector
this is the request in apache access.log file
127.0.0.1 - - [29/Apr/2024:14:26:00 +0100] "GET /cgi-bin/qgis_mapserv.fcgi?map=%2Fvar%2Fwww%2Fhtml%2Flizmap%5Fweb%5Fclient%2Flizmap%2Finstall%2Fma%2FsigRedesA%2Eqgs&outputformat=XMLSCHEMA&request=describefeaturetype&service=WFS&typename=valvulasCorte&version=1%2E0%2E0&Lizmap%5FUser=xx%5Fxxxxx&Lizmap%5FUser%5FGroups=admins%2C%20giig%2C%20users&Lizmap%5FOverride%5FFilter=1 HTTP/1.1" 200 1742 "-" "3.7.7-pre" 10.27.10.58 - - [29/Apr/2024:14:26:00 +0100] "POST /index.php/lizmap/service HTTP/1.1" 200 1672 "http://xxxxx.xxxxx.xx/index.php/view/map?repository=ma&project=sigRedesA" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0"
from lizmap-web-client.
no errors in the console nor in the network inspector
Do you have data inside ? (with the virtual field enabled)
from lizmap-web-client.
i have no the request in the console inspector like this if the virtual field is enabled:
http://xxxxx.xxxxx.xx/index.php/lizmap/service?repository=ma&project=sigRedesA&REQUEST=GetMap&SERVICE=WMS&VERSION=1.3.0&FORMAT=image%2Fpng&STYLES=1%20-%20s%2F%20Etiquetas&TRANSPARENT=true&LAYERS=bocasIncendio&DPI=96&WIDTH=2080&HEIGHT=537&CRS=EPSG%3A3763&BBOX=-49717.39180027518%2C-116553.26722038354%2C87866.21670027517%2C-81032.88367961647&ts=1714398035229
from lizmap-web-client.
Your comment above is a REQUEST=GetMap
related to WMS, so not linked to WFS.
When you open the attribute table, all the data is fetched with WFS.
from lizmap-web-client.
@Gustry i can provide to you an url for inspector
from lizmap-web-client.
Yes, you can, with the virtual field enabled.
from lizmap-web-client.
@josemvm I was expecting you to see the request made to QGIS server to fetch the data :
And we can see you got data from the server in the web browser :
But due to recent PR about security, this Javascript injection has been disabled.
There is still a bug that the table should have been loaded but only the content of the field should have been disabled.
CC @laurentj and @nboisteault
from lizmap-web-client.
the DOMPurify
call return a string that can't be handled by JSON.parse function
SyntaxError: JSON.parse: expected ',' or '}' after property value in object at line 1 column 374 of the JSON data
Maybe because the content is json formatted and contain escaped " and ' ?
PR #4409 to fix it
Another one will fix the thumbnail creation
from lizmap-web-client.
@nworr many thanks!
from lizmap-web-client.
but... it means that the thumbnail will appear in the table (or not)?
from lizmap-web-client.
yes that's the goal ( onload=
are now prohibited, but the expression may be like concat('<img src="foo" data-src=',"virtual_field" , ' class="attrirbute-thumbnal" ')
, doc will be updated )
from lizmap-web-client.
ok, thanks again, i will try ;-)
from lizmap-web-client.
Related Issues (20)
- [Bug]: Custom Edition screen is not shown HOT 2
- [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
- Error with "form filter" tool on a GeoPackage HOT 3
- [Bug]: selection tool - circle not present in toolbar
- Different speed of the various Lizmap versions HOT 9
- Layer group not automatically active despite corresponding setting (group as Layer) HOT 1
- SMTP with MS ExchangeServer HOT 1
- [Question]: delete geom nodes in mobile mode
- Add more information if the layer is invalid : tooltip for users admin/non admin, disable tool ... HOT 15
- [Bug]: plot should not display loading gif when there is no data
- [Bug]: popup relation - div popup_lizmap_dd_relation empty in parent HOT 1
- [Bug]: Minidock popup not working in Lizmap Web Client : 3.7.7, 3.8.0-alpha.2 HOT 6
- [Bug]: values in relation tables are not sorted alphabetically HOT 1
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.