1

I have a custom form I made and associated python code I made. Right now both are stored on mapped network drive and the layer style that gets saved to postgres references the .ui and .py file on the network drive.

Ideally, I would like it all to load as part of the style saved in the database. I was able to save the python code as part of the style by saving it in the "Provide code in this dialog" option but I cannot get a UI to load from the database.

When saving the style to the database, I did check the save UI to database and pointed it to the right file to load. But when I load the style, it still points to the same place on the network drive in the "Edit UI" input box.

I have tried various combinations like leaving it to auto-generate and whatnot but it doesn't seem to ever pull the form from the database no matter what I do.

Anyone know how to get this to work?

  • I do not think it is possible out of the box. The saved styles is a fuzzy subset of the layer properties, where you have to test whats get saved. You will have to code the missing parts yourself. – Jakob Dec 11 '16 at 12:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.