Hide create button in list-small view

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • krishnapriya
    Senior Member
    • Aug 2017
    • 209

    Hide create button in list-small view

    Hello,

    How to hide create button in list- small view?

    Please help.

    Thanks,

  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #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

    • krishnapriya
      Senior Member
      • Aug 2017
      • 209

      #3
      Ok. Tanks Tanya

      Comment

      • alexmiller
        Member
        • Jun 2018
        • 32

        #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

        • tanya
          Senior Member
          • Jun 2014
          • 4308

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

          Comment

          • alexmiller
            Member
            • Jun 2018
            • 32

            #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

            • tanya
              Senior Member
              • Jun 2014
              • 4308

              #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...