Activity Forums Salesforce® Discussions Can anyone share "Edit link" action on Custom related list?

  • shariq

    Member
    September 13, 2018 at 10:11 pm

    Hi,

    I think you have created VF page where you are showing list on some condition via apex and clicking edit link you want to open detail page in edit mode. For that you have to create PageReference type method in which you have to pass the record Id(getter setter variable).

    try this -

    PageReference acctPage = new PageReference('/'+{!recordId}+'/e?retURL=%2Fa'+ID);

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos