Docs: Document how to include Sketches in Reports (FLCRM-20058)#35
Docs: Document how to include Sketches in Reports (FLCRM-20058)#35
Conversation
There was a problem hiding this comment.
Pull request overview
Updates Report Builder docs to explain how to include Sketch fields in custom reports, adding the missing SKETCHURL function reference and a dedicated example page.
Changes:
- Added documentation for
SKETCHURL(id, options)in the functions reference. - Extended the
RENDERVALUESexample to render sketches alongside other media types. - Added a new “Sketches” examples page and included it in the examples navigation order.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
| docs/REPORT BUILDER/reports-introduction/functions.md | Adds SKETCHURL docs and updates existing examples/formatting |
| docs/REPORT BUILDER/reports-examples/sketches.md | New example page showing how to render and style sketches |
| docs/REPORT BUILDER/reports-examples/_order.yaml | Adds the new sketches page to the sidebar order |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
nehilor
left a comment
There was a problem hiding this comment.
Applied feedback: downgraded headings in sketches.md to H2 for consistency.
There was a problem hiding this comment.
Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Added comprehensive documentation for SKETCHURL function parameters and options - Documented sketch data structure (mediaID, caption, isEmpty properties) - Added examples for accessing sketch data and handling empty fields - Included practical examples for common use cases: - Display only first sketch - Access specific sketch by field name - Add metadata (creation dates) to sketches - Hide labels when field is empty - Number sketches automatically - Grid layout for multiple sketches - Page break handling - Improved metadata with better title, description, and robots index - Added code examples for querying sketch metadata from database - Included CSS examples for responsive layouts and styling
corporealshift
left a comment
There was a problem hiding this comment.
We should consolidate on mediaID for all examples for consistency. We should also remove caption from sketch examples since we don't have a way to save a caption yet
- Restore missing code fence in RENDERVALUES example - Remove trailing comma from RENDER params for wider JS compatibility - Replace curly quotes in STATICMAP examples with straight quotes - Standardize sketch examples to use mediaID - Remove sketch caption examples not currently supported - Switch EJS snippets in sketches docs to html fenced blocks
|
Addressed all review feedback in commit f512658. Summary of fixes:
All review threads are now resolved. |
There was a problem hiding this comment.
Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Addressed all review feedback in commit f512658. Summary of fixes:
All review threads are now resolved. |
1 similar comment
|
Addressed all review feedback in commit f512658. Summary of fixes:
All review threads are now resolved. |
There was a problem hiding this comment.
Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
This PR updates the Report Builder documentation to include instructions and examples on how to incorporate Sketches into custom reports. It adds the missing
SKETCHURLfunction reference and provides a new dedicated example page for better developer guidance.Jira Ticket
FLCRM-20058
Changes
1. Documentation of
SKETCHURLFunctiondocs/REPORT BUILDER/reports-introduction/functions.mdto include theSKETCHURL(id, options)function.RENDERVALUESglobal function example to include logic forisSketchElement, showing how to render sketches alongside photos and signatures.2. New Sketches Example Page
docs/REPORT BUILDER/reports-examples/sketches.mdwhich provides:BODYsection of a report.3. Navigation & Consistency
docs/REPORT BUILDER/reports-examples/_order.yamlto ensure it appears in the documentation portal's sidebar.***horizontal rules with---.How to Verify
SKETCHURLsection is accurate.