Skip to content

[16.0][IMP] budget_appropriation_summary: add copy-to-clipboard button to reports#717

Open
n3n wants to merge 1 commit into
16.0from
16.0-imp-budget_appropriation_summary-copy-btn
Open

[16.0][IMP] budget_appropriation_summary: add copy-to-clipboard button to reports#717
n3n wants to merge 1 commit into
16.0from
16.0-imp-budget_appropriation_summary-copy-btn

Conversation

@n3n
Copy link
Copy Markdown
Member

@n3n n3n commented May 8, 2026

Summary

  • Add a blue "คัดลอกข้อมูล" (Copy Data) button to HTML preview mode in all appropriation summary reports (F3, F4, F5, F23W, and the 11 shared-template reports).
  • Clicking the button programmatically selects all report content (excluding the print/copy buttons) and copies it to the clipboard — identical to manually selecting and pressing Ctrl+C.
  • The button shows "คัดลอกแล้ว!" feedback for 2 seconds after copying, and is hidden automatically when printing.

Test plan

  • Open any HTML preview report (e.g. F3, F4, F5, F23W, or a shared-template report)
  • Verify a blue "คัดลอกข้อมูล" button appears below the purple print button
  • Click the button and paste into Excel/Google Sheets — data should appear with correct tab-separated columns
  • Confirm the button text changes to "คัดลอกแล้ว!" briefly after clicking
  • Verify the copy button does not appear when printing (print preview)

…TML preview reports

Add a "คัดลอกข้อมูล" button alongside the existing print button in all
HTML preview reports (F3, F4, F5, F23W, and the 11 reports using the
common template). Clicking it programmatically selects report content
and copies it to the clipboard, producing the same result as manually
selecting and pressing Ctrl+C.
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

Successfully merging this pull request may close these issues.

1 participant