Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors from form creation and editing #72

Closed
SFrav opened this issue Mar 19, 2014 · 9 comments
Closed

Errors from form creation and editing #72

SFrav opened this issue Mar 19, 2014 · 9 comments

Comments

@SFrav
Copy link
Contributor

SFrav commented Mar 19, 2014

Minor errors being thrown here:

  1. in the config manager, previewing the form gives this:
    ... ... TypeError: unsupported operand type(s) for +:'NoneType' and 'str'

  2. when changing to data entry page in the main application:
    ... File"roam\dataentrywidget.pyc", line 252, in openform
    KeyError:"

@NathanW2
Copy link
Contributor

hmm would you be able to paste the projects settings.config

@SFrav
Copy link
Contributor Author

SFrav commented Mar 20, 2014

Also, in this instance I could not select a capture layer other than 'template'
settings.config:

description: New project description.
forms:
  GainTest:
    label: New Form
    layer: Template Layer
    type: auto
    widgets:
    - config:
        allownull: false
        list:
          items:
          - 1;
          - 2;,
          - '3'
        orderbyvalue: false
      field: null
      hidden: false
      name: Test
      read-only-rules:
      - never
      required: false
      widget: List
  New_form:
    label: New Form
    layer: Template Layer
    type: auto
    widgets:
    - config:
        allownull: true
        list:
          items:
          - 1;
          - 2;
          - '3'
        orderbyvalue: false
      default: '1'
      field: null
      hidden: false
      name: Attribute 1
      read-only-rules:
      - never
      required: false
      widget: List
    - config:
        defaultlocation: ''
      field: null
      hidden: false
      name: Attribute 2
      read-only-rules:
      - never
      required: false
      widget: Image
selectlayers:
- Template Layer
- Gain10N030EClipped
- County
- LossNgain10N030Eclipped
title: New project
version: 2.0.0

@NathanW2
Copy link
Contributor

You should remove template layer and replace it with a your own layer that
has fields.

It was just added to work around a bug in qgis.
On 20/03/2014 3:54 pm, "SFrav" [email protected] wrote:

Also, in this instance I could not select a capture layer other than
'template'
settings.config:
description: New project description.
forms:
GainTest:
label: New Form
layer: Template Layer
type: auto
widgets:

  • config:
    allownull: false
    list:
    items:
  • 1;
  • 2;,
  • '3'
    orderbyvalue: false
    field: null
    hidden: false
    name: Test
    read-only-rules:
  • never
    required: false
    widget: List
    New_form:
    label: New Form
    layer: Template Layer
    type: auto
    widgets:
  • config:
    allownull: true
    list:
    items:
  • 1;
  • 2;
  • '3'
    orderbyvalue: false
    default: '1'
    field: null
    hidden: false
    name: Attribute 1
    read-only-rules:
  • never
    required: false
    widget: List
  • config:
    defaultlocation: ''
    field: null
    hidden: false
    name: Attribute 2
    read-only-rules:
  • never
    required: false
    widget: Image
    selectlayers:
    • Template Layer
    • Gain10N030EClipped
    • County
    • LossNgain10N030Eclipped title: New project version: 2.0.0

Reply to this email directly or view it on GitHubhttps://github.com//issues/72#issuecomment-38137385
.

@SFrav
Copy link
Contributor Author

SFrav commented Mar 20, 2014

Ok, thanks.
Removed template and I have added a 'point select layer' with attributes. Now working both in config and main.

Somewhat related: Is there a way to add new fields within Intermaps?

@SFrav SFrav closed this as completed Mar 20, 2014
@NathanW2
Copy link
Contributor

Currently no put that would make a good feature. Feel free to open a ticket.
On 20/03/2014 4:53 pm, "SFrav" [email protected] wrote:

Ok, thanks.
Removed template and I have added a 'point select layer' with attributes.
Now working both in config and main.

Somewhat related: Is there a way to add new fields within Intermaps?

Reply to this email directly or view it on GitHubhttps://github.com//issues/72#issuecomment-38139599
.

@HeatherHillers
Copy link
Contributor

In what sense do you want to add new fields? Are you wanting to add fields to the selection layer, or do you want to save to a second layer with attributes from the selection layer + attributes from the form?

@NathanW2
Copy link
Contributor

Adding fields in the config manager so you can add ones that might not be
in the layer yet.
On 20/03/2014 6:09 pm, "Heather Hillers" [email protected] wrote:

In what sense do you want to add new fields? Are you wanting to add fields
to the selection layer, or do you want to save to a second layer with
attributes from the selection layer + attributes from the form?

Reply to this email directly or view it on GitHubhttps://github.com//issues/72#issuecomment-38142951
.

@HeatherHillers
Copy link
Contributor

So really just like opening the qgis Project, opening Layer Properties and adding a field to the selection layer, but from within Roam?

@NathanW2
Copy link
Contributor

Yeah exactly.
On 20/03/2014 6:43 pm, "Heather Hillers" [email protected] wrote:

So really just like opening the qgis Project, opening Layer Properties and
adding a field to the selection layer, but from within Roam. Ok.

Reply to this email directly or view it on GitHubhttps://github.com//issues/72#issuecomment-38144968
.

NathanW2 added a commit that referenced this issue Mar 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants