Announcement

Collapse
No announcement yet.

Hide create button in list-small view

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

  • Hide create button in list-small view

    Hello,

    How to hide create button in list- small view?

    Please help.

    Thanks,


  • #2
    Hi
    set createButton false in view definition
    In createView, I add a property, multiple: true. When I select multiple items, I get an error, "product.get is not a function" in the console. I ran

    I want to create a view of case/matter entity. I don't want the scope of it, just the list of items in case/matter entity as a link. Somewhat similar to the

    Comment


    • #3
      Ok. Tanks Tanya

      Comment


      • #4
        I set createButton: false, in the client/custom/src/views/entity/record/list.js but it doesn't disable the button, and i dont see anywhere else where there is a createButton my code is:
        Code:
        Espo.define('custom:views/claims/record/list', 'views/record/list', function (Dep) {
        
            return Dep.extend({
        
                rowActionsView: 'custom:views/claims/record/row-actions/default',
        
                actionFileManager : function (data) {
        
                    this.showModal(data);
                },
        
                showModal: function(data){
                    var contactName = data.name || 'Contact Name';
                    this.createView('showFileManager', 'custom:views/contact/modals/filemanager', {
                        scope: this.scope,
                        createButton: false,
                        data: {
                            contactName: contactName,
                            claimLastSNN: data.claimlastsnn,
                            claimNumber: data.claimnumber
                        }
                    }, function (view) {
                        view.render();
                        view.notify(false);
                        //view.close();
                    }.bind(this));
                }
        
            });
        
        });
        Please help!

        Comment


        • #5
          is this view loaded (did you define it in clientDefs and have no errors in browser console)?

          Comment


          • #6
            you mean like this:
            Code:
            "recordViews": {
                    "list": "custom:views/claims/record/list",
                    "edit": "custom:views/claims/record/edit",
                    "detail": "custom:views/claims/record/detail"
                },
            and the view is called form client/custom/src/view/entity/record/list-edit-or-detail?

            Comment


            • #7
              client/custom/src/views/claims/record/ folder
              Do you need to override all the views or just list?
              and in your view you defined rowActionsView: 'custom:views/claims/record/row-actions/default'. Do you need it, and did you create this view?

              Comment

              Working...
              X