Code Monkey home page Code Monkey logo

autoform's People

Contributors

gacarrillor avatar habeltwi avatar pka avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

autoform's Issues

Any plans to support CHECK constraints?

CHECK constraints from the database can specify accepted lists of values or numeric ranges. They can be represented in QGIS as value map or range widgets, respectively.

Same foreign table for many attributes in a table

The configuration of the form (Relational value) does not work if a foreign table is used several times in the same table. A single field in the correct configuration.

For example :
MyTable

  • att1 : Id
  • att2 : UserForWork1 -> FK Name : rel1 ; FK table : MyTableOfValues ; FK Field : key
  • att3 : UserForWork2 -> FK Name : rel2 ; FK table : MyTableOfValues ; FK Field : key
  • att4 : UserForWork3 -> FK Name : rel3 ; FK table : MyTableOfValues ; FK Field : key

MyTableOfValues (list of users)

  • key
  • value

Thanks

Uncaught AttributeError: Connector instance has no attribute 'iface'

Steps to reproduce

  1. First
  2. Second
  3. Third
Traceback (most recent call last):
  File "C:/Users/>user</.qgis2/python/plugins\AutoForm\autoform.py", line 62, in handleFormofLayer
    self.identifyRelations(selected_layer)
  File "C:/Users/>user</.qgis2/python/plugins\AutoForm\autoform.py", line 116, in identifyRelations
    cur = self.connector.uriDatabaseConnect(uri)
  File "C:/Users/>user</.qgis2/python/plugins\AutoForm\connector.py", line 32, in uriDatabaseConnect
    QMessageBox.warning(self.iface.mainWindow(), "Connection Error", "Failed to connect to database. Please make sure that your connection information is correct.")
AttributeError: Connector instance has no attribute 'iface'

AutoForm 0.1.0, QGIS 2.14.11-Essen on Windows 8

Error on first use

Hi,
This plugin is a great idea. I installed it but get this message when I try to run it.

2017-02-10T08:23:40 1 Traceback (most recent call last):
File "C:/Users/xxxxxxxxx/.qgis2/python/plugins\AutoForm\autoform.py", line 62, in handleFormofLayer
self.identifyRelations(selected_layer)
File "C:/Users/xxxxxxxxx/.qgis2/python/plugins\AutoForm\autoform.py", line 116, in identifyRelations
cur = self.connector.uriDatabaseConnect(uri)
File "C:/Users/xxxxxxxxx/.qgis2/python/plugins\AutoForm\connector.py", line 32, in uriDatabaseConnect
QMessageBox.warning(self.iface.mainWindow(), "Connection Error", "Failed to connect to database. Please make sure that your connection information is correct.")
AttributeError: Connector instance has no attribute 'iface'

Any ideas of what this means and why it may be happening?

Johanna

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.