• arun kumar 577
  • NEWBIE
  • 30 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 12
    Replies
public class ViewDocument{   
    public  customer__c cust{get;set;}    
    public string recId{get;set;}

    public ViewDocument(ApexPages.StandardController ctrl){
        recId=ApexPages.currentPage().getParameters().get('Id');              
         cust=[SELECT id, Viewed_Status__c, Viewed_On__c FROM customer__cWHERE Id=:recId];
    }
    
    public pageReference countClicks(){
    
       pagereference pr=new pagereference('/'+cust.Id);
        return pr;
       
    }     
}

please
i need to display custom button in record detail page that too hapened in napili template.

I already added that button in salesforce class. but i did not find out that button in the detail page.

Please give me solution as soon as possible.
hi friends,

I need urgent requirement on pdf file size error code if i cross limit of 1mb.

if it is javascript or apex code pls forward urgently
Hi guys,
i have requirement like this..

for example i have two fileds in my system. one is Number of views and pdfURL.

i have added one url link to pdfURL. when i am going to click that url field i need to display number of views field is 1

if i will going to click 10 times that link value number of views field should be 10.

Please help me on this urgent.

thanks advacne
I need to write trigger on contact to update owner of contact using this conditions

I just give example:

In contact:
Account number__c=12345;

In Account :
AccounNumber= 12345;
A__c=112-bobby; 
Here A__c is text data type. 
112 is the employee number field value in user object; 
Bobby is username of 112 of employee number; 

Once trigger is applied what we have to show

Which user has 112 of employee number that user should come as contact owner. 

112 is part of A__c field value. 

In user:
Employee number =112;

Finally 
First condition is when contact. Account number=account.account number; 
Based on this we will get account
Based on that account we have A__c field. 
In this field we have employee number -user name. 
Like this
112-bobby

Please let me know if you have any queries 

Thanks
Hi guys,

I have one requirement like this. I have account that has two custom fields one is A and second one is B. now requirement is when ever any records are inserted and updated in contact then contact owner should be custom field value of A .

for example:
In account object:
account number=12345,
A__c=bobby;
once applied the trigger we need show like this
contact. ownerId=bobby;
when accountId!=null && contact.accountNumber__c==contact.account.accountNumber;

this is what i am expected from you guys.. Please help me..

Thanks advance..!!
 
my requirement:

Owner id should be changed on them when child of custom object are upserted. Owner Id on these should be updated with the owner id of account to which the upserting record belongs.

Please give me the solution it is very urgent to me. I hope you people will give me solution as soon as possible.
my requirement:

Owner id should be changed on them when child of custom object are upserted. Owner Id on these should be updated with the owner id of account to which the upserting record belongs.

Please give me the solution it is very urgent to me. I hope you people will give me solution as soon as possible.
Hi guys,
i have requirement like this..

for example i have two fileds in my system. one is Number of views and pdfURL.

i have added one url link to pdfURL. when i am going to click that url field i need to display number of views field is 1

if i will going to click 10 times that link value number of views field should be 10.

Please help me on this urgent.

thanks advacne
I need to write trigger on contact to update owner of contact using this conditions

I just give example:

In contact:
Account number__c=12345;

In Account :
AccounNumber= 12345;
A__c=112-bobby; 
Here A__c is text data type. 
112 is the employee number field value in user object; 
Bobby is username of 112 of employee number; 

Once trigger is applied what we have to show

Which user has 112 of employee number that user should come as contact owner. 

112 is part of A__c field value. 

In user:
Employee number =112;

Finally 
First condition is when contact. Account number=account.account number; 
Based on this we will get account
Based on that account we have A__c field. 
In this field we have employee number -user name. 
Like this
112-bobby

Please let me know if you have any queries 

Thanks
Hi guys,

I have one requirement like this. I have account that has two custom fields one is A and second one is B. now requirement is when ever any records are inserted and updated in contact then contact owner should be custom field value of A .

for example:
In account object:
account number=12345,
A__c=bobby;
once applied the trigger we need show like this
contact. ownerId=bobby;
when accountId!=null && contact.accountNumber__c==contact.account.accountNumber;

this is what i am expected from you guys.. Please help me..

Thanks advance..!!
 
my requirement:

Owner id should be changed on them when child of custom object are upserted. Owner Id on these should be updated with the owner id of account to which the upserting record belongs.

Please give me the solution it is very urgent to me. I hope you people will give me solution as soon as possible.