Custom Sales by Month Chart

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jyamada
    Junior Member
    • Aug 2026
    • 22

    #16
    Originally posted by yuri
    The 'filters' layout is called by the 'views/record/search' view, one that above the list in regular list views. If you have this view, it's normal that it fetches the layout (the layout is mere a field list for filters).

    Maybe you need not to use that view. Maybe you used 'views/list' in your dashlet? 'views/list' definitely should not be used for such a case.
    Right, I was looking at the Accounts list page to compare. When opening that page it calls three things





    This isn't yet about the report, just the entity list page not working. My custom entity controller is 'controllers/record', and the clientDef points to the right place in theory. So I'm not sure what's wrong.

    Comment

    • yuri
      EspoCRM product developer
      • Mar 2014
      • 10021

      #17
      If you need just a dashlet, you don't need the controller. Try replicating the existing sales-by-month dashlet.

      Comment

      • jyamada
        Junior Member
        • Aug 2026
        • 22

        #18
        Originally posted by yuri
        If you need just a dashlet, you don't need the controller. Try replicating the existing sales-by-month dashlet.
        I need both the dashlet and the generic list page just to list all entries. The dashlet works, I think. The list page is 404.

        Comment

        • yuri
          EspoCRM product developer
          • Mar 2014
          • 10021

          #19
          What do you mean by 'list all entries'? Because the regular list view already does it.

          Comment

          • jyamada
            Junior Member
            • Aug 2026
            • 22

            #20
            Originally posted by yuri
            What do you mean by 'list all entries'? Because the regular list view already does it.
            Trying to go to http://localhost:8080/#customCollection gives a 404 error. Trying to look at the list of all entries of an entity.

            Comment

            • yuri
              EspoCRM product developer
              • Mar 2014
              • 10021

              #21
              What records should it display? What entity type? Is it a custom entity type? If yes, how the entity type was created?

              Comment

              • yuri
                EspoCRM product developer
                • Mar 2014
                • 10021

                #22
                Important. The entity type must be in CamelCase. 'customCollection' => 'CustomCollection'. Everywhere it's referenced in the code.

                Comment

                • jyamada
                  Junior Member
                  • Aug 2026
                  • 22

                  #23
                  Originally posted by yuri
                  What records should it display? What entity type? Is it a custom entity type? If yes, how the entity type was created?
                  It's a custom entity type, all made in code, not through the entity manager. After adding the extension, it appears in the entity manager, and has the correct layouts, but the page still doesn't load.

                  Comment

                  • yuri
                    EspoCRM product developer
                    • Mar 2014
                    • 10021

                    #24
                    It's likely some mistake has a place. Maybe it will start to work after you fix the `camelCase` to `CamelCase` names.

                    Comment

                    • jyamada
                      Junior Member
                      • Aug 2026
                      • 22

                      #25
                      Originally posted by yuri
                      It's likely some mistake has a place. Maybe it will start to work after you fix the `camelCase` to `CamelCase` names.

                      https://docs.espocrm.com/development...m-entity-type/
                      100% correct. Sorry about taking up your time.

                      Comment

                      Working...