You need to sign in to do that
Don't have an account?
InternalServerError
Display Asset name from case standard controller.
There is a standard field Asset (a lookup) in the case object. I am trying to display the name of the asset on the VF page using standard controller. This works for any other field but not for the asset name
{!case.AssetId} > returns ID
{!case.Asset.Name} > returns nothing
What am I missing?
Thanks.
Hi
Did you try the same once, when i tried, i get the Asset name only when I show it in the screen as an output field. I again verified it with Account, it displayed the name and not the ID.
In the below, both Account and Asset Id displayed the names respectively with the standard controller as CASE.
All Answers
Hi
Did you try the same once, when i tried, i get the Asset name only when I show it in the screen as an output field. I again verified it with Account, it displayed the name and not the ID.
In the below, both Account and Asset Id displayed the names respectively with the standard controller as CASE.
I forgot to mention that this is a customer portal user (high volume customer portal)
Thanks Aravind. The problem was that the page was calling the field just like this {!Case.AssetId}, when I put that inside the outputfield it worked.