• pcraft
  • NEWBIE
  • 0 Points
  • Member since 2007

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

Hi all, I have a VF Page with the following code:

 

<apex:page standardController="Account" extensions="AttachmentsController">
    <apex:iframe height="200" scrolling="true" src="http://example.com/Salesforce/[USER_ID]/Attachments/Account/{!account.Id}" />
</apex:page>

I want to be able to pass the User Id where it says [USER_ID]. In my AttachmentsController I have a property called userId, but when I try to reference it with {!userId} it won't let me save saying it's not a valid property of the AccountStandardController. How can I get around this issue and pass the User Id into the URL?