How to develop a Share Dashlet for Alfresco Community v5.1

cancel
Showing results for 
Search instead for 
Did you mean: 
egor
Active Member II

How to develop a Share Dashlet for Alfresco Community v5.1

Hi,

please advice where I can find an information/instruction about how to create/develop a Dashlets (for Alfresco Community v 5.1) in step-by-step manner ?! Also it would be great to get an instruction how we can develop Dashlets by using Alfresco SDK.

I have read a lot of articles, books but no one contains information about how to develop Presentation Web Scripts or Dashlets in particular.

I have read:

-------

Spring Surf Dashlets - http://docs.alfresco.com/5.1/concepts/dev-extensions-share-surf-dashlets.html

Aikau Dashlets - http://docs.alfresco.com/5.1/concepts/dev-extensions-share-aikau-dashlets.html

Introduction to the Web Script Frameworkhttp://ecmarchitect.com/alfresco-developer-series-tutorials/webscripts/tutorial/tutorial.html

Dashlet Creationhttps://community.alfresco.com/thread/175508-dashlet-creation (not applicable to version 5.1 that I use)

Book - Learning Alfresco Web Scripts (2014)

---------

Regards,

Egor

6 Replies
afaust
Master

Re: How to develop a Share Dashlet for Alfresco Community v5.1

Looks like you already found the information / articles you need. Some even contain links to example code. Those sources may not spoon-feed the knowledge using a step-by-step approach, but they contain all the relevant information.

I don't undestand how you determined that some of the articles do not relate to your question / area of interest or would not apply to Alfresco 5.1. All of them are effectively still valid - only some minor details may be different from version to version, but that is true for any software.

You can learn about the SDK in other sections of the documentation, e.g. about the project structure for Share projects which would be relevant if you are developing an addon containing dashlets. There is no functionality specific to dashlets in the SDK - you only need to know where to place the files that are being described in other guides, and with the documentation it should be easy to make the connection.

egor
Active Member II

Re: How to develop a Share Dashlet for Alfresco Community v5.1

Axel,

I am agree in part that above links contain information relating to the Dashlets, but this information preferable for developers who already know how to create/develop a Dashelets and so they just need a difference relating to the current/modern version of Alfresco. But for newbies like me this information is not useful because we did not know how to start a develop from beginning. For example, I know how to create a Web Script but do not know how to create a Presentation Web Script. I have found nowhere any information about how to create a Web Presentation Script.

Regards,

Egor

afaust
Master

Re: How to develop a Share Dashlet for Alfresco Community v5.1

Then you might want to look at Presentation-tier web scripts. Essentially they are the same as normal web scripts, only that they run in the Share tier (different file location), have different APIs available to them (root objects) and serve a different purpose / use case.

egor
Active Member II

Re: How to develop a Share Dashlet for Alfresco Community v5.1

Axel,

Let me clarify:

1. Presentation Web Script for Alfresco Community v 5.2 is a very different from designed for Alfresco Community v 5.1 ? 

2. Presentation Web Script is the same as Dashlet ?

I want to develop a Dashlet and place it on a Site Dashboards. My current task is to develop a Dashlet which will show a list of tasks created by current user.

I tried to find information how to do that by JS API but seems it's impossible due restriction of existing API JS (workflow object) .

Then I tried to call RESTful API (http://localhost:8080/alfresco/service/api/workflow-instances) from rule script but it's also impossible.

After that I decided to extend JS API by Java Bean but unfortunately I do now how to do this.

Eventually I came to the conclusion and decided to develop Dashlet.

Regards,

Egor

afaust
Master

Re: How to develop a Share Dashlet for Alfresco Community v5.1

Presentation web scripts for Alfresco 5.2 are unchanged in concept / technology from 5.1 (or 5.0 for that matter). And the only difference compared to 4.2 is that you could not use Aikau for Dashlets in 4.2 (it did not exist yet with regards to dashlet tooling).

Presentation web script is not the same as dashlet, but a presentation web script is an integral part of providing a dashlet. It is required to render the basic markup and initialisation code for the client-side, potentially also pulling in additional JS/CSS files.

egor
Active Member II

Re: How to develop a Share Dashlet for Alfresco Community v5.1

Axel, tahnk you very much.

Could you advice me please, what books is MUST HAVE for Alfresco Developers ?

Regards,

Egor