Skip to content

Instantly share code, notes, and snippets.

@j-schreiber
Last active July 9, 2020 06:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j-schreiber/c4c69bee3cddbb6960c9ee782c299f58 to your computer and use it in GitHub Desktop.
Save j-schreiber/c4c69bee3cddbb6960c9ee782c299f58 to your computer and use it in GitHub Desktop.
Template Property on the PDF Controller
public static PdfTemplate__c Template {
public get {
if (Template == null && TemplateId != null) {
Template = [SELECT Id,AddressFormatting__c,DateFormatting__c,Description__c,IsActive__c,LetterFormat__c,TaxDisplayOptions__c FROM PdfTemplate__c WHERE Id = :TemplateId];
}
return Template;
}
private set;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment