qgis / qwc2-demo-app

QWC2 demo application
Other
243 stars 155 forks source link

Problem with drawing a new object #435

Closed Azures49 closed 1 year ago

Azures49 commented 1 year ago

It is not possible to draw a new object within the layer. The attribute composition contains all columns, the column formats were taken from the edit_polygon layer in the qwc_demo project. What could be my mistake? 2023-03-30_11-49-02 image

manisandro commented 1 year ago

You probably need to set the field type of id_0 to hidden in the QGIS layer properties.

Azures49 commented 1 year ago

image I set up the attributes as you said, but now this error is displayed

manisandro commented 1 year ago

Check the docker container log of the qwc-data-service, you should see a more detailed error there.

Azures49 commented 1 year ago

image what is can a promlem moment?

Azures49 commented 1 year ago

image image image I don't understand why the primary key id_0 is in the data config config in docker, and there is no primary key at all in qgis desktop. When trying to change the id column in the table to id_0, it also outputs an error

manisandro commented 1 year ago

This is probably caused by the table having no primary key defined. Please check that a PK constraint exists on the table. If the issue persists, feel free to reopen.