You need to sign in to do that
Don't have an account?

Apex:outputlink is displaying id in vf page
I am using following code of Attachment object in vf page
<td><apex:outputLink value="/{!N.OwnerId}" target="_blank">{!N.OwnerId}</apex:outputLink></td>
when displaying {!N.OwnerId} on actual page id is displayed.How can i display name instead
I can use apex:outputField but i am not able to give target="_blank" so the page is being refreshed in vf page section without being displayed in new window.Any suggestion for solving the problem?
<td><apex:outputLink value="/{!N.OwnerId}" target="_blank">{!N.OwnerId}</apex:outputLink></td>
when displaying {!N.OwnerId} on actual page id is displayed.How can i display name instead
I can use apex:outputField but i am not able to give target="_blank" so the page is being refreshed in vf page section without being displayed in new window.Any suggestion for solving the problem?
May I suggest you Please refer the below link for reference.
- https://salesforce.stackexchange.com/questions/112870/apex-outputlink
- http://www.salesforcetutorial.com/outputlink-example/
Hope it will be helpful.Please mark it as best answer if the information is informative.so that question is removed from an unanswered question and appear as a proper solution.
Thanks
Rahul Kumar
All Answers
Replace {!N.OwnerId} with {!N.OwnerId.name}
mark it as best answer if it helps you
May I suggest you Please refer the below link for reference.
- https://salesforce.stackexchange.com/questions/112870/apex-outputlink
- http://www.salesforcetutorial.com/outputlink-example/
Hope it will be helpful.Please mark it as best answer if the information is informative.so that question is removed from an unanswered question and appear as a proper solution.
Thanks
Rahul Kumar
ON the controller add owner.Name in you soql query.
For example
Let me know, If you have any questions.