Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Visualforce Development
- :
- URLFOR failing - trying to create a link to list-v...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
URLFOR failing - trying to create a link to list-view (for a custom object)
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-22-2008 07:47 PM - edited 12-23-2008 08:22 AM
What am I doing wrong? Thanks!
ERROR: Invalid parameter for function URLFOR
VF CODE: Here is the failing code: I ommitted the beginning '<' of each tag so that you can read the code:
_apexpage>
_apexoutputLink value="{!URLFOR($Action.PersonTaskMessage__c.List,
click here.
_/apexoutputLink>
_/apexpage>
NOTE: '_' takes place of '<'
VARIATIONS ATTEMPTED:
1. value="{!URLFOR($Action.PersonTaskMessage__c.List,
2. value="{!URLFOR($Action.PersonTaskMessage__c.List)
3. attempted an apex:commandlink tag within an apex:form block, too.
Message Edited by mikeafter6 on 12-23-2008 08:20 AM
Message Edited by mikeafter6 on 12-23-2008 08:22 AM
Solved! Go to Solution.
Re: URLFOR failing - trying to create a link to list-view (for a custom object)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-23-2008 10:16 AM
http://salesforcesource.blogspot.com/2008/12/urlfo
http://salesforcesource.blogspot.com/2008/12/urlfo
Re: URLFOR failing - trying to create a link to list-view (for a custom object)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-27-2009 01:48 PM
Your post is helpful and addressesd many of my questions about URLFOR syntax. (It even helped with some of my custom actions).
Unless I'm missing something, the List action isn't described in your blog. For some reason, the 'List' action isn't working for me. I'm trying to create a command link to an objects list page. Also, it would be nice to specify a list-view to display.
Is URLFOR supposed to support the List action?
Thanks.
Re: URLFOR failing - trying to create a link to list-view (for a custom object)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-10-2009 04:44 PM
Solution: To use the 'List' action (via URLFOR), use 2 parameters:
First Param: name of action (e.g. $Action.Account.List)
Second Param: provide object type using the global variable $ObjectType (e.g. $ObjectType.Account)
<apex:outputLink value="{!URLFOR($Action.AnySObject__c.List,$Object
Type.AnySObject__c)}"> Click Here </apex:outputLink>

