• raj jordan
  • NEWBIE
  • 40 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 13
    Questions
  • 20
    Replies
hi all, i have one custom field called "Response time". Whenever the status changes from new to progress the custom field should calculate that how much time it has taken between changing status from new to progress in days:hours:min:sec. Could you please help me through this.

Thanks in Advance,
Jordan
hi all,

i want to create a custom metadata object then i want to add fields to it
the fields which are added to that object should become required 
can you please help me
Now i want these trigger code in apex class and i want to call that apex class in trigger 
below is my code
trigger insertobject2 on Account (after insert, after update) {
 
Set<Id> Ids= new Set<Id>();
          for (Account  acc : Trigger.new) {
          Ids.add(acc.Id);        
          }
List<Account> accList = new List<Account>();
accList=[Select Id,name,SynctoPricing__c,Relatedpricing__c From Account where Id in :Ids];
          for(Account temp : accList )
          {
        if(temp.SynctoPricing__c==true){
	
         Pricing__c pri = new Pricing__c();
   
			pri.RelatedAccount__c = temp.Relatedpricing__c	;
			insert pri;
        }   
          } }

can anyone please help me through this
Thanaks in Advance
Hi all,
Can please help me to auto unsync quote from opportunity without using future method?

Thanks in Advance 
System.LimitException: Apex CPU time limit exceeded
i want to create description custom fields on account and contact object
now i want to create a trigger on account object such that when i insert a record on account object contact shoul also be created with with the custom field updated same as account
please help me to achieve this 

 
 I have to create a vf page with account object as a tab and when we click on account tab its record should display in form of custom links and when we click on record link the fields which we want to populate should be displayed

please help me to achieve this

Thanks in Advance
Hi am trying to display account and contact object as radio buttons 
when i click on account its record should display and
when i click on contact its record should display 
but am not getting the required output 
Below is my code 
where it is only displaying contact details 
please tell me where am going wrong
 
<apex:page controller="radio16">
    <apex:form >
        <apex:pageblock >
            <apex:selectRadio value="{!selectedRadio}">
                <apex:selectOption itemLabel="Account" itemValue="Accounts"/>
                <apex:selectOption itemLabel="Contact" itemValue="Contacts"/>
                <apex:actionSupport event="onclick" action="{!getDetails}" reRender="records"/>
            </apex:selectRadio>
            <apex:outputPanel id="records">
                <apex:pageblockSection Title="Records">
                    <apex:PageBlockTable value="{!acc}" var="a">
                        <apex:Column value="{!a.Name}"/>
                       
                    </apex:PageBlockTable>
                     <apex:PageBlockTable value="{!con}" var="c">
                        <apex:Column value="{!c.lastname}"/>
                       
                    </apex:PageBlockTable>
                </apex:pageblockSection>
            </apex:outputPanel>
        </apex:pageblock>
    </apex:form>
</apex:page>
 
public class radio16 {

    public String selectedRadio { get; set; }


    public List<Account> acc{get;set;}
    public List<Contact> con{get;set;}
   

   
    
    public PageReference getDetails(){
        acc = new  List<Account>();
        if(selectedRadio== 'Account'){
            acc = [SELECT name FROM Account limit 5];
        }
        else{
        con =new List<Contact>();
            con = [SELECT lastname FROM Contact limit 5];
        }
        return null;   
    }
}