• Aravinthraj techresource
  • 0 Points
  • Member since 2012

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

Hey guys,


I'm getting an Invalid foreign key relationship on Contact.CampaignMember that I can't seem to figure out.


    for(Contact contact : Trigger.new)
       if (contact.User_Testing__c = 'True' && contact.CampaignMember.CampaignID != '70170000000BdE2' ) 


On a VF page, I have a pageBlockTable.  There are times where there are more than 1000 records in the collection to be rendered.  When this occurs, the Visualforce collection limit of 1000 is hit and the page doesn't load.  I need to figure out a creative solution for getting around this.  In the end...


  1. I need all records to render on the page. If I do any pagination, it'll happen client-side after the records are loaded in the HTML.  I know the first responses to this will be about whether I really need to have all those records on the page and how there is doubt about whether I need to, but for the purposes of this forum post, please work with me here.
  2. I want to keep the look and feel of a pageBlockTable if possible.


When not using pageBlockTables, I have used a construct similar to the following to get through a collection of more than 1000 items.


<apex:repeat value="{!myCollection}" var="item" rows="1000" first="0">
<apex:repeat value="{!myCollection}" var="item" rows="1000" first="1000">
<apex:repeat value="{!myCollection}" var="item" rows="1000" first="2000">


pageBlockTable has the rows and first parameters, but if I do that, I'd be getting a new pageBlockTable everytime.


The options I can think of are:


  • Get a creative solution from the forums to actually utilize the pageBlockTable (purpose of this post)
  • Use apex:dataTable and try to use style classes to mimix the pageBlockTable look and feel. This is a nice possibility I haven't tried yet.
  • Use apex:repeat tags and make up my own HTML styling


Any help is appreciated.



  • September 13, 2010
  • Like
  • 0

Hi All,


I am new to webservices concept.i want to do sample app with webservices using java or apex

Plz tell me the requirements for the sample app and step by step process to finish the sample application.


Plz help me...


Thanks in advance,


  • August 10, 2010
  • Like
  • 0



   Please provide me the steps to integrate the .Net application in salesfore crm.

I'm attempting to add my company logo to a visual force page, which is then being rendered as a pdf, but have not been successful.  I've attempted to do so in three ways:


Image is on a website:

<apex:image url="http://www.tsysacquiring.com/graphics/logos/tsysacquiring_top_logo.gif" width="220" height="55"/>


Image has been loaded into Salesforce into documents, and is in the /alva/ folder:
<apex:image value="/alva/TSYS_logo_for_TSYS_Sales_App.jpg" width="220" height="55"/>


Image is on my C:\drive:

<apex:image value="C:\data\TSYS_Logo_for_TSYS_Sales_App.jpg" width="220" height="55"/>


All three attempts have resulted in a broken image icon being displayed.  This seems like a very straightforward thing I'm attempting, and I'd expect it to be rather simple.  Any one have a syntax example that they know works.