Create custom field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gundogduyakici
    Senior Member
    • Mar 2018
    • 165

    Create custom field

    I want to create field. Like int ,like varchar. I want it to appear in the Admin panel.
    Attached Files
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2

    Comment

    • gundogduyakici
      Senior Member
      • Mar 2018
      • 165

      #3
      Thanks savior tanya

      Comment

      • gundogduyakici
        Senior Member
        • Mar 2018
        • 165

        #4
        Hey tanya ,

        I did. It worked. But it does not add field to the table.I get this error.

        [2018-04-03 07:28:12] Espo.ERROR: Display Error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'lead.tckimlik' in 'field list', Code: 42S22 URL: /api/v1/Lead?maxSize=20&offset=0&sortBy=createdAt&asc=fals e [] []

        Comment

        • tanya
          Senior Member
          • Jun 2014
          • 4308

          #5
          did you define fieldDefs option?

          Comment

          • gundogduyakici
            Senior Member
            • Mar 2018
            • 165

            #6
            It looks like this when you save this custom entityDefs. But I want the type of int.

            Code:
            "tcnumara": {
            "type": "identification",
            "required": false,
            "audited": false,
            "tooltip": false,
            "isCustom": true
            }

            Comment

            • tanya
              Senior Member
              • Jun 2014
              • 4308

              #7
              you need to define this option in field definition
              /custom/Espo/Custom/Resources/metadata/fields/identification.json

              read /application/Espo/Resources/metadata/fields/wysiwyg.json fieldDefs option

              Comment

              • gundogduyakici
                Senior Member
                • Mar 2018
                • 165

                #8
                It's work great job!

                Comment

                Working...