• dave.pvn
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 0
    Questions
  • 1
    Replies
I am trying to call a Visualforce page from a custom list button.  I have done this successfully from a detail page button by creating a page using a standard controller for the detail object, selecting Visualforce page as the content source and then picking the page I wanted from the pull down list for content.
 
However, I can't seem to get this to work for a list button.  I pick the list button option on the custom button or link page, and pick visualforce page for the content source, but I don't get my visualforce page to appear in the content pull down list.
 
Is there something I'm doing wrong?
 
As an adjunct question, should I be using the standard controller for the detail object being displayed at the top of the page or for the objects being referenced in the list (in the case I'm working on now, the objects in the list are the same object as the detail object and reference back to the detail object)? 
 
I understand that one of the benefits of using a visualforce page in this manner is that the id for the detail object is automatically passed to the visualforce page, thereby making data display easier on the detail page.  If a visualforce page can be invoked from a list button, what object id is passed?  That of the detail item at the top of the page?
 
Thanks in advance for your help,
Jeff
 
  • January 16, 2009
  • Like
  • 0

Hi,

 

I was using following statement to include my stylesheet in visualforce page.

<apex:stylesheet value="{!$Resource.MyStyle}/MyStyleSheet.css" />

 

when the page is loaded it will show the proper styles in my css, but after performing some ajax action event, some classes in my css are overriding by common.css style classes.

 

e.g I am using some btnStyle class for command button, after performing some action, image changes on button.

when I inspect element for that button class will be shown as btn btnStyle class. btn class is class from common.css in salesforce.

  

I have solved this problem using below line
<link rel="Stylesheet" type="text/css" href="{!$Resource.MyStyle}/MyStyleSheet.css" />

 

So actually I want to understand which is the standard way to include stylesheet in visualforce page.

Thanks