plomino / Plomino

Powerful and flexible web-based application builder
33 stars 37 forks source link

Print selected documents from a view #838

Open ermancio opened 6 years ago

ermancio commented 6 years ago

Hi all, I've read https://github.com/plomino/Plomino/wiki/HOW-TO-Produce-printable-documents Now I'd like to print only selected documents from a view.

Is it possibile to use the default check box showed on the left of each document in a view? If yes, how?

Thank you

Luca

ebrehault commented 6 years ago

Instaed of using a view, I would recommend to create a Page form containing a DocLink field where the user can select the docs he wants, and then implement the processing in an event.

ermancio commented 6 years ago

Ok. I think I should use the embedded view widget because it's the only one which allows the multi-selection (i don't like the multi-selection list). How should I create an event to print the selected document? Could you suggest me it? Thanks

ebrehault commented 6 years ago

Implement your processing in onOpenDocument and add a submit button in the form.

ermancio commented 6 years ago

Ok but I don't know how to translate in coding the document selection by means the check boxes

ebrehault commented 6 years ago

The value of the DocLink field will be a list of doc id corresponding to the selected docs.