Hidden Link

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • DevMostafa
    commented on 's reply
    It's existed already, but thanks tanya for your help.
    I've managed a workaround to solve it.

  • tanya
    replied
    Show me brokerage account view... seems you don't set the field 'Name'

    Leave a comment:


  • DevMostafa
    replied
    This is what I'm talking to you about
    Attached Files

    Leave a comment:


  • DevMostafa
    replied
    this is the Account client files
    Attached Files

    Leave a comment:


  • tanya
    replied
    attach custom:views/Account/detail and custom:views/Account/record/detail

    Leave a comment:


  • DevMostafa
    commented on 's reply
    I had this code & think there's no fault

    {
    "controller": "custom:controllers/Account",
    "views": {
    "detail": "custom:views/Account/detail"
    },

    "recordViews": {

    "detail": "custom:views/Account/record/detail"

    }



    }

  • tanya
    commented on 's reply
    you need to look for here custom/Espo/Custom/Resources/metadata/clientDefs/Account.json

  • DevMostafa
    commented on 's reply
    NO, I checked my custom/entity and client/custom files and didn't find any dynamic logic to make this field hidden.

  • tanya
    replied
    Could be this field hidden with Dynamic Logic of some field?

    Leave a comment:


  • DevMostafa
    commented on 's reply
    Yes, I added it in the details and list view

  • tanya
    replied
    contact field has default link view, so it hasn't be hidden. Did you add this field on the layout?

    Leave a comment:


  • DevMostafa
    commented on 's reply
    This is my entityDefs file
    \www\espocrm\custom\Espo\Custom\Resources\metadata \entityDefs

    {
    "fields": {
    "name": {
    "type": "personName"
    },
    "salutationName": {
    "type": "enum",
    "options": [
    "",
    "Mr.",
    "Mrs.",
    "Ms.",
    "Dr."
    ]
    },
    "firstName": {
    "type": "varchar",
    "maxLength": 100,
    "default": ""
    },
    "lastName": {
    "type": "varchar",
    "maxLength": 100,
    "required": true,
    "default": ""
    },
    "description": {
    "type": "text"
    },
    "emailAddress": {
    "type": "email"
    },
    "phoneNumber": {
    "type": "phone",
    "typeList": [
    "Mobile",
    "Office",
    "Home",
    "Fax",
    "Other"
    ],
    "defaultType": "Mobile"
    },
    "address": {
    "type": "address"
    },
    "addressStreet": {
    "type": "text",
    "maxLength": 255,
    "dbType": "varchar"
    },
    "addressCity": {
    "type": "varchar"
    },
    "addressState": {
    "type": "varchar"
    },
    "addressCountry": {
    "type": "varchar"
    },
    "addressPostalCode": {
    "type": "varchar"
    },
    "createdAt": {
    "type": "datetime",
    "readOnly": true
    },
    "modifiedAt": {
    "type": "datetime",
    "readOnly": true
    },
    "createdBy": {
    "type": "link",
    "readOnly": true,
    "view": "views/fields/user"
    },
    "modifiedBy": {
    "type": "link",
    "readOnly": true,
    "view": "views/fields/user"
    },
    "assignedUser": {
    "type": "link",
    "required": false,
    "view": "views/fields/assigned-user"
    },
    "teams": {
    "type": "linkMultiple",
    "view": "views/fields/teams"
    },
    "bAccountManagerId": {
    "type": "int",
    "required": false,
    "audited": true,
    "disableFormatting": false,
    "isCustom": true
    },
    "bCustomerAccountId": {
    "type": "varchar",
    "required": false,
    "trim": true,
    "audited": false,
    "isCustom": true
    },
    "contact": {
    "type": "link"
    },
    "account": {
    "type": "link"
    },
    "bClientTypeId": {
    "type": "int",
    "required": false,
    "audited": true,
    "disableFormatting": false,
    "isCustom": true
    },
    "segment": {
    "type": "link"
    },
    "cashTransfers": {
    "type": "linkMultiple",
    "layoutDetailDisabled": false,
    "layoutListDisabled": true,
    "layoutMassUpdateDisabled": false,
    "noLoad": false,
    "importDisabled": false,
    "isCustom": true
    },
    "arabicName": {
    "type": "varchar",
    "required": false,
    "trim": true,
    "audited": true,
    "isCustom": true
    }
    },
    "links": {
    "createdBy": {
    "type": "belongsTo",
    "entity": "User"
    },
    "modifiedBy": {
    "type": "belongsTo",
    "entity": "User"
    },
    "assignedUser": {
    "type": "belongsTo",
    "entity": "User"
    },
    "teams": {
    "type": "hasMany",
    "entity": "Team",
    "relationName": "EntityTeam",
    "layoutRelationshipsDisabled": true
    },
    "contact": {
    "type": "belongsTo",
    "foreign": "brokerageAccounts",
    "entity": "Contact",
    "isCustom": true
    },
    "account": {
    "type": "belongsTo",
    "foreign": "brokerageAccounts",
    "entity": "Account",
    "isCustom": true
    },
    "segment": {
    "type": "belongsTo",
    "foreign": "brokerageAccounts",
    "entity": "Segment",
    "isCustom": true
    },
    "cashTransfers": {
    "type": "hasMany",
    "foreign": "brokerageAccount",
    "entity": "CashTransfers",
    "isCustom": true
    }
    },
    "collection": {
    "sortBy": "createdAt",
    "asc": false,
    "textFilterFields": [
    "name",
    "lastName",
    "bCustomerAccountId",
    "arabicName"
    ]
    },
    "indexes": {
    "firstName": {
    "columns": [
    "firstName",
    "deleted"
    ]
    },
    "name": {
    "columns": [
    "firstName",
    "lastName"
    ]
    },
    "assignedUser": {
    "columns": [
    "assignedUserId",
    "deleted"
    ]
    }
    }
    }


    The contact link only has the hidden property and I didn't know. This file is auto-generated from EspoCRM after defining the entity fields

  • tanya
    replied
    Hello
    It depends on how do you hide this field.
    Could you explain better?

    Leave a comment:


  • DevMostafa
    started a topic Hidden Link

    Hidden Link

    tanya I have a problem with a related link which is hidden in the "detail" layout between two entities and this is its metdata/entityDefs/Account.json

    "contact": {
    "type": "link"
    },
    how can I show the hidden link. I added a text between the <a></a> tags and its run successfully, but how can I make it dynamic?
Working...