• John T 4
  • 0 Points
  • Member since 2016

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
  • 1
I have a requirement to grant access on Report/Dashboard folders to Public Groups using apex. Is this possible in Salesforce?
I have a requirement to display records from 2 objects (Account & Contact) in a single pageblocktable in a VF page, Account records followed by Contact records.
I know that we can achieve this using a wrapper class, but all the examples I came across talked about displaying checkbox or displaying columns vertically(not horizontally) from different objects in a pageblocktable.

Would appriciate any pointers/code samples. Thanks!!

User-added image

Hello, I tried for a long time to figure out how to update/refresh a parent detail record page after an embedded VF page was updated.  Apex associated with the embedded VF page can change field values on the parent detail record but it was virtually impossible to get the detail page to refresh so the user could see the new values without refreshing the entire browser window.

Dr. Paul Coleman recently blogged about the very solution I needed.  Not only does it refresh the parent but it also dynamically resizes the embedded VF page depending on how many records are being displayed on the VF page.  Very Cool! See it here: http://salesforcehacks.blogspot.com/2014/12/resizing-embedded-vf.html

I won't supply the entire code here but rather focus on my current problem.  The code works well when the user is in the standard SF interface.  But we have some users that are using the Service Console and the code doesn't work there.

The code uses Javascript to specifically address the iFrame where the embedded VF page resides.  When the page is rendered outside of the Service Console, the iFrame is named with the id of the VF Page so it's easy to getComponentByName() using the Id:

<iframe frameborder="no" height="600px" id="066800000006mxu" marginheight="0" marginwidth="0" name="066800000006mxu" scrolling="yes" title="CT_RMALineItems" width="100%"></iframe>

But when the page is rendered inside the console, the name is more complicated:

<iframe frameborder="no" height="600px" id="sc-evf-fdc3fddc-8e17-44f5-bc43-bed1a8a8ced4-066800000006mxu" marginheight="0" marginwidth="0" name="sc-evf-fdc3fddc-8e17-44f5-bc43-bed1a8a8ced4-066800000006mxu" scrolling="yes" title="CT_RMALineItems" width="100%"></iframe>

Does anyone know how this name is arrived at or how to figure it out so I can modify Dr. Coleman's code to work in the Service Console?

  • December 09, 2014
  • Like
  • 0