Hello, I hope I am asking this question in the right email list. I may ask in the qgis stack exchange as well.
I am working off this example https://nathanw.net/2011/09/05/qgis-tips-custom-feature-forms-with-python-logic/ and adjusting to meet my needs. When the formOpen function is called, the dialog, layer, and feature is passed in. I want to edit the feature that is passed in but code like mylayer.changeAttribute(myfeature.id(), 10, 1) doesn't seem to be working because myfeature.id() returns 0. What code should I be using instead to edit a field in the feature? Thanks! Jen
_______________________________________________ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user