0

I had created a Visualforce page with an Activity History related list but it doesn't pop to a new window, after clicking log a call.

Please let me know how can I make this happen.

My issue is something related to this link

"New" button in a Related List VF page.

Here is the code below

<apex:page standardController="Account" standardstylesheets="true" sidebar="false" showheader="true">


<apex:relatedList list="ActivityHistories"/>


</apex:page>
4
  • 1
    To be fair, the button on a standard page layout doesn't do this either.
    – Mark Pond
    Nov 18, 2015 at 21:33
  • Are you using custom button for log a call? Nov 19, 2015 at 7:36
  • Would help if you post your relevant code. Nov 19, 2015 at 7:36
  • It is the standard button for "Log a Call"
    – DominicSeb
    Nov 19, 2015 at 14:43

1 Answer 1

2

As per your example

first create a VF page

<apex:page standardController="Account" standardstylesheets="true" sidebar="false" showheader="true">


<apex:relatedList list="ActivityHistories"/>


</apex:page>

Now goto setup - task - create new button (Ex: - test btn) create a list button(with any behaviour)

now open any account records edit page layout

goto Activity history related list link on icon and add the button in related list

Now open your page with same account reocrd id.

--Create a custom button on object and create a above vf page with related list

in custom button write code

window.open("/apex/myAccountCasepage?id={!Case.Id}","My page","width=550,height=170,0,status=0,");

enter image description here

8
  • I wasn't talking about adding a button. But is there a way for the related list to open up a new window ??
    – DominicSeb
    Nov 23, 2015 at 15:31
  • Yes create a vf page with above code and onlick of custom button open new window
    – Ratan Paul
    Nov 23, 2015 at 15:37
  • let me know if you need help
    – Ratan Paul
    Nov 23, 2015 at 15:38
  • How can I do it on a standard button like "log a Call"
    – DominicSeb
    Nov 24, 2015 at 18:22
  • means open a new task with type = call ?
    – Ratan Paul
    Nov 24, 2015 at 18:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.