Announcement

Collapse
No announcement yet.

All company Activity Dashlet

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

  • 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

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

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

    You need to add actionFindAllActivitiesStream to the Sream Controller

    Comment


    • #3
      Ok brilliant thanks.

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

      PHP Code:
      $params['scope'

      Comment


      • #4
        I really can't remember.

        Comment


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


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

            Comment


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


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


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


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

                    Comment


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

                      Comment


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

                        Comment


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


                          • #14
                            Rebuild and clear cache.

                            Comment


                            • #15
                              ok thanks.. got it now

                              Comment

                              Working...
                              X