Unique field

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • theBuzzyCoder
    commented on 's reply
    Hi, I would like to make the VAT and fiscal code fields unique, the fields must be varchar. It's possible to do it? I tried this: But, when I save a database error. Any suggestions? Thank you​​​​​​

  • Exsto
    replied
    Originally posted by theBuzzyCoder

    One can add
    Code:
    {
    "fields": {
    "fieldName": {
    "unique": true
    }
    }
    }
    in metadata.entityDefs.Entity.json under fields.fieldName
    Hi,
    has anything changed? Can I create a varchar field and make it unique?
    I have to make the VAT number unique.
    Thank you
    Last edited by Exsto; 09-13-2019, 05:47 AM.

    Leave a comment:


  • theBuzzyCoder
    replied
    Originally posted by rucrm
    hi
    1. Can I create a value field in which can only be unique?
    One can add
    Code:
    {
        "fields": {
            "fieldName": {
                "unique": true
            }
        }
    }
    in metadata.entityDefs.Entity.json under fields.fieldName

    Leave a comment:


  • tanya
    replied
    in database only

    Leave a comment:


  • rucrm
    replied
    Can I edit this field (number) or only in the database?

    Leave a comment:


  • tanya
    replied
    number field or autoincrement

    Leave a comment:


  • rucrm
    started a topic Unique field

    Unique field

    hi
    1. Can I create a value field in which can only be unique?
Working...