• maheshep.ax379
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 5
    Replies
When I am sending a mail i am getting a this exception.

System. : Not Serializable: LIST:Messaging.Email

Class.SendMailController.getIsSignature: line 280, column 9


The getIsSignature method has no relation with mail

    public boolean getIsSignature ()
    {
        try
        {
        return this.isSignature;
        }
        catch(Exception ex)
        {
        return null;
        }
    }

I don't know why this error triggers.
can anybody help me. Thanks in advance.
    I want to know using apex class is it possible to track the bouncing of email after when i had sent.
I was able to sent mail using the method
Messaging.sendEmail(new Messaging.Email[] { mail } , opt_allOrNone);
if the mail is bounced it is comming into my email id too.
Is it possible to track down bounce error in any other way. or is there any other way to do this.

Thanks in advance.
I have created a custom object. say MyObject. A field in MyObject is UserDetail which is relationship to the Contact Object. I had given the data type as lookup. now i am able to store  the id but i want to display name. how can do this??? can any one give me a relationship SOQL.
Thanks in Advance
    Is it possible to call a look up window on a command button or command link click.
    Can that be a visual force page created by me or atleast a standard object????

    Thanks in advance...

    Can anyone say how to disable and enable apex : commandButton or apex : commandLink in visual force directly.
    Or should i use style???
    Thanks in advance..

   
    <apex:tabPanel tabClass="activeTab" inactiveTabClass="inactiveTab">
        <apex:tab label="View Lists" name="viewTab" id="tabOne">


    I want to make a  'viewTab' disabled(not clickable). is that possible???
    thanks in advance...


Message Edited by maheshep on 07-23-2008 06:20 AM

Message Edited by maheshep on 07-23-2008 06:20 AM
<script>
    function chkDeleteFn(objCbMaster)
    {
               alert(document.getElementById(objCbMaster).checked);
    }
</script>
<apex:pageBlockTable value="{!contacts}" var="contact"   styleClass="tableClass">
    <apex:column>
        <apex:facet name="header">
            <apex:inputCheckbox id="idMasterCheck" />
        </apex:facet>
        <apex:inputCheckbox id="idCheck" value="{!contact.selectContact__c}"     onclick="chkDeleteFn('{!$Component.idMasterCheck}');"/>
    </apex:column>
</apex:pageBlockTable>


The javascript only triggers only for the first row of the table generated.
can anyone help me??? thanks in advance...
i want to access view my contacts from the standard object contacts.
is there any soql qurey to do this???

thanks in advance.
Hi,
      I am trying to implement some select queries in Visualforce page. I am trying implement search funtionality using two or more fields. I want to search by name or city (and also with both). But I am unable to get the result if one of the fields is blank.
searchTest page has the account name and city as the input fields.
 
And the searchtest2 page has the display in a data table.
 
The code is :
 
public class accountController {
   
   private String nameString;
   private String cityString;
   public void setNameString(String val1) {
    nameString = val1!=NULL?val1:NULL;
    }
    public String getNameString() {
    return nameString;
    }
    public void setCityString(String val2) {
    cityString = val2 != NULL ?val2:NULL;
    }
    public String getCityString() {
    return cityString;
    }
   public List<Account> getAccounts() {
    if ( nameString!=NULL&&cityString!=NULL )
    return [SELECT name,BillingStreet,BillingCity,BillingState,BillingPostalcode,Phone FROM Account WHERE Account.Name LIKE :nameString AND Account.BillingCity LIKE :cityString ORDER BY LastModifiedDate LIMIT 120];
  
    else if ( nameString == NULL  )
    return [SELECT name,BillingCity FROM Account WHERE Account.BillingCity LIKE :cityString ORDER BY LastModifiedDate LIMIT 120];
  
    else if ( nameString != NULL&&cityString == NULL )
    return [SELECT name,BillingCity FROM Account WHERE Account.Name LIKE :nameString ORDER BY LastModifiedDate LIMIT 120];
   
    else
    return null;
    
       }
    public PageReference searchAccount() {
       
        return Page.searchTest2;
 
 
 
 
Please help. Thank you
  • July 23, 2008
  • Like
  • 0
I create a page with a custom controller where call some standard Depedant picklist . I try in the following code  onchange="OliFrequency" :
<apex:inputField id="OliRevenue_Type" onchange="OliFrequency" value="{!OpportunityLineItem.Revenue_Type__c}"/>

<apex:inputField id="OliFrequency" value="{!OpportunityLineItem.Frequency__c}"/>

is there any simple way to have this standard behaviour working . 
 
 
  • July 21, 2008
  • Like
  • 0
I can't get the selected value for a selectList back in my controller after the form is submitted. Here is the page code:
 
Code:
      <apex:selectList value="{!selectedId}" multiselect="false" size="10">
        <apex:selectOptions value="{!mySelectOptions}"/>
      </apex:selectList>

I have the get/set methods for my selectedId. Is there some trick involved with getting this value passed to the controller? It's really frustrating trying to get the most straightforward things working in this system...
  • July 21, 2008
  • Like
  • 0
I'm having trouble setting the selectedTab attribute of a tabPanel dynamically.  It works fine if I set selectedTab to a string in the visualforce page, but if I try and use something set by the controller it doesn't work.  Am I missing something obvious or is there an issue with the tabPanel tag?  

Controller:

Code:
public class testTabController {
 String tabInFocus = System.currentPageReference().getParameters().get('tab');
 public String getTabInFocus() {
  return tabInFocus;
 }
 public void setTabInFocus( String s ) {
  this.tabInFocus = s;
 }
}

 Page:
Code:
<apex:page controller="testTabController" sidebar="false" showheader="true">

 <p>tabInFocus: &lt;{!TabInFocus}&gt;</p>
 <apex:tabPanel switchType="client" selectedTab="{!TabInFocus}" id="testTabs">
  
  <apex:tab label="Label 1" name="oneTab" id="tab1" >
   <p>This is number one</p>
  </apex:tab>
  
  <apex:tab label="Label 2" name="twoTab" id="tab2" >
   <p>This is number two</p>
  </apex:tab>
  
  <apex:tab label="Label 3" name="threeTab" id="tab3" >
   <p>This is number three</p>
  </apex:tab>
  
 </apex:tabPanel>

</apex:page>

URL:
Code:
/apex/test_tab?tab=twoTab

 


 
The tab is selected properly if I use a static string, e.g.:

Code:
<apex:tabPanel switchType="client" selectedTab="twoTab" id="testTabs">

 
Any ideas?