• vfexp31.3955631467313875E12
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 1
    Replies
HI,

       I want to display the records the of 3 objects in same table in visualforce page may i know how to start this task. Any suggestions
HI,
   
          I have 2 objects Quote,Quoe-line-item i want to call the line item fields from Quote by using soql query may i know how can i call the child fields from parent object
HI,

    I have 3 radio buttons in my visaulforce page, and 2 text fields, when i click 1st radio button at that time 1st text field will be display, when i click 2nd Radio button 2nd Field will be display, when i click 3rd Radio Button again 2nd radio button will be display, i am using javascript for hide/show the text fields but it's not working can any one give me suggestions.

   JavaScript--

  <script type="text/javascript">

  function show(t)
  {
     if ( t.value == 0 )
     {
        document.getElementById("defaultcost").style.display = 'block';
        document.getElementById("differcost").style.display = 'none';
     }else{
         document.getElementById("defaultcost").style.display = 'none';
          document.getElementById("differcost").style.display = 'block';
     }
   
 
  }
 
 
 
  </script>


    <apex:selectRadio value="{!Quote__c.shipping_type__c}" onChange="show(this);">
          
            <apex:selectOption itemLabel="Use Store Settings" itemValue="0" />
         
            <apex:selectOption itemLabel="Per Item" itemValue="1" />
            <apex:selectOption itemLabel="Fixed Price Per Order" itemValue="2" />   
           </apex:selectRadio>
           <apex:inputField value="{!Quote__c.storeprice__c}" id="defaultcost" style="display:block;"/><br/>
           <apex:inputField value="{!Quote__c.price__c}" id="differcost" style="display:none;"/><br/>
         
          </apex:pageBlockSection>
HI,

        Why My Developer Console showing like this, in my developer console i am not able to see the logs, what i want to do.User-added image
HI,

        I want to sends email-template to contact, based upon Quote-item Field, Actually in Quote-item i have a field Update_del, when the field is true at that time i want to sends email template,

    Here quote-Item is child to Quote, having master-details relation ship, in Quote i have a field called Email__c i want to sends email-template to the address which mention in the Email__c field based upon Quote_item Object

  I tried Below But i am getting Error at Soql Query

   trigger emailtemplate2 on Quote_Item__c(after update)
{

List<Quote_Item__c> oList = Trigger.new;
List<Quote_Item__c> nList = trigger.old;

  if(oList[0].Updated_del__c !=nList[0].Updated_del__c) {

      Set<Id> QuoteItemIds= new Set<Id>();
 List<Quote__c>  sList = [select id,Email__c from Quote__c where Quote__r.Email__c =:nList[0].Quote__c.Id limit 1];
   // Error Occuring Point

    Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();

     if(oList[0].Quote_Item__c== 'true') {
      EmailTemplate et=[Select id from EmailTemplate where name = 'quote3' limit 1];
      mail.setTemplateId(et.id);
      mail.setToAddresses(new String[] {sList[0].email});
      mail.setTargetObjectId(sList[0].id);
      mail.setSaveAsActivity(false);
  Messaging.SendEmailResult [] r = Messaging.sendEmail(new Messaging.SingleEmailMessage[] {mail});  


 
}

}

}
HI,

       I want to sends an email to customer along with selected email template, like below page i want to implement User-added image
HI,

       I want to update the field based upon the another field, actually in opportuntiy i created a field X which is always true, while inserting the data, when i update any field in opportuntiy i want to change the field X=False, can any one suggest me how can i achieve this
i want to work trigger or workflows can any one suggest me.
HI,
   
          I have 2 objects Quote,Quoe-line-item i want to call the line item fields from Quote by using soql query may i know how can i call the child fields from parent object