• anu123
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 47
    Questions
  • 23
    Replies

Hi All,

        i override the convert button on lead object.i want to remove the convert button in detail page after once the lead is converted.(OR) we cant possible to edit the lead record once the lead is converted.Any one can u please give me the solution for this.

 

Public class leadconvert{public leadconvert(ApexPages.StandardController controller){}public pagereference convert(){pagereference p;id lid=apexpages.currentPage().getParameters().get('id');list<CO_1__c> co1list=new list<CO_1__c>();
for(lead l:[select LastName,email,FirstName,Company,Status from lead where RecordTypeid =:'012U00000008oe5' and id=:lid and IsConverted=false]){CO_1__c co1=new CO_1__c();contact__C con=new contact__C();co1.Name=l.lastname;insert co1;con.Last_Name__c=l.lastname;con.First_Name__C=l.FirstName;con.email__c=l.email;con.CO_1__c=co1.id;insert con;p=new pagereference('/a00/o');
}for(lead l:[select LastName,email,FirstName,Company,Status from lead where RecordTypeid =:'012U00000008oeA' and id=:lid]){CO_2__c co2=new CO_2__c();contact__C con=new contact__C();co2.Name=l.lastname;insert co2;con.Last_Name__c=l.lastname;con.First_Name__C=l.FirstName;con.email__c=l.email;con.CO_2__c=co2.id;insert con; p=new pagereference('/a01/o');
}
for(lead l:[select LastName,email,FirstName,Company,Status from lead where RecordTypeid =:'012U00000008oeF' and id=:lid]){CO_3__c co3=new CO_3__c();contact__C con=new contact__C();co3.Name=l.lastname;insert co3;con.Last_Name__c=l.lastname;con.First_Name__C=l.FirstName;con.email__c=l.email;con.CO_3__c=co3.id;insert con; p=new pagereference('a02/o');
}
return p;
}}

 

Thanks in advacne.

anu 

  • September 29, 2011
  • Like
  • 0

Hi All,

    i wrote this class for integration of Mailchimp with salesforce using apis

 

public class MailchimpOauth{public void invokeExternalWs(){Http h = new Http();   HttpRequest req = new HttpRequest();               //req.setHeader('Host','https://oauth.constantcontact.com/ws/oauth/request_token');      req.setBody('https://login.mailchimp.com/oauth2/authorize');   req.setBody('https://login.mailchimp.com/oauth2/token');   req.setBody('https://login.mailchimp.com/oauth2/');   req.setBody('https://login.mailchimp.com/oauth2/metadata');
    req.setHeader('Connection','keep-alive');    req.setHeader('Content-Type', 'application/atom+xml');    req.setMethod('POST');    req.setEndpoint('https://login.salesforce.com/services/oauth2/authorize?response_type=code&client_id=957533735502&redirect_uri=http://localhost/oauth/complete.php');

     HttpResponse res = h.send(req);      system.debug(res.getbody());
}}

 

But i got a response like  Status=Bad Request, StatusCode=400 &&&&&error=invalid_client_id&error_description=client%20identifier%20invalid.How to fix this.

any one can u please rectify this.can u give me the solution for fixing that.calient id given in that one is valid.But i dont know how the response coming like this.

 

Thanks in advance.

anu

 

  • September 27, 2011
  • Like
  • 0

Hi All,

       I want to integrate salesforce with Mailchimp using Oauth authentication apis.Any one can u please give me the sample code in apex controllers.

 

Thanks in advance

anu......

  • September 26, 2011
  • Like
  • 0

Hi All,

    I have generated one report activities and leads.if a report contains different name with same emails.i want display single email only in the refort.Is it possibe or not.If any one know can u help this.

 

Thanks in advance

anu

  • September 24, 2011
  • Like
  • 0

Hi all ,

     i wrote this page for displaying google map

<apex:page standardController="Account">
<head>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script type="text/javascript"> 
$(document).ready(function() {    var myOptions = {    zoom: 15,    mapTypeId: google.maps.MapTypeId.ROADMAP,    mapTypeControl: false  }    var map;  var marker;    var geocoder = new google.maps.Geocoder();  var address = "{!Account.BillingStreet}, " + "{!Account.BillingCity}, " + "{!Account.BillingPostalCode}, " + "{!Account.BillingCountry}";    var infowindow = new google.maps.InfoWindow({    content: "<b>{!Account.Name}</b><br>{!Account.BillingStreet}<br>{!Account.BillingCity}, {!Account.BillingPostalCode}<br>{!Account.BillingCountry}"  });
  geocoder.geocode( { address: address}, function(results, status) {    if (status == google.maps.GeocoderStatus.OK && results.length) {      if (status != google.maps.GeocoderStatus.ZERO_RESULTS) {              //create map        map = new google.maps.Map(document.getElementById("map"), myOptions);              //center map        map.setCenter(results[0].geometry.location);                //create marker        marker = new google.maps.Marker({            position: results[0].geometry.location,            map: map,            title: "{!Account.Name}"        });                //add listeners        google.maps.event.addListener(marker, 'click', function() {          infowindow.open(map,marker);        });        google.maps.event.addListener(infowindow, 'closeclick', function() {          map.setCenter(marker.getPosition());         });              }          } else {      $('#map').css({'height' : '15px'});      $('#map').html("Oops! {!Account.Name}'s billing address could not be found, please make sure the address is correct.");      resizeIframe();    }  });    function resizeIframe() {    var me = window.name;    if (me) {      var iframes = parent.document.getElementsByName(me);      if (iframes && iframes.length == 1) {        height = document.body.offsetHeight;        iframes[0].style.height = height + "px";      }    }  }  });</script>
<style>#map {  font-family: Arial;  font-size:12px;  line-height:normal !important;  height:250px;  background:transparent;}</style>
</head> <body><div id="map"></div> </body> </apex:page>

 

 

Any one can u please help me.

 

Thanks in advance.

anu

  • September 21, 2011
  • Like
  • 0

Hi All,

   i want to display in vf page for displaying the next month first,next week values.i hope any one can help this.

 

thanks in advance

anu

  • September 20, 2011
  • Like
  • 0

Hi all,

    I want to generate the reports up to 6 months based on weeklywise(means of Total 24 weeks).i hope any one can help this .Please send me the way of creating reports based on the above requirement.

 

Thanks in advance

anu

  • September 20, 2011
  • Like
  • 0

Hi all,

 i want to generate the reports uisng thei condition

A report need to be generated to show up all Leads which have been communicated from 0 to 14 times either through VM or regular emails or a combination of both.How to write conditions for that.i hope any one can help this.

 

thanks in advace

 

anu

  • September 17, 2011
  • Like
  • 0

Hi all, 

  i want to get the day of the created date in lead object.How to write formula field for this .any one can u please help me.

 

Tahnks in advance

anu.....

  • September 16, 2011
  • Like
  • 0

Hi all,

   i want to add email temapltes towork flow rules.

i have seven email templates.

  Condition is: if lead created day is monday ,sending  second email on thursday  third email on tuesday, fourth email on thursday,fifth email on tuesday,sixth email on thursday,seventh email on tuesday.I hope any one can help this .send me the sample code.

 

thanks in advace.

anu.

 

  • September 16, 2011
  • Like
  • 0

Hi all,

     I want to display standard reports in vf page.any one can u please give me the sample code.

 

Thanks in advance..

anu

     

  • September 16, 2011
  • Like
  • 0

Hi All,

     I have a list of values. and place chekboxes related to that list .in this only one check box value allowint.any one can u please send me the sample code .

 

thanks in advance.

anu





  • September 15, 2011
  • Like
  • 0

Hi all,

      i want to pass parameters to vf page without using controller in the url manually.What i passed the value in the url that value will print in vf page.Any one can u please send me the sample code.

Thanks in advance.

anu

  • September 08, 2011
  • Like
  • 0

Hi All,

    I am new to webservices.i want to interact rpc based wsdl from salesforce.any can u please help me.if possible send me the sample code.

 

thanks in advance.

anu

  • September 08, 2011
  • Like
  • 0

Hi All, 

  i develop a page for event object search functionality. in that fo searching events based on from date and to date.For that we need to enter the dates like From:---------------

   To:-------------.these field are visible in vf page. but not visible in sites.But i did all CRUD settings and field level security settings.whats wrong in my code.I hope. any  one can resolve my problem.

 

 

 

My site url is:      https://sravani-developer-edition.ap1.force.com/Eventpage 

 

 

 

Page is:  

 

<apex:page Controller="eventpage"  sidebar="false">  <apex:form ><apex:pageBlock title="Search for an event">Location:<apex:inputText value="{!location}"/><br/>Category:<apex:inputText value="{!Category}"/><br/><br/><b>Daterange:</b><br/><br/>From:<apex:inputField value="{!dates.startdate__c}"/><br/>To: <apex:inputField value="{!dates.enddate__c}"/><br/><br/>
<apex:commandButton value="Find Events" action="{!findevents}"/><apex:outputPanel rendered="{!cat}">  <apex:pageBlock >  <apex:pageBlockTable value="{!events}" var="acc">  <apex:column headerValue="Event name" value="{!acc.Whoid}"/>  <apex:column headerValue="Location" value="{!acc.Location}"/>  <apex:column headerValue="FromDate" value="{!acc.startdate__c}"/>  <apex:column headerValue="ToDate" value="{!acc.enddate__c}"/>  <apex:column headerValue="Category" value="{!acc.Category__c}"/></apex:pageBlockTable></apex:pageBlock>  </apex:outputPanel>      </apex:pageBlock>     </apex:form>     </apex:page>

 

 

controller is:

 

public class eventpage{public string fromdate1{set;get;}public string location{set;get;}public string category{set;get;}public boolean cat{set;get;}event edate=new event();
public void setedate(event ed){edate=ed;
}public event getedate(){return edate;}public list<Event> elist=new list<Event>();
public void findevents(){elist.clear();if(location!=''&& category==''&& edate.startdate__c==null && edate.enddate__c==null){string s=location+'%';for(event e:[select id,whoid,startdate__c,enddate__c,Location,Category__C from Event where location like:s]) { elist.add(e); system.debug('+++++++'+elist); }}else if(category!=''&&location==''&& edate.startdate__c==null && edate.enddate__c==null){string s1=category+'%';for(event e:[select id,whoid,startdate__c,enddate__c,Location,Category__C from Event where category__C like:s1]) { elist.add(e);  }}else if(location!=''&&category!=''&& edate.startdate__c==null && edate.enddate__c==null){string s=location+'%';string s1=category+'%';for(event e:[select id,whoid,startdate__c,enddate__c,Location,Category__C from Event where category__C like:s1 and Location like:s]) { elist.add(e);  }}else if(location==''&&category=='' && edate.startdate__c!=null && edate.enddate__c!=null  ){Date s2=edate.startdate__c;Date s3=edate.enddate__c;
for(event e:[select id,whoid,startdate__c,enddate__c,Location,Category__C from Event where startdate__c >=:s2 AND enddate__c<=:s3]) { elist.add(e); System.debug('++++++++======'+elist);  }}

else if(location==''&&category=='' && edate.startdate__c!=null && edate.enddate__c==null  ){Date s2=edate.startdate__c;
for(event e:[select id,whoid,startdate__c,enddate__c,Location,Category__C from Event where startdate__c >=:s2 ]) { elist.add(e); System.debug('++++++++======'+elist);  }}
else if(location==''&&category=='' && edate.startdate__c==null && edate.enddate__c!=null  ){
Date s3=edate.enddate__c;
for(event e:[select id,whoid,startdate__c,enddate__c,Location,Category__C from Event where enddate__c <=:s3 ]) { elist.add(e); System.debug('++++++++======'+elist);  }}

else if(edate.startdate__c!=null && edate.enddate__c!=null&&location!=''&&category==''){Date s2=edate.startdate__c;Date s3=edate.enddate__c;String s4=location+'%';for(event e:[select id,whoid,startdate__c,enddate__c,Location,Category__C from Event where startdate__c >=:s2 AND enddate__c<=:s3 AND location like:s4]) { elist.add(e);  }}else if(edate.startdate__c!=null && edate.enddate__c==null&&location!=''&&category==''){Date s2=edate.startdate__c;//Date s3=edate.enddate__c;String s4=location+'%';for(event e:[select id,whoid,startdate__c,enddate__c,Location,Category__C from Event where startdate__c >=:s2  AND location like:s4]) { elist.add(e);  }}else if(edate.startdate__c==null && edate.enddate__c!=null&&location!=''&&category==''){//Date s2=edate.startdate__c;Date s3=edate.enddate__c;String s4=location+'%';for(event e:[select id,whoid,startdate__c,enddate__c,Location,Category__C from Event where  enddate__c<=:s3 AND location like:s4]) { elist.add(e);  }}


else if(edate.startdate__c!=null && edate.enddate__c!=null&&location==''&&category!=''){Date s2=edate.startdate__c;Date s3=edate.enddate__c;
String s4=category+'%';for(event e:[select id,whoid,startdate__c,enddate__c,Location,Category__C from Event where startdate__c >=:s2 AND enddate__c<=:s3 AND category__c like:s4]) { elist.add(e);  }}else if(edate.startdate__c!=null && edate.enddate__c==null&&location==''&&category!=''){Date s2=edate.startdate__c;//Date s3=edate.enddate__c;
String s4=category+'%';for(event e:[select id,whoid,startdate__c,enddate__c,Location,Category__C from Event where startdate__c >=:s2  AND category__c like:s4]) { elist.add(e);  }}else if(edate.startdate__c==null && edate.enddate__c!=null&&location==''&&category!=''){//Date s2=edate.startdate__c;Date s3=edate.enddate__c;
String s4=category+'%';for(event e:[select id,whoid,startdate__c,enddate__c,Location,Category__C from Event where  enddate__c<=:s3 AND category__c like:s4]) { elist.add(e);  }}



elseif(edate.startdate__c!=null &&edate.enddate__c!=null&&location!=''&&category!=''){Date s2=edate.startdate__c;Date s3=edate.enddate__c;
String s4=category+'%';String s5=location+'%';for(event e:[select id,whoid,startdate__c,enddate__c,Location,Category__C from Event where startdate__c >=:s2 AND enddate__c<=:s3 AND category__c like:s4 AND location like:s5]) { elist.add(e);  }}
elseif(edate.startdate__c!=null &&edate.enddate__c==null&&location!=''&&category!=''){Date s2=edate.startdate__c;//Date s3=edate.enddate__c;
String s4=category+'%';String s5=location+'%';for(event e:[select id,whoid,startdate__c,enddate__c,Location,Category__C from Event where startdate__c >=:s2  AND category__c like:s4 AND location like:s5]) { elist.add(e);  }}

elseif(edate.startdate__c==null &&edate.enddate__c!=null&&location!=''&&category!=''){//Date s2=edate.startdate__c;Date s3=edate.enddate__c;
String s4=category+'%';String s5=location+'%';for(event e:[select id,whoid,startdate__c,enddate__c,Location,Category__C from Event where  enddate__c<=:s3 AND category__c like:s4 AND location like:s5]) { elist.add(e);  }}
}public list<event> getevents(){cat=true;return elist;}public event getdates(){event e=new event();return e;}}

 

Thanks in advance.

anu...

  • September 07, 2011
  • Like
  • 0

Hi all,

      i try to place the <apex:inputfield value="{!edate.startdate__c}"/> in sites. This field appears in vf page. but not visible in public site.How to enable this.Any one can u plase help me .

 

Thanks in advance

anu

  • September 06, 2011
  • Like
  • 0

Hi all,

   i wrote Vf page for displying events and search functonality in vf page.it works in vf page .But this same page is placed in sites.in that site from ,to dates are not displayed.How to display these fields in ssites.

 

Controller is

 

public class eventpage{public string fromdate1{set;get;}public string location{set;get;}public string category{set;get;}public boolean cat{set;get;}event edate=new event();
public void setedate(event ed){edate=ed;
}public event getedate(){return edate;}public list<Event> elist=new list<Event>();
public void findevents(){if(location!=''&& category==''&& edate.StartDateTime==null && edate.EndDateTime==null){string s=location+'%';for(event e:[select id,whoid,StartDateTime,EndDateTime,Location,Category__C from Event where location like:s]) { elist.add(e); system.debug('+++++++'+elist); }}else if(category!=''&&location==''&& edate.StartDateTime==null && edate.EndDateTime==null){string s1=category+'%';for(event e:[select id,whoid,StartDateTime,EndDateTime,Location,Category__C from Event where category__C like:s1]) { elist.add(e);  }}else if(location!=''&&category!=''&& edate.StartDateTime==null && edate.EndDateTime==null){string s=location+'%';string s1=category+'%';for(event e:[select id,whoid,StartDateTime,EndDateTime,Location,Category__C from Event where category__C like:s1 and Location like:s]) { elist.add(e);  }}else if(location==''&&category=='' && edate.StartDateTime!=null && edate.EndDateTime!=null  ){DateTime s2=edate.StartDateTime;DateTime s3=edate.EndDateTime;
for(event e:[select id,whoid,StartDateTime,EndDateTime,Location,Category__C from Event where StartDateTime >=:s2 AND EndDateTime<=:s3]) { elist.add(e); System.debug('++++++++======'+elist);  }}

else if(location==''&&category=='' && edate.StartDateTime!=null && edate.EndDateTime==null  ){DateTime s2=edate.StartDateTime;
for(event e:[select id,whoid,StartDateTime,EndDateTime,Location,Category__C from Event where StartDateTime >=:s2 ]) { elist.add(e); System.debug('++++++++======'+elist);  }}
else if(location==''&&category=='' && edate.StartDateTime==null && edate.EndDateTime!=null  ){
DateTime s3=edate.EndDateTime;
for(event e:[select id,whoid,StartDateTime,EndDateTime,Location,Category__C from Event where EndDateTime <=:s3 ]) { elist.add(e); System.debug('++++++++======'+elist);  }}

else if(edate.StartDateTime!=null && edate.EndDateTime!=null&&location!=''&&category==''){DateTime s2=edate.StartDateTime;DateTime s3=edate.EndDateTime;String s4=location+'%';for(event e:[select id,whoid,StartDateTime,EndDateTime,Location,Category__C from Event where StartDateTime >=:s2 AND EndDateTime<=:s3 AND location like:s4]) { elist.add(e);  }}else if(edate.StartDateTime!=null && edate.EndDateTime==null&&location!=''&&category==''){DateTime s2=edate.StartDateTime;//DateTime s3=edate.EndDateTime;String s4=location+'%';for(event e:[select id,whoid,StartDateTime,EndDateTime,Location,Category__C from Event where StartDateTime >=:s2  AND location like:s4]) { elist.add(e);  }}else if(edate.StartDateTime==null && edate.EndDateTime!=null&&location!=''&&category==''){//DateTime s2=edate.StartDateTime;DateTime s3=edate.EndDateTime;String s4=location+'%';for(event e:[select id,whoid,StartDateTime,EndDateTime,Location,Category__C from Event where  EndDateTime<=:s3 AND location like:s4]) { elist.add(e);  }}


else if(edate.StartDateTime!=null && edate.EndDateTime!=null&&location==''&&category!=''){DateTime s2=edate.StartDateTime;DateTime s3=edate.EndDateTime;
String s4=category+'%';for(event e:[select id,whoid,StartDateTime,EndDateTime,Location,Category__C from Event where StartDateTime >=:s2 AND EndDateTime<=:s3 AND category__c like:s4]) { elist.add(e);  }}else if(edate.StartDateTime!=null && edate.EndDateTime==null&&location==''&&category!=''){DateTime s2=edate.StartDateTime;//DateTime s3=edate.EndDateTime;
String s4=category+'%';for(event e:[select id,whoid,StartDateTime,EndDateTime,Location,Category__C from Event where StartDateTime >=:s2  AND category__c like:s4]) { elist.add(e);  }}else if(edate.StartDateTime==null && edate.EndDateTime!=null&&location==''&&category!=''){//DateTime s2=edate.StartDateTime;DateTime s3=edate.EndDateTime;
String s4=category+'%';for(event e:[select id,whoid,StartDateTime,EndDateTime,Location,Category__C from Event where  EndDateTime<=:s3 AND category__c like:s4]) { elist.add(e);  }}



elseif(edate.StartDateTime!=null &&edate.EndDateTime!=null&&location!=''&&category!=''){DateTime s2=edate.StartDateTime;DateTime s3=edate.EndDateTime;
String s4=category+'%';String s5=location+'%';for(event e:[select id,whoid,StartDateTime,EndDateTime,Location,Category__C from Event where StartDateTime >=:s2 AND EndDateTime<=:s3 AND category__c like:s4 AND location like:s5]) { elist.add(e);  }}
elseif(edate.StartDateTime!=null &&edate.EndDateTime==null&&location!=''&&category!=''){DateTime s2=edate.StartDateTime;//DateTime s3=edate.EndDateTime;
String s4=category+'%';String s5=location+'%';for(event e:[select id,whoid,StartDateTime,EndDateTime,Location,Category__C from Event where StartDateTime >=:s2  AND category__c like:s4 AND location like:s5]) { elist.add(e);  }}

elseif(edate.StartDateTime==null &&edate.EndDateTime!=null&&location!=''&&category!=''){//DateTime s2=edate.StartDateTime;DateTime s3=edate.EndDateTime;
String s4=category+'%';String s5=location+'%';for(event e:[select id,whoid,StartDateTime,EndDateTime,Location,Category__C from Event where  EndDateTime<=:s3 AND category__c like:s4 AND location like:s5]) { elist.add(e);  }}}public list<event> getevents(){cat=true;return elist;}}

 

page is:

 

<apex:page Controller="eventpage"  sidebar="false">  <apex:form ><apex:pageBlock title="Search for an event">

Location:<apex:inputText value="{!location}"/><br/>Category:<apex:inputText value="{!Category}"/><br/><br/><b>Daterange:</b><br/><br/>From:<apex:inputField value="{!edate.StartDateTime}"/><br/>To: <apex:inputField value="{!edate.EndDateTime}"/><br/><br/>
<apex:commandButton value="Find Events" action="{!findevents}"/><apex:outputPanel rendered="{!cat}">  <apex:pageBlock >  <apex:pageBlockTable value="{!events}" var="acc">  <apex:column headerValue="Event name" value="{!acc.Whoid}"/>  <apex:column headerValue="Location" value="{!acc.Location}"/>  <apex:column headerValue="FromDate" value="{!acc.StartDateTime}"/>  <apex:column headerValue="ToDate" value="{!acc.EndDateTime}"/>  <apex:column headerValue="Category" value="{!acc.Category__c}"/></apex:pageBlockTable></apex:pageBlock>  </apex:outputPanel>      </apex:pageBlock>     </apex:form>     </apex:page>

 

Any one can u help me.

 

thanks in advance

anu

  • September 06, 2011
  • Like
  • 0

Hi all,

     i want to write search funtionality for Event for object in vf page based on location, date range.How to write this functionality. any one can u please send me the sample code.

 

Thanks in advance.

anu

  • September 06, 2011
  • Like
  • 0

Hi all ,

     i wrote the following class for displaying list of objects in salsforce.

 

public class objectList{public string pname{set;get;}public string pvalues{set;get;}public String val {get;set;}public List<SelectOption> getName()  {  List<Schema.SObjectType> gd = Schema.getGlobalDescribe().Values();      List<SelectOption> options = new List<SelectOption>();    for(Schema.SObjectType f : gd)    {    options.add(new SelectOption(f.getDescribe().getLabel(),f.getDescribe().getLabel()));    }   return options;   }
}

 

<apex:page controller="objectList" sidebar="false" >  <apex:form >    <apex:SelectList value="{!val}" size="1">     <apex:selectOptions value="{!Name}"></apex:selectOptions>             </apex:SelectList><br/><br/><br/>         </apex:form></apex:page>

 

in this i want when i select one object. suppose that object contains record types. that record types are also displayed in picklist form under that object.How to add this extended functionality.any one can u please help me and send me the extended code.

 

thanks in advance.

 

anu

  • August 29, 2011
  • Like
  • 0

Hi all,

1.      Actually i displayed all the objects in vf page in picklistform.

 

 

 

public class objectList{public string pname{set;get;}public string pvalues{set;get;}public String val {get;set;}public List<SelectOption> getName()  {  List<Schema.SObjectType> gd = Schema.getGlobalDescribe().Values();      List<SelectOption> options = new List<SelectOption>();    for(Schema.SObjectType f : gd)    {    options.add(new SelectOption(f.getDescribe().getLabel(),f.getDescribe().getLabel()));    }   return options;   }
}

 

 

 

<apex:page controller="objectList" sidebar="false" >  <apex:form >    <apex:SelectList value="{!val}" size="1">     <apex:selectOptions value="{!Name}"></apex:selectOptions>     <apex:actionSupport event="onchange"/>     </apex:SelectList><br/><br/><br/>    </apex:form></apex:page>

 

 

 

 

 2.    suppose if some objects contains record types then i want to display all the record types of that object under the selected object. any one can u help me.please send me the extended functionality.

 

Thanks in advance.

anu

  • August 29, 2011
  • Like
  • 0

Hi All,

    I am new to webservices.i want to interact rpc based wsdl from salesforce.any can u please help me.if possible send me the sample code.

 

thanks in advance.

anu

  • September 08, 2011
  • Like
  • 0

Hi all,

      i try to place the <apex:inputfield value="{!edate.startdate__c}"/> in sites. This field appears in vf page. but not visible in public site.How to enable this.Any one can u plase help me .

 

Thanks in advance

anu

  • September 06, 2011
  • Like
  • 0

Hi all,

     I want to create the picklist field under the particular object  dynamically.is it possible?

if possible any one can u please give me the sample code.

 

thanks in advance.

anu

  • August 29, 2011
  • Like
  • 0

Hi all,

     i create the vf page for displaying all objects in picklist form.next i want to select one object and palce two fields like name, value.(name is the picklistfield name and values are the picklist  value created under the selected object).any one can u please help me.

 

thanks in advance.

anu

  • August 29, 2011
  • Like
  • 0

Hi all,

     i have a list accounts in vf page.(10 accounts)presently i am clicking on 5th record. how to get the 4th record id and 6th record id from controller.any method is there like previous and next based on the particular record. any one can u plz send me the code

 

 

thanks in advance

anu......

  • August 25, 2011
  • Like
  • 0

Hi all,

      i need to display list of accounts when we click on particular account it displays detailed page with prev and next buttons. (suppose 10 accounts are there. presently i m in 5 th record detail page. when we click on prev it displays 4th account detail page.when we click on next it displays 6th record detail page.any one can u please send me the sample code.

 thanks in advance.

anu......

  • August 25, 2011
  • Like
  • 0

Hi all  ,

      i have a custom vf page button.for this i wrote controller and vf page like this

 

public class accnext{public id idd{set;get;}public boolean error{set;get;}pagereference p;public accnext(ApexPages.StandardController controller) {
}public pagereference next(){
id aid=apexpages.currentPage().getParameters().get('id');
account[] acc=[select id,name,parentid from account where parentid=:aid];system.debug(acc[0].id);system.debug('***'+aid);system.debug(acc.size());idd=acc[0].id;system.debug(idd);if(acc.size()==0){error=true;}else{error=false;pagereference p1=new pagereference('/'+idd);return p1;}return null;}}

 

 

 

page

 

<apex:page standardController="account" sidebar="false" extensions="accnext" action="{!next}" >  <apex:pageMessages />  <apex:detail relatedlist="true"/>  <apex:outputpanel rendered="{!error}">  <apex:outputText >  child record not found:</apex:outputText> </apex:outputpanel></apex:page>

 

its not working showing an error like the listoutofbounds exception. any one please can u help me ..

 

thanks in advance.....

anu.....

  • August 24, 2011
  • Like
  • 0

Hi All,

    I have a text field allowing values in MM/YYYY format only and this date should be greater than today.How to write validation rule for that. can u please any one help me .give me the sample code.

 

Thanks in advance

anu

  • August 12, 2011
  • Like
  • 0

Hi all,

      I need to integrate salesforce with Quick books through APIs..can u give me the sample code and help me. its urgent.

 

Thanks in advance

anu 

  • August 08, 2011
  • Like
  • 0

Hi all,

   i need to write custom error message for unique field not allowing duplicates in vf page. can u give me the sample code.

 

Thanks in advance

anu

  • August 08, 2011
  • Like
  • 0