- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2016 06:47 AM
I have given the file name as below, but still its not working.
this.fileName = 'Incident Notification Letter.pdf';
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2016 10:25 AM
In GeneralForm Script include you will find _setFileName function, Either set the filename here or comment the below line.
"this.fileName = 'Employee Verification Letter for ' + this.glideRecord.opened_for.name";
Then try again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2016 08:18 AM
Has anyone had success with setting styles on the resulting PDF and if so, how did you go about it?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2016 01:09 PM
Hey,
I used this approach and able to generate PDFs. Thanks for all the help.
But, I have few issues in setting Header and Footers.
Header:
Need to add dynamic text in Header on Left side, apart from the company logo on Right Side.
Footer:
Text on Left Side and Page Numbers on Right Side.
Has anyone able to get these working?? I tried a lot, but cannot achieve text on Header and Page Numbers on Footers.
Any help is appreciated.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2016 03:24 PM
Hi Sriddhar
I added dynamically generated Letter ID to the letter by adding following code to _getDocTempleInfo function in script include. Just added these lines.
| this.footnote= gr.template.footnote + ''; // existing line | |||
| // add document number | |||
| var gdt = new GlideDateTime(); | |||
| this.letterid=gdt.getNumericValue(); | |||
| this.fileName = current.number+'-'+gdt.getNumericValue(); | |||
| this.footnoteleft = this.letterid + ' '+gdt.getDisplayValue() ; | |||
| var n=100-(this.footnoteleft.length+this.footnote.length); | |||
| this.footnote=this.footnoteleft + repeat(' ',n)+ this.footnote; | |||
| this.headerPosition = gr.template.header_position + ''; // existing line |
Cheers
Syed