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

Configure PDF Generation #3235

Open
3 tasks done
FikriMilano opened this issue May 6, 2024 · 2 comments · May be fixed by #3278
Open
3 tasks done

Configure PDF Generation #3235

FikriMilano opened this issue May 6, 2024 · 2 comments · May be fixed by #3278
Assignees
Labels
App Configuration new-feature PR label for new feature/enhancement on release notes

Comments

@FikriMilano
Copy link
Collaborator

FikriMilano commented May 6, 2024

Describe the feature request.
Using configuration, connect the HTML structure to be used to generate PDF together with the questionnaire that intends to use that HTML structure.

Additional context
N/A

Acceptance criteria
A check list of all things to verify once the implementation by the engineer is complete

  • HTML is saved as Binary resource
  • Create a property in the config to accept the Binary ID of the HTML structure
  • Create a button action type in the config that will trigger the PDF generation

Area path
A list of ordered steps in the app on usage of the feature to support anyone testing it e.g. Code reviewer, QA e.g.

  1. Go to a profile
  2. Tap the button that will trigger the PDF generation
  3. App shows a print manager dialog
  4. Tap save as PDF

Implementation plan (For Engineers)
The plan for implementing the solution e.g. via a description or a check list for the various ordered tasks that will need to be completed.

  1. Safe the HTML as a Binary resource
  2. Create a rule in the profile, if the taskQuestionnaireId is X then return that Binary resource ID
  3. Pass that rule that contains the Binary resource ID to the questionnaireConfig's property, probably called pdfStructureId
  4. In the code, use that ID to get the HTML Binary resource
  5. Use the HTML
@FikriMilano FikriMilano self-assigned this May 6, 2024
@FikriMilano
Copy link
Collaborator Author

@pld feel free to review this ticket

@pld
Copy link
Member

pld commented May 8, 2024

looks great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App Configuration new-feature PR label for new feature/enhancement on release notes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants