Created
          September 25, 2011 22:34 
        
      - 
      
- 
        Save capeterson/1241262 to your computer and use it in GitHub Desktop. 
    Tag Upload Controller
  
        
  
    
      This file contains hidden or 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 with sharing class TagDemoController { | |
| Public ApexPages.StandardController sc {get; set;} | |
| public DocumentTag documentSelector {get; set;} | |
| public TagDemoController(ApexPages.StandardController sc){ | |
| this.sc = sc; | |
| documentSelector = new DocumentTag(); //Initialize our tag to avoid a null pointer | |
| } | |
| public PageReference save(){ | |
| sc.getRecord().put('someIdField__c',documentSelector.itemId); | |
| return sc.save(); | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment