- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- 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
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:
NOTE: '_' takes place of '<'
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.
12-23-2008 10:16 AM
Check my blog for tips and tricks:
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?
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)
Type.AnySObject__c)}"> Click Here </apex:outputLink>