Skip to main content
17 events
when toggle format what by license comment
Aug 26, 2015 at 21:32 history edited slim CC BY-SA 3.0
deleted 60 characters in body
Aug 26, 2015 at 19:29 history edited slim CC BY-SA 3.0
added rerender and id="index"
Aug 25, 2015 at 7:30 comment added Rob Rather than having multiple SOQL queries with the conditions WHERE QuestionId = : q.Id AND Id = : q.BestReplyId, add the question IDs and best reply IDs to Sets beforehand making a single query with the condition WHERE questionId IN :setOfQuestionIds AND Id IN :setOfBestReplyIds. You now have all the relevant records with a single query, and can process them with Apex. See SFDC99's series of posts for details - sfdc99.com/2014/01/20/soql-queries-inside-loops
Aug 22, 2015 at 1:28 history edited slim CC BY-SA 3.0
added 16 characters in body
Aug 22, 2015 at 1:01 history edited slim CC BY-SA 3.0
added 159 characters in body
Aug 22, 2015 at 0:54 history edited slim CC BY-SA 3.0
updated VF page
S Aug 21, 2015 at 20:43 history suggested Saroj Bera CC BY-SA 3.0
Formatted.
Aug 21, 2015 at 19:55 review Suggested edits
S Aug 21, 2015 at 20:43
Aug 21, 2015 at 19:23 comment added slim Thanks Mark. What is the alternative to this? I'm trying to get all replies related to all questions. The only way that I can think of going about it is to have a repeater inside a repeater to display the values.
Aug 21, 2015 at 19:21 history edited slim CC BY-SA 3.0
updated apex code
Aug 21, 2015 at 18:49 comment added Mark Pond Before you're done with this page, refactor the SOQL queries for bestReplyList and replies out of that for loop over questionsList. Queries in loops is a bad practice.
Aug 21, 2015 at 18:34 history edited slim CC BY-SA 3.0
updated the saveReply() function
Aug 21, 2015 at 18:26 vote accept slim
Aug 21, 2015 at 18:32
Aug 21, 2015 at 15:25 history edited slim CC BY-SA 3.0
added 6668 characters in body
Aug 21, 2015 at 15:12 history edited slim CC BY-SA 3.0
added controller code
Aug 21, 2015 at 15:03 answer added Rob timeline score: 1
Aug 21, 2015 at 14:54 history asked slim CC BY-SA 3.0