Is it possible to implement advanced search form in a dashlet which takes place on the site dashboard - landing page? What would be the best way to do that?
There is share side service available for retrieving the form in alfresco.
http://host:port/share/service/components/form?itemKind=type&itemId=[type of document]&formId=[form_id]&mode=edit&showSubmitButton=true&showCancelButton=true&htmlid=args1
Using this service you can get the content and and display it inside any html element.
You may need to add other things like , setting the submition URL etc..
So you can take values from fields and than create above url using values and hit that URL pragmatically.
If you refer to the out-of-the-box advanced search and if you can "easily" change that to be available in the site dashboard (i.e. via limited configuration / customisation), then no. But of course it would be possible to do a substrantial dashlet implementation to add "similar" functionality as a dashlet to any dashboard.
The "best way" to do this likely involves reusing the existing advanced search form configurations, and re-implementing (or adapting) the client-side rendering + logic of the advanced search page to fit within a dashlet. Since dashlets may have less space available for the search form than in the advanced search page, you may want to think about limiting the layouting options and potentially forcing a top-down layout rule instead of allowing multi-columned set layouts.
Retrieving data ...