Activity Forums Salesforce® Discussions How can we disable the inline editing of records in Salesforce?

  • Gourav

    Member
    June 1, 2016 at 10:09 am

    Hi,
    I was able to disable the InLine Editing after overriding the Edit Button with this code in the s-control

    <html>
    <head>
    <script src="/soap/ajax/8.0/connection.js">
    </script>
    <script>
    function init()
    {
    window.parent.location.href = "{!URLFOR($Action.Donation__c.Edit, Donation__c.Id,[retURL=URLFOR($Action.Donation__c.Edit, Donation__c.Id)], true)}";
    }
    </script>
    </head>
    <body onload="init()">
    <p>&nbsp;</p>
    </body>
    </html>

    When the edit button is clicked the control is transfered to the edit page propoerly, but when I click the save button. The record is saved and the same page is displayed, it does not go back to the details page (with inline editng and edit button) even when I press the cancel button the same page is display as the control is being transfered to the s-control which is transfering back to the edit page, is there some way to disable this on the edit page is displayed..
    can i do something like this..
    <html>
    <head>
    <script src="/soap/ajax/8.0/connection.js">
    </script>
    <script>
    function init()
    {
    if (Page is Detals_Page)
    window.parent.location.href = "{!URLFOR($Action.Donation__c.Edit, Donation__c.Id,[retURL=URLFOR($Action.Donation__c.Edit, Donation__c.Id)], true)}";
    Else
    window.parent.location.href = "{!URLFOR($Action.Donation__c.view , Donation__c.Id,[retURL=URLFOR($Action.Donation__c.view,
    }
    </script>
    </head>
    <body onload="init()">
    <p>&nbsp;</p>
    </body>
    </html>
    Hope this will help you also.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos