Last active
July 9, 2020 06:43
-
-
Save j-schreiber/c4c69bee3cddbb6960c9ee782c299f58 to your computer and use it in GitHub Desktop.
Template Property on the PDF Controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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