• aadit_13
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 4
    Replies

Hi,

 

I am calling a controller function using apex:commandlink

 

<apex:commandLink action="{!Next}" rendered="true" reRender="CustomList">{!showNext}</apex:commandLink>

 

When using Firefox browser function call is working properly, but with IE control again goes to <init> and next() function is not called.

 

Also, the viewstate is not maintained when using IE. Crippled around this for many days,  can somebody please advice.

 

Thank in advance.

 

Aditya

 

Hi,

 

I want to set the rows property of apex.pageBlockTable using Javascript.

 

Please advice how to access properties of component in Javascript.

 

Thanks in advance.

Aditya

Hi I am getting the error Unknown property AccountStandardController.

 

<apex:page standardController="Account" extensions="CampaignHistory_account">
<style>
.fewerMore { display: none;}
</style>
<apex:form >
 <apex:pageMessages />
 <apex:detail relatedList="true"></apex:detail>
<apex:pageblock id="CustomList" title="Related Campaign History"  >
   <apex:pageBlockTable value="{!cntct}" var="c" rendered="{!NOT(ISNULL(cntct))}">
        <apex:column value="{!c.FirstName}"/>
   </apex:pageBlockTable>
   <apex:outputLabel value="No records to display" rendered="{!(ISNULL(cntct))}" styleClass="noRowsHeader"></apex:outputLabel>
 </apex:pageblock>
</apex:form>
</apex:page>

 

public class CampaignHistory_account {
    private List<Contact> cntct;
    private Account accnt;
    public CampaignHistory_account(ApexPages.StandardController controller) {
        this.accnt= (Account)controller.getRecord();
    }
    public List<Contact> getCampaignHistory()
    {
        Contact con = [Select id, Account.id FROM Contact where Account.id = :accnt.id];
        if (con.Account == null)
         return null;
        cntct = [Select Contact.FirstName, (Select CampaignMember.Status from Contact.CampaignMembers where CampaignMember.ContactId = :con.id) From Contact Where Contact.id= :con.id];
        return cntct;
    }
}

 

 

Hi,

 

I am calling a controller function using apex:commandlink

 

<apex:commandLink action="{!Next}" rendered="true" reRender="CustomList">{!showNext}</apex:commandLink>

 

When using Firefox browser function call is working properly, but with IE control again goes to <init> and next() function is not called.

 

Also, the viewstate is not maintained when using IE. Crippled around this for many days,  can somebody please advice.

 

Thank in advance.

 

Aditya

 

Hi,

 

I want to set the rows property of apex.pageBlockTable using Javascript.

 

Please advice how to access properties of component in Javascript.

 

Thanks in advance.

Aditya

Hi I am getting the error Unknown property AccountStandardController.

 

<apex:page standardController="Account" extensions="CampaignHistory_account">
<style>
.fewerMore { display: none;}
</style>
<apex:form >
 <apex:pageMessages />
 <apex:detail relatedList="true"></apex:detail>
<apex:pageblock id="CustomList" title="Related Campaign History"  >
   <apex:pageBlockTable value="{!cntct}" var="c" rendered="{!NOT(ISNULL(cntct))}">
        <apex:column value="{!c.FirstName}"/>
   </apex:pageBlockTable>
   <apex:outputLabel value="No records to display" rendered="{!(ISNULL(cntct))}" styleClass="noRowsHeader"></apex:outputLabel>
 </apex:pageblock>
</apex:form>
</apex:page>

 

public class CampaignHistory_account {
    private List<Contact> cntct;
    private Account accnt;
    public CampaignHistory_account(ApexPages.StandardController controller) {
        this.accnt= (Account)controller.getRecord();
    }
    public List<Contact> getCampaignHistory()
    {
        Contact con = [Select id, Account.id FROM Contact where Account.id = :accnt.id];
        if (con.Account == null)
         return null;
        cntct = [Select Contact.FirstName, (Select CampaignMember.Status from Contact.CampaignMembers where CampaignMember.ContactId = :con.id) From Contact Where Contact.id= :con.id];
        return cntct;
    }
}