• arun sharma 37
  • 0 Points
  • Member since 2017

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 2



I wonder if we can we use email templates in apex class for sending emails?






  • November 27, 2013
  • Like
  • 0



I am needing help on a bit of code.  I am trying to make a call to a controller method from a apex:selectList drop down menu.  I want the code to send the value chosen in the dropdown menu (parameter) to the method on a "onchange" event.  I read a blog that showed how to make a call to an apex:actionFunction and then there forward the parameter to the controller method.  This works fine if I pas a test string, however, I have no idea on how to capture my dropdown selectionlist item into a variable and send it to the function.  If anyone could help, it would be appreciated.  Here is my code:

<apex:page tabstyle="Transportation_Services__c" controller="goGetScheduleQuery">
    <apex:form >
    <apex:actionFunction name="update" action="{!updateSchedule}" rerender="jsvalues">
            <apex:param name="phone" value="" />
    <apex:pageblock > 
    <apex:pageBlockButtons >
        <apex:commandButton value="Schedule A Pickup" action="{!schedulePickup}"/>
        <apex:commandButton value="View the Map" action="{!mapPage}"/>
        <apex:pageblocktable value="{!schedule}"  var="event" columnsWidth="75px,75px,75px,75px,75px,300px">
            <apex:column value="{!event.Pickup_Time__c}"/>
            <apex:column value="{!event.Client__c}"/>
            <apex:column value="{!event.Pickup_Location__c}"/>
            <apex:column value="{!event.Drop_off_Location__c}"/>
            <apex:column headerValue="Phone">
            <apex:selectList id="phoneChoice" value="{!event.Phone_Name__c}"  size="1" title="Phones" onchange="update('test selection')">
            <apex:selectOptions value="{!phones}" ></apex:selectOptions>
            <apex:column value="{!event.Notes_Transportation__c}"/>
            <apex:column value="{!event.Name}" rendered="no"/>
        <apex:outputPanel id="jsvalues">
            <apex:outputText value="Value one: {!valueOne}" /><br/>
            <apex:outputText value="Value two: {!valueTwo}" /><br />           



  • April 01, 2011
  • Like
  • 0