All company Activity Dashlet

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alasdaircr
    Active Community Member
    • Aug 2014
    • 525

    All company Activity Dashlet

    We would like to be able to switch the Latest Activity dashlet to show ALL activity in the company. This patch http://sprunge.us/ASXY lets me do it globally for everyone, and I can see how to add an option to the Latest Activity dashlet.

    But how do I have this parameter pass to the backend, and then effect the request in the collection call?

    This is probably simple but I don't understand this part of the code
  • yuri
    Member
    • Mar 2014
    • 8467

    #2
    You can achieve it by changing collection's url

    collection.url = 'Stream/action/findAllActivitiesStream';

    You need to add actionFindAllActivitiesStream to the Sream Controller
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • alasdaircr
      Active Community Member
      • Aug 2014
      • 525

      #3
      Ok brilliant thanks.

      What is the significance of scope in a controller? When would it not be 'User'?

      PHP Code:
      $params['scope'] 
      

      Comment

      • yuri
        Member
        • Mar 2014
        • 8467

        #4
        I really can't remember.
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        • alasdaircr
          Active Community Member
          • Aug 2014
          • 525

          #5
          At least you're being honest

          Here is a patch, I think some people might appreciate this, rather than having to follow every entity.

          Comment

          • lemarve
            Junior Member
            • Dec 2014
            • 5

            #6
            Can you help me apply those patches please? I am not sure how to.

            Comment

            • alasdaircr
              Active Community Member
              • Aug 2014
              • 525

              #7
              Not easy to apply this unless you're willing to build Espo from github sources (as the javascript needs to be minified with the changes).

              Otherwise it's as easy as

              Code:
              curl http://sprunge.us/aUNU | git apply -

              Comment

              • lemarve
                Junior Member
                • Dec 2014
                • 5

                #8
                ok. You're right I have never built from github. There's no way to just copy and paste the files that were changed from a particular fork?

                Comment

                • alasdaircr
                  Active Community Member
                  • Aug 2014
                  • 525

                  #9
                  https://github.com/alasdaircr/espocr...ts/AllActivity Second last commit shows you what files were changed. Notice the client side change is in frontend/ folder which needs to be copied to client/

                  Comment

                  • alasdaircr
                    Active Community Member
                    • Aug 2014
                    • 525

                    #10
                    Learn how to use a patch tool though, useful if you're trying out development code

                    Comment

                    • lemarve
                      Junior Member
                      • Dec 2014
                      • 5

                      #11
                      Many thanks.... I will eventually get to it!

                      Comment

                      • lemarve
                        Junior Member
                        • Dec 2014
                        • 5

                        #12
                        Not sure what I did wrong. I'm getting "Bad server response" and an empty Stream

                        Comment

                        • alasdaircr
                          Active Community Member
                          • Aug 2014
                          • 525

                          #13
                          You need to give more information, exactly which files were copied. Did you rebuild and cache? What is message in log? What is message in browser console? (Presuming your browser is chrome/Firefox)

                          Comment

                          • alasdaircr
                            Active Community Member
                            • Aug 2014
                            • 525

                            #14
                            Rebuild and clear cache.

                            Comment

                            • lemarve
                              Junior Member
                              • Dec 2014
                              • 5

                              #15
                              ok thanks.. got it now

                              Comment

                              Working...