Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print selected documents from a view #838

Open
ermancio opened this issue Feb 6, 2018 · 5 comments
Open

Print selected documents from a view #838

ermancio opened this issue Feb 6, 2018 · 5 comments

Comments

@ermancio
Copy link

ermancio commented Feb 6, 2018

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
Copy link
Member

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
Copy link
Author

ermancio commented Feb 6, 2018

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
Copy link
Member

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

@ermancio
Copy link
Author

ermancio commented Feb 6, 2018

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

@ebrehault
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants