• paddu
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 15
    Replies

Hi All,

 

I am new to Webservice Callouts, I need to implement Certifications in my apex Outbound Call.Can any one please provide some information (detail steps if possible) on how to create & use self signed / CA singed certificates in Outbound calls ?.   Any help must be highly appreciated.

 

Thanks a ton in advance !

 

Regards,

paddu.

  • December 16, 2013
  • Like
  • 0

Hi All,

 

How to use SSLcertificates in Callouts, please share some sample code if any.

Thanks a lot in advance !

  • October 21, 2013
  • Like
  • 0

Hi All,

I have a custom button on VF page (say open), when clicking on the button the page should open in a new window; it is working when Development mode is on (checked) , when switched off the development mode the page is opening inline on VF page only. Any help is highly appreiciated.


<apex:pageblockButtons location="top">
            
    <apex:commandButton action="{!tOpen}" value="Open"/>
            
</apex:pageblockButtons>



 public PageReference tOpen(){  

        PageReference pref= new PageReference('/'+ tid +'?retURL=%2F'+cid);
        pref.setRedirect(true);
        return pref;
 
    }



Thanks a ton inadvance!

 

 

  • March 25, 2013
  • Like
  • 0

Hi All,

 

I have a custom obect Post__c, I want to post the value of Post__c.message__c  ( which contains some message)  on chatter feed when a Post__c record is created. Can any one help to how to post the message on chatter. Any help is highly appreciated.

 

Thanks in advance!

 

Paddu

  • March 22, 2013
  • Like
  • 0

Hi,

 

How to display a text filed dynomically when selecting a Picklist option on a VF page. For example picklist values are val1, val2 & val3, i want to display a text field only when selecting val3. I think it could be done by using actionSupport & reRender, but I never worked on actionSupport,  can any one help me how to achieve this throught actionSupport or any other approach ?.

Any help must be highly appreacted.

 

 

Thanks in advance!

  • October 08, 2012
  • Like
  • 0

Hi,

 

I'm struck to write a VF page to override Oppprtunity.Choose price book standard button. I need to show list of Pricebooks on my page based on profiles. Can any one help / give some idea how to overriede.  Any help must be highly appreciated.

 

 

Thanks & Regards,

 

 

 

  • August 07, 2012
  • Like
  • 0

Hi,

 

I'm getting the " Execution of AfterUpdate :System.FinalException: Record is read-only" while updating an Opportunity record. Any help must be highly appreciated.

 

Here is my trigger:

 

trigger updateOpportunity on Opportunity (before insert,after update) {
Set<Id> opportunityIds = new Set<Id>();

  for(Opportunity opp: Trigger.new){
 
   if(opp.Amount >=  5000){
          opp.newPro__c = true;
    }
 
   if(opp.Amount < 5000 && opp.HasOpportunityLineItem == true){
       opportunityIds.add(opp.Id);
      }
    }
 
  if(!opportunityIds.isEmpty())
            UpdateOpportunity_CLS.updateCheckBox(opportunityIds);
 }

 

Here is the class

Public class UpdateOpportunity_CLS{

public static void updateCheckBox(Set<id> oppIds)
{
    List<OpportunityLineItem> oppLineItems = New List<OpportunityLineItem>();
    Set<Id> OppIdYes = New Set<Id>();
    oppLineItems = [SELECT
                           Id,
                           OpportunityId,
                           Opportunity.Internal__C,
                           Opportunity.Amount,
                           PricebookEntry.Product2.Internal_Product__c
                    FROM
                           OpportunityLineItem       
                    WHERE
                           OpportunityId in : oppIds];
                           
                    
    for(OpportunityLineItem opl : oppLineItems)
    {
        if(opl.Opportunity.Amount >=5000 || opl.PricebookEntry.Product2.Internal_Product__c == true)
        {
            OppIdYes.add(opl.OpportunityId);
         }
    }
     
    List<opportunity> updateOpps = New List<opportunity>();
    List<opportunity> OppList = New List<opportunity>();
    OppList = [SELECT
                      Internal__C
               FROM
                      Opportunity
               WHERE
     
                      Id in : OppIdYes];

    for(opportunity Opp : OppList)
    {
        if(OppIdYes.contains(Opp.id) && opp.Internal__C != true)
        {
            opp.Internal__C = true;
           
            updateOpps.add(Opp);
        }
          
            
    }  
      if(!updateOpps.isEmpty())
        update updateOpps;       
                
}

 

 

Thanks in advance !!

 

  • July 25, 2012
  • Like
  • 0

Hi,

 

I have a workflow field update on Opportunity, which fires everytime a record is created/edited. It is working as expected for Standard Users, but not working for Patner Portal user. (when creating a opportunity as partner portal user).  Any idea ?.

Any help must be appreciated.

 

Thank in advance !

 

 

  • July 24, 2012
  • Like
  • 0

Hi All,

 

How to use SSLcertificates in Callouts, please share some sample code if any.

Thanks a lot in advance !

  • October 21, 2013
  • Like
  • 0

Hi All,

I have a custom button on VF page (say open), when clicking on the button the page should open in a new window; it is working when Development mode is on (checked) , when switched off the development mode the page is opening inline on VF page only. Any help is highly appreiciated.


<apex:pageblockButtons location="top">
            
    <apex:commandButton action="{!tOpen}" value="Open"/>
            
</apex:pageblockButtons>



 public PageReference tOpen(){  

        PageReference pref= new PageReference('/'+ tid +'?retURL=%2F'+cid);
        pref.setRedirect(true);
        return pref;
 
    }



Thanks a ton inadvance!

 

 

  • March 25, 2013
  • Like
  • 0

Hi All,

 

Getting the following error,can any one help if any idea ?

 

ErrorError: Compile Error: Constructor not defined: [System.SelectOption].<Constructor>(Date, String) at line 15 column 29

 

 

Controller class:

public with sharing class CustomSettingsDemo_CLS{
  public String selectedIso {get;set;}
 

   public CustomSettingsDemo_CLS(ApexPages.StandardController controller) {

    }
    
    public List<selectOption> fqCodes {
        get {
             List<selectOption> options = new List<selectOption>();
 
            for (FiscalQuarters__c fq : FiscalQuarters__c.getAll().values())
                options.add(new SelectOption(fq.CustomFiscalQuarters__c,fq.Name+' - '+fq.CustomFiscalQuarters__c));
            return options;
 
        }
        set;
    }
 
}

 

Using custom setting in the controller class, any help is highly appreciated.

 

 

Thanks in advance,

rsk

 

 

 

Hi,

 

How to display a text filed dynomically when selecting a Picklist option on a VF page. For example picklist values are val1, val2 & val3, i want to display a text field only when selecting val3. I think it could be done by using actionSupport & reRender, but I never worked on actionSupport,  can any one help me how to achieve this throught actionSupport or any other approach ?.

Any help must be highly appreacted.

 

 

Thanks in advance!

  • October 08, 2012
  • Like
  • 0

Hi,

 

I'm struck to write a VF page to override Oppprtunity.Choose price book standard button. I need to show list of Pricebooks on my page based on profiles. Can any one help / give some idea how to overriede.  Any help must be highly appreciated.

 

 

Thanks & Regards,

 

 

 

  • August 07, 2012
  • Like
  • 0

Hi,

 

I'm getting the " Execution of AfterUpdate :System.FinalException: Record is read-only" while updating an Opportunity record. Any help must be highly appreciated.

 

Here is my trigger:

 

trigger updateOpportunity on Opportunity (before insert,after update) {
Set<Id> opportunityIds = new Set<Id>();

  for(Opportunity opp: Trigger.new){
 
   if(opp.Amount >=  5000){
          opp.newPro__c = true;
    }
 
   if(opp.Amount < 5000 && opp.HasOpportunityLineItem == true){
       opportunityIds.add(opp.Id);
      }
    }
 
  if(!opportunityIds.isEmpty())
            UpdateOpportunity_CLS.updateCheckBox(opportunityIds);
 }

 

Here is the class

Public class UpdateOpportunity_CLS{

public static void updateCheckBox(Set<id> oppIds)
{
    List<OpportunityLineItem> oppLineItems = New List<OpportunityLineItem>();
    Set<Id> OppIdYes = New Set<Id>();
    oppLineItems = [SELECT
                           Id,
                           OpportunityId,
                           Opportunity.Internal__C,
                           Opportunity.Amount,
                           PricebookEntry.Product2.Internal_Product__c
                    FROM
                           OpportunityLineItem       
                    WHERE
                           OpportunityId in : oppIds];
                           
                    
    for(OpportunityLineItem opl : oppLineItems)
    {
        if(opl.Opportunity.Amount >=5000 || opl.PricebookEntry.Product2.Internal_Product__c == true)
        {
            OppIdYes.add(opl.OpportunityId);
         }
    }
     
    List<opportunity> updateOpps = New List<opportunity>();
    List<opportunity> OppList = New List<opportunity>();
    OppList = [SELECT
                      Internal__C
               FROM
                      Opportunity
               WHERE
     
                      Id in : OppIdYes];

    for(opportunity Opp : OppList)
    {
        if(OppIdYes.contains(Opp.id) && opp.Internal__C != true)
        {
            opp.Internal__C = true;
           
            updateOpps.add(Opp);
        }
          
            
    }  
      if(!updateOpps.isEmpty())
        update updateOpps;       
                
}

 

 

Thanks in advance !!

 

  • July 25, 2012
  • Like
  • 0

Hi,

 

I have a workflow field update on Opportunity, which fires everytime a record is created/edited. It is working as expected for Standard Users, but not working for Patner Portal user. (when creating a opportunity as partner portal user).  Any idea ?.

Any help must be appreciated.

 

Thank in advance !

 

 

  • July 24, 2012
  • Like
  • 0

Very similar to the VF Cookbook Opportunity Wizard example, I have created an opportunity creation wizard because my users complain about too many clicks when creating an opportunity, adding products, etc.  My question is when the user clicks on Save, I would like to save the opportunity but instead of redirecting to the saved opportunity detail, go directly to the standard add products page.  I do not want to add the button to the VF page, just redirect to the standard add products search functionality.

 

I have been trying to set the addProductsURL as the page reference after saving the opportunity and have tried it a couple of ways in my controller without success.

public PageReference addProductsURL(){ PageReference p = new PageReference('/'+SelectSearch?addTo={!Opportunity.ID} ); p.getParameters().put('addTo',opportunity.Id); p.setRedirect(true); return p; This is how I tried to return the addProductsURL after saving opportunity: PageReference addProduct = Page.addProductsURL; addProduct.getParameters().put('id',this.controller.getId()); addProduct.setRedirect(true); return addProduct;

 

Thanks!  Any ideas are appreciated :)

 

Any idea why I get a "field integrity exception" error when I try to update SOME PricebookEntry objects?  It doesn't happen for all Pricebooks/PricebookEntry objects, just some, but I can't figure out whether there's a pattern.  I'm definitely using a valid PricebookEntryId.  Any ideas are appreciated.