Results 1 to 7 of 7
Like Tree2Likes
  • 2 Post By christianknoll

Thread: Need to remove delete option in the all the sub panel

  1. #1
    akkimca's Avatar
    akkimca is offline Sugar Community Member
    Join Date
    Dec 2008
    Posts
    270

    Question Need to remove delete option in the all the sub panel

    Hi,

    I am using Sugar crm 6.2 pro version and i have one requirement that only admin can remove the data from the all sub panels.
    User dont have rights to delete the records in the sub panel.

    Please provide me solution for this.

    Thanks in advance
    Regards
    ==========================
    akkimca
    Work as Sugarcrm Freelancer
    Feel free to Find me in skype. Its my pleasure to talk with you.
    ID: akshay.biztech

  2. #2
    sts's Avatar
    sts
    sts is offline Sugar Community Member
    Join Date
    Aug 2010
    Posts
    978

    Default Re: Need to remove delete option in the all the sub panel

    Users have the right to delete records in general but not in the sub panels? That makes not much sense to me.

    If you want to remove the possiblity to remove records for normal users generally you can do it with role restrictions: define a role "nodelete" without delete functionality and add every non-admin user to this role. The normal users won't be able to delete a record then and the delete-button won't be visible anymore for them.
    Stefan Ulrich Sauer
    System Analyst

    Devoteam Danet GmbH
    Gutenbergstraße 10
    D-64331 Weiterstadt
    Germany
    email: Stefan-Ulrich.Sauer@devoteam.com
    http://www.devoteam.de

  3. #3
    christianknoll's Avatar
    christianknoll is offline Sugar Community Member
    Join Date
    Nov 2008
    Location
    Vienna
    Posts
    939

    Default Re: Need to remove delete option in the all the sub panel

    As a SugarCRM Freelancer you should know this .. ;-) .. however if I understand your request proper you want to disable the remove releationship button in the subpanel line which I would (if it should be general) simply would do by overwriting the according Widget and disable it except for administrators.

    Look into include/generic/SugarWidgets/SugarWidgetSubPanelRemoveButton.php

    should not take more then a couple of minutes.

    christoian.

    Quote Originally Posted by akkimca View Post
    Hi,

    I am using Sugar crm 6.2 pro version and i have one requirement that only admin can remove the data from the all sub panels.
    User dont have rights to delete the records in the sub panel.

    Please provide me solution for this.

    Thanks in advance

  4. #4
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    782

    Default Re: Need to remove delete option in the all the sub panel

    If you wanted to remove the delete button for just some subpanels, you could open the file [custom]/modules/<module_name>/metadata/subpanels/[some_name].php and there remove the delete button entry from subpanel array.
    Rafael Queiroz Gonçalves
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Computer Science Mastering / UFSC - PPGCC

  5. #5
    christianknoll's Avatar
    christianknoll is offline Sugar Community Member
    Join Date
    Nov 2008
    Location
    Vienna
    Posts
    939

    Default Re: Need to remove delete option in the all the sub panel

    Your solution only works half since then the admin also would not be able to remove records as it is seemingly required. ;-)

    christian.

    Quote Originally Posted by rafael.q.g@hotmail.com View Post
    If you wanted to remove the delete button for just some subpanels, you could open the file [custom]/modules/<module_name>/metadata/subpanels/[some_name].php and there remove the delete button entry from subpanel array.

  6. #6
    akkimca's Avatar
    akkimca is offline Sugar Community Member
    Join Date
    Dec 2008
    Posts
    270

    Wink Re: Need to remove delete option in the all the sub panel

    Hi,

    Thanks for your reply....
    Any upgrade safe method is available in sugar to do this ?????

    Thanks
    Regards
    ==========================
    akkimca
    Work as Sugarcrm Freelancer
    Feel free to Find me in skype. Its my pleasure to talk with you.
    ID: akshay.biztech

  7. #7
    christianknoll's Avatar
    christianknoll is offline Sugar Community Member
    Join Date
    Nov 2008
    Location
    Vienna
    Posts
    939

    Default Re: Need to remove delete option in the all the sub panel

    Sure. Create a custom widget, replace it in all subpanels by creating new ones and then using them in the proper custom layoutdefs. Then it is (supposeldy) upgrade safe (until sugar brings new stuff like an ajax gui ... ;-)

    christian,

    Quote Originally Posted by akkimca View Post
    Hi,

    Thanks for your reply....
    Any upgrade safe method is available in sugar to do this ?????

    Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to add custom option in Admin Panel?
    By zogmit in forum Developer Help
    Replies: 6
    Last Post: 2010-10-11, 02:38 PM
  2. Remove mandatory option
    By kodikarthi in forum General Discussion
    Replies: 1
    Last Post: 2008-12-23, 09:53 AM
  3. Removing delete doesn't remove delete!!
    By REByers in forum Help
    Replies: 1
    Last Post: 2008-06-04, 10:40 PM
  4. Delete print option
    By ghiz in forum Developer Help
    Replies: 0
    Last Post: 2007-08-21, 02:13 AM
  5. Accounts sub-panel rollup option
    By Proware in forum Feature Requests
    Replies: 0
    Last Post: 2006-08-10, 07:09 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •