I am a creator — PDF Document Generator - Walter Brame

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2014 08:09 PM
------------------
EDIT
------------------
A lot has changed over the years.
Be sure to check here first:
https://developer.servicenow.com/dev.do#!/reference/api/quebec/server/sn_pdfgeneratorutils-namespace/CellBothAPI?navFilter=pdf
Have also enjoyed repurposing Webkit HTML to PDF plugin:
https://docs.servicenow.com/bundle/geneva-performance-analytics-and-reporting/page/use/performance_analytics/task/t_ActivateWHTP.html
------------------
ORIGINAL
------------------
PDF Document Generator is used by the ServiceNow, Inc. sales organization and is a generic HTML form creation and PDF Document generation framework. The framework supports creating HTML forms and PDF files using any UI Form in the instance as a template.
The PDF Document Generator will replicate how that standard UI Form looks but then provides the functionality to change it easily as a front-end user without requiring development.
A PDF feature exists today in the standard platform but it is not customizable. The PDF Document Generator allows for rapid deployment of multiple templates and making changes on the fly to every component visible on the screen very quickly and easily.
Previously, the Sales organization was challenged with the ability to produce Quotes and Sales Orders from a CRM environment. With this custom ServiceNow, Inc. app in place, it is now possible for the front-end business users (sales operations, systems managers, administrators, power users, non-developers) to access configuration tools that put control of the following features directly into their hands:
- Add/remove fields as needed
- Change any fields placement and the field's label, orientation, or value
- Change any section/grouping or fields / Table of information (E.g. "Section 1", "Section 2", etc.)
- Add/remove new sections present in the form
- Manage an entire section's placement, splits, annotations, and headers
- Re arrange the placement of components in the form (E.g. one component relative to the next)
- Change the look and feel (color, border, padding, alignment, etc.) via common HTML and CSS style attributes.
- A scripting API to create dynamic conditions to change any aspect of the form and data (style, value, label, section, etc.).
- Save templates of form layouts
- Preview and print to PDF
The functionality of this PDF Document Generator was made possible by leveraging the ability to write custom scripts in the standard ServiceNow platform, and by having access to the backend table structure and data where forms are stored in the instance (standard UI page, CSS, HTML, and JavaScript). A single developer, in a time frame of one business quarter, built the PDF Document Generator.
!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2014 11:06 AM
Really amazing ....I would be interested to see what all can we achieve through this app.
Nice work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2014 07:32 AM
Hi Walter,
When previewing the downloaded Update Set on Custom and OOB Calgary instances, I got 11 Errors :
- Missing item: 2eb4c31037102100d50561d8bcbe5d9a from table sys_user_role
> Remote update: sys_security_acl_role_47b4c31037102100d50561d8bcbe5da1
Missing item: 46f4071037102100d50561d8bcbe5d49 from table sys_user_role
> Remote update: sys_security_acl_role_c6f4071037102100d50561d8bcbe5d50
Missing item: 46f4071037102100d50561d8bcbe5d49 from table sys_user_role
> Remote update: sys_db_object_60e4075037102100d50561d8bcbe5dd6
Missing item: 2eb4c31037102100d50561d8bcbe5d9a from table sys_user_role
> Remote update: sys_db_object_4d44835037102100d50561d8bcbe5dcb
Missing item: 2eb4c31037102100d50561d8bcbe5d9a from table sys_user_role
> Remote update: sys_security_acl_role_4bb4c31037102100d50561d8bcbe5da2
Missing item: 2eb4c31037102100d50561d8bcbe5d9a from table sys_user_role
> Remote update: sys_security_acl_role_3eb4c31037102100d50561d8bcbe5d9e
Missing item: 46f4071037102100d50561d8bcbe5d49 from table sys_user_role
> Remote update: sys_security_acl_role_cef4071037102100d50561d8bcbe5d4d
Missing item: sys_id from table u_pdf_document_generator_demo
> Remote update: sys_ui_list_u_pdf_document_generator_demo_sys_ref_list
Missing item: 2eb4c31037102100d50561d8bcbe5d9a from table sys_user_role
> Remote update: sys_security_acl_role_43b4c31037102100d50561d8bcbe5da0
Missing item: 46f4071037102100d50561d8bcbe5d49 from table sys_user_role
> Remote update: sys_security_acl_role_c2f4071037102100d50561d8bcbe5d4f
Missing item: 46f4071037102100d50561d8bcbe5d49 from table sys_user_role
> Remote update: sys_security_acl_role_8af4071037102100d50561d8bcbe5d4c
If I skip these errors, the Elements, Lists and Demo modules returns me an empty page with this message : "The page you are looking for could not be found.".
If you have any idea about how to fix this, maybe by modifying your Update Set ?
Regards,
Geoffrey

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2014 07:38 AM
Hi Geoffrey,
Received one other report about the same thing this morning. Am looking into it right now. Yes agreed it should be a simple fix of adding the missing role. Will modify the update set and upload a new version.
To help me test what happened with the update set can you share the version of the instance you are running?
Thanks,
Walter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2014 07:43 AM
Hi Walter,
I tried to commit your update set on Calgary patch 4 and an OOB Calgary instance (demonightlycalgary).
Regards,
Geoffrey

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2014 09:35 AM
After investigating it looks like an issue with several tables that should be included but do not install correctly from the update set. A few roles missing as well but all issues appear to be related to moving the update set between versions or to a lower version than where it was captured initially.
What I am going to do is capture the tables needed in another update set for Dublin and Calgary separately upload those supporting files.