• Velvel Marasow 10
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 5
    Replies
<apex:page standardController="Apttus__APTS_Agreement__c" 
           extensions="APTS_Agreement.AgreementMakePrimaryController" >
    
    <apex:form >
    
        <!--  required fields -->
        <apex:outputText value="{!Apttus__APTS_Agreement__c.Name}" rendered="false"/>
        <apex:outputText value="{!Apttus__APTS_Agreement__c.APTS_Primary__c}" rendered="false"/>
        
        <!--  hidden action buttons -->
        <apex:commandButton id="btnOnLoad" action="{!onLoad}" value="On Load" style="display: none" />
        
        <script>
            var btnOnLoad = document.getElementById("{!$Component.btnOnLoad}");
        </script>
        
        <apex:pageBlock mode="edit" rendered="{!hasErrors}" >
            <apex:pageMessages />
            <apex:pageBlockButtons location="bottom" >
                <apex:commandButton action="{!doCancel}" value="{!$Label.aApttus__APTS_Agreement__cancel}" immediate="true"/>
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
    
    <script>
        // register to invoke the function after the page load
        var hasErrors = "{!hasErrors}";
        if (hasErrors.toLowerCase() == 'false') {
            window.onload = function() { 
                // on load
                btnOnLoad.click();
            };
        }
    </script>
    
</apex:page>
please write controller for vf page...

Thanks in Advance 
please 
I am creating an utility class for lists and sets. A centralized static place where i can Where clauses and select, similar to linq

verything works with Lists, But when i try this following signature.
class AddUserListUtility{
 public static Set<SObject> WherePropertyEqualsSet(Set<SObject> source, string propertyName, object value)
{
...
}
}


-- now the calling part. -- 
for(string rile : record.Roles__c.split(';'))
{
object converted = rile;
AddUserListUtility.WherePropertyEqualsSet(AllRoles, 'Role__c', converted);

}

That fails with the compile error
Method does not exist or incorrect signature: void WherePropertyEqualsSet(Set<RoleToAdd__c>, String, Object) from the type AddUserListUtility

Im baffled as the signatures seem to match.
Btw using List types work.

 
Hi all,

I've recently signed our charity up for the NPSP and have been working through the Volunteer management Trails.  I wanted to move on to look at the development and customisation aspects of Salesforce and started with the Getting started with VisualForce but have stumbled at the first step.  In Development does not show as an available App in my App Launcher, nor does ForceUI show in the "All Items" section.  Have I missed another initial step or is this just not available to NPSP users?

Thanks in advance.
Hi,
 This is my trigger : can any one help me where i am wrong.
trigger ClosedOpportunityTrigger on Opportunity (after insert, after update) {
    
    //List<Task> tasklst = [select id from Task limit 200]; 
    for(Opportunity opp : Trigger.new){
        
        //for(Opportunity op : opplst){
        if(opp.StageName == 'Closed Won'){
        
          
           Task t = new Task();
           t.WhatId = opp.id;
           t.Subject = 'Follow Up Test Task';
           t.Ownerid = opp.Ownerid;
           t.ActivityDate = system.today();

           insert t;
           system.debug('+++++++t++++++'+t);
        
       
    
    }
    }

}