3liz / lizmap-web-client

Transfer a QGIS project on a server, Lizmap is providing the web interface to browse it
https://www.lizmap.com
Mozilla Public License 2.0
259 stars 143 forks source link

Can't insert&update data in PostGis Views #108

Closed PFerro closed 8 years ago

PFerro commented 9 years ago

Hi,

When I try to update or insert data which are in Postgis Views it's not possible (they all have write permissions and if I do the some action at QGIS works).

image

When I do the same action on Postgis Tables it works as expected.

Tested at Lizmap 2.10 and 2.11

Regards, Pedro

PFerro commented 9 years ago

Hi Michael,

QGIS Sever: 2.6.0.1 QGIS Desktop: 2.6 and 2.4 (tried with both and the result is same)

regards, Pedro

rldhont commented 9 years ago

I can't reproduce the issue.

I created a vue base on a table with a trigger and I was able to update through the view.

jancelin commented 9 years ago

No problems for me on Lizmap 2.10 or 11beta. All my views working . insert update delete with triggers working also.We need more information on the view

jancelin commented 9 years ago

Have you registered your login password postgis in qgis, so in your .qgis file?

rldhont commented 8 years ago

Has been fixed and validated by @jancelin

slarosa commented 8 years ago

I have a similar error in 3.0b4 (e45489d),

Failed to load resource: the server responded with a status of 500 (Internal Jelix Error)

on edit/add/delete geometry in a postgis (point) table.

This is happening on a localhost server, Chrome and OSX.

slarosa commented 8 years ago

I created a simple project for testing: http://lrssvt.ns0.it/h2o/lizmap/www/index.php/view/

josemvm commented 8 years ago

hi,

i think that I had a similar case... because the GID field wasn't published through WFS

slarosa commented 8 years ago

@josemvm Did you manage to figure out a way to solve the problem?

josemvm commented 8 years ago

in my case, it was a simple project configuration trouble, in layer properties/fields

wfs

slarosa commented 8 years ago

unfortunately it does not work for me, all fields have the check in my case.