Skip to main content
Di Zou's user avatar
Di Zou's user avatar
Di Zou's user avatar
Di Zou
  • Member for 12 years, 4 months
  • Last seen more than 8 years ago
  • Baltimore, MD
Loading…
accepted
Loading…
comment
How do I get a custom object to display a relative URL?
Would I be able to access those fields from my Rich Text Field? if so, how?
Loading…
awarded
comment
How do I access a Map in my Visualforce page?
That converts the ID in the controller. Is there a way to convert it in the VF page on Component?
Loading…
awarded
comment
How do I access a Map in my Visualforce page?
So Salesforce is trying to access the Map now. However, I am getting a Map key not found in map error. I printed out the key and the values in the Map, and the KnowledgeArticleViewStat.ParentId does not match up with the KnowledgeArticle.Id. For example, I will have a KnowledgeArticleViewStat.ParentId that is a key in the Map that is kA1W00000004CMJKA2. Then my KnowledgeArticle.Id that I am trying to use as a key to access the Map is kA1W00000004CMJ. The last 3 letters are cut off for all the KnowledgeArticle.Id. Any ideas about this?
comment
How do I access a Map in my Visualforce page?
So I changed my Apex Class to return map <Integer,String> and I changed the component and Visualforce page like you wrote. "{!results}[key]" just displays the dictionary and then literally [key]. It doesn't actually try find the value of that key. So when I load my VF page, I get this: {...}[key]
comment
How do I access a Map in my Visualforce page?
@ca_peterson I added some code in the edits.
comment
How do I access a Map in my Visualforce page?
I made some edits, can you take a look? Thanks!
revised
How do I access a Map in my Visualforce page?
added 1559 characters in body
Loading…
awarded
comment
How do I access a Map in my Visualforce page?
@joshbirk I made the edit in my original post. VF: 24.0, Controller: 25.0
revised
How do I access a Map in my Visualforce page?
added 72 characters in body
Loading…
asked
Loading…