• Aladdin US
  • NEWBIE
  • 20 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 26
    Questions
  • 14
    Replies
Hi,

   On account object at one field I would like to display the related List – attachment, no. of records. How would you approach it.

Thanks.
when i clinkon save record isno inserting into the respective object

public class Android
{
   public and__c p {set;get;}
 
    
    public string ConstructionCost       {set;get;}
    public boolean FireSafety        {set;get;}
    }

    public android()
    {
       p=new android__c();
    }
    
        public List<SelectOption> getItems()
    {
        List<SelectOption> options = new List<SelectOption>();
        options.add(new SelectOption('None','None'));
        options.add(new SelectOption('Commercial','Commercial'));
        options.add(new SelectOption('Residential','Residential'));
        return options;
    }

    
    public void save()
    {
           integer i=0;
        
       
        p.Construction_Cost__c=ConstructionCost;
        p.Fire_Safety__c=FireSafety;
        
        insert p;


VF:

<div>
        <apex:commandButton value="save" action="{!save}" styleclass="button"  />
    </div>

Can anyone tell me please.

Thanks.
Hi,

 I have a piclist with values A and B. when i select A, 3 radio buttons should display and when i select any of the radio button new pop up window should get displayed with related fields say apple, box, cat like that.

i completed upto display of radio buttons but dont know how to create a pop up window.

Could any one please help me out in this.

Thanks.
Hi, 

When do you go for a Workflow and when do you go for Trigger? How do you decide?

Can any one help me.

Thanks.
How do you do for account at OWD is private, if the subordinates has to access and superiors should not access
Hi,

1.What needs to be done if the OWD for account is private, and above hierarchy should see the records? And if the case is reverse, below hierarchy should see the record.

Can anyone help me in finding out this.

Thanks.
Hi,

       Could any one help me out in knowing the disadvantages of Mulesoft.

Thanks.
 
Hi,
       Developer Console is not opening for the user with profile ' Standard User '. Any solution.

Thanks.
         
Hi,

     Can anyone help me in this.

Thanks.
Hi community,

                           User-added image
how to hide apporve/reject for a user if discount is less than 500. i used  rendered="{!if($Profile.Name=='System Administrator',true,false)}" but not working

Thank you.
Hi Community,

                   How to hide Approval / Reject  link for user or submitter if discount is leaa than 499. Can anyone give solution with in detail.

Thanks.
How to auto remove custom approval history, once record get approved or rejected.
Hi,

   On account object at one field I would like to display the related List – attachment, no. of records. How would you approach it.

Thanks.
when i clinkon save record isno inserting into the respective object

public class Android
{
   public and__c p {set;get;}
 
    
    public string ConstructionCost       {set;get;}
    public boolean FireSafety        {set;get;}
    }

    public android()
    {
       p=new android__c();
    }
    
        public List<SelectOption> getItems()
    {
        List<SelectOption> options = new List<SelectOption>();
        options.add(new SelectOption('None','None'));
        options.add(new SelectOption('Commercial','Commercial'));
        options.add(new SelectOption('Residential','Residential'));
        return options;
    }

    
    public void save()
    {
           integer i=0;
        
       
        p.Construction_Cost__c=ConstructionCost;
        p.Fire_Safety__c=FireSafety;
        
        insert p;


VF:

<div>
        <apex:commandButton value="save" action="{!save}" styleclass="button"  />
    </div>

Can anyone tell me please.

Thanks.
How do you do for account at OWD is private, if the subordinates has to access and superiors should not access
Hi,

     Can anyone help me in this.

Thanks.
Hi Community,

                   How to hide Approval / Reject  link for user or submitter if discount is leaa than 499. Can anyone give solution with in detail.

Thanks.
How to auto remove custom approval history, once record get approved or rejected.
Hi,

I tried the below code but getting an error for mass email

public  class MassEmail 
{    
    public void SendEmail()
{
 List<contact>conlist=[Select id ,lastName from contact where lastName like'S%' ];
 List<Id> ids= new List<Id>();
for(Contact c:conlist)
 {
ids.add(c.id);
 }
EmailTemplate tem=[Select id,name from EmailTemplate where name = 'Sales: New Customer Email' limit 1];
Messaging.MassEmailMessage Email = new Messaging.MassEmailMessage();
Email.setTargetObjectIds(ids);
Email.setSenderDisplayName('System Admin');
Email.setTemplateId(tem.id);
Messaging.sendEmail(new Messaging.MassEmailMessage[] { Email });
system.debug(Email);
 }
    
   }


User-added image

User-added image
1. click on convert to lead button

User-added image

2. After clicking on the button directly it should navigate me to following page using standard way or jquery.

User-added image

Thank You.
I'm trying to add another recipient to an email button and can not seem to get it to work. Below is the Apex code for the current button, please let me know what I need to change to add a second recipient.

global class SendPurchaseOrderEmail {
    WebService static void sendEmail(String poId) {
        List<Messaging.SingleEmailMessage> emails = new List<Messaging.SingleEmailMessage>();
        
        String theTemplate = [SELECT Id FROM EmailTemplate WHERE DeveloperName = 'Purchase_Order_With_Items'].Id;
        User theUser = [SELECT Id FROM User WHERE Name = 'user name goes here'];

        Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
        
        mail.setSaveAsActivity(false);
        mail.setTemplateId(theTemplate);
        mail.setWhatId(poId);
        mail.setTargetObjectId(theUser.Id);

        emails.add(mail);
        
        Messaging.sendEmail(emails);      
     
      }    
}