Announcement

Collapse
No announcement yet.

How to change the "To" into a Varchar field type

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to change the "To" into a Varchar field type

    Hi All,
    I would like to know how to turn this field "To" field in VoIP Message entity into a Varchar field?
    Its actually set in the "Entity Manager" to be a varchar field which is good for my use case but in frontent it shows a picklist as you can see in the enclosed image.
    Please any clue on how to change this? Which is file should be updated?
    Thank you in advance.

  • #2
    Hello,
    as it's a pay extension, i can only say :
    search for this in application/Espo/modules/..../ressources/metadata/entityDefs/... folder .. and delete line.
    "view": "....:..../..../fields/to",

    i think that's do the trick.. it's varchar field.

    Comment


    • #3
      You're right item
      I found that solution on last Friday and it solved my problem.
      Thank you anyway for you availability and support

      For those facing the same problem, I edited this file: application/Espo/Modules/Voip/Resources/metadata/entityDefs/VoipMessage.json and removed "view": "voip:views/voip-message/fields/to",
      After that I commented the line below in the following file: client/modules/voip/src/views/voip-message/record/detail.js

      toFillEnum: function() {
      var toView = this.getFieldView('to');
      if (toView) {
      //toView.loadPhoneNumbers();
      toView.reRender();
      }
      },

      Comment

      Working...
      X