Skip to content

Visual Field Editor "Auto-number" checkbox is read-only for unreliably scoped tables #8430

Description

@bronwyncombs

Describe the bug
A clear and concise description of what the bug is.

In the Field Formatters app resource visual editor, the Auto-number checkbox can't be selected for Numeric parts of a MaterialSample format.

To Reproduce
Steps to reproduce the behavior:

  1. Go to App Resources > Field Formatters
  2. Add a Material Sample format
  3. Pick any field to base it on, add a numeric format part
  4. See "Auto-number" checkbox is read only

Expected behavior
A clear and concise description of what you expected to happen.

Auto-number checkbox should be clickable

Screenshots
If applicable, add screenshots to help explain your problem.

Image

Please fill out the following information manually:

  • OS: macOS
  • Browser: chrome
  • Specify 7 Version: v7.12.0.7
  • Database Name: demofish

Reported By
Name of your institution

Robyn @ Royal Botanic Garden of Edinburgh (1248)

Additional context

  • Found with materialSample, Deaccession, and Borrow table so far.

  • Workaround: Add inc="true" to the format in the XML editor.

Context from a convo between Elizabeth and Jason:

Looks like it's disabled when the scoping of the table can't be inferred.
You would get a HierarchyException when Specify tried to auto-increment a field for a table that can't be reliably scoped. So for something like a Permit, Disposal, CollectionRelType, etc., Specify can't determine how those tables should be scoped so it doesn't know how to restrict or "filter" which records it should use for auto-incrementing.

possibly related: #6293

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    2 - App ResourcesIssues that are related to app resources2 - FormsIssues that are related to the form system2 - User InterfaceIssues that are related to the user interface or user experience.

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions