• Prasad Kairamkonda
  • 0 Points
  • Member since 2015

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 5
I'm trying to create an inline Visualforce page to substitute for the standard 'Name' related list on Shared Activities. The problem I am trying to solve is getting more information that just the related name and type (Lead or Contact) to display in the name related list on the task detail page.

I created a basic page using the code below, but it seems as though Task.WhoId only looks at the Primary Contact and not other related contacts.

Has anyone used TaskWhoIds to return a list of ALL related contacts/leads for shared activities ? And am I able to use TaskWhoIds to get the accountIds of other related contacts ? For Example <<Task.TaskWhoIds.AccountId>>   

<apex:page standardController="Task" >
<apex:pageBlock title="Related Contacts">
<apex:pageBlockTable value="{!Task.Whoid}" var="Whoid">
<apex:column value="{!Task.whoid}"/>
<apex:column value="{!Task.Accountid}"/>
</apex:pageBlockTable> </apex:pageBlock>

I wish to include :-
<script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>
extenal library for Google maps in a lightning component.

It doesnt allow me to do so , it gives me the following error:-
Content Security Policy: The page's settings blocked the loading of a resource at http://maps.google.com/maps/api/js?sensor=false ("script-src https://ap1.lightning.force.com https://ssl.gstatic.com chrome-extension: 'unsafe-eval' 'unsafe-inline'").

I tried loading this script asynchronously as well , by creating dynamic <script> tag and loading the src. Still doesnt work.

Kindly let me know how I can get Google Maps to work in a Lightning Component.

Thanks in advance

As we know  salesforce removing Javascript support from side bar  home component after summer 15,Also salesforce added visualforce in home componenet,Since Visualforce page in iframe.Visuaforce in home component is not able to interact with salesforce standard UI.

Any Idea or any research or javascript , we should control standard salesforce UI through home component.

      I have create one custom list button in  my custom object (A)  as VF page.. This object is related to master detail look up to another custom object (B)....
      That is  A is child B is Parent... 
 When I click my custom list button  from related list of Parent object (B) I have to access parent object fields...
How is it possible...
I try following code for passing parent id to VF page in onclick  of java script for calling this VF page.. It doesnt work properly...
That is parent id goes blank to the url
window.location.href = '/apex/myvfpagename?id={!A__c.B__c}';
Any one give some sample code for accessing parent fields or passing parent id to VF page....