Results 1 to 2 of 2

Thread: Custom table data needs to be deleted!.

  1. #1
    pradeep_gems is offline Junior Member
    Join Date
    Nov 2009
    Posts
    2

    Default Custom table data needs to be deleted!.

    Hi,

    Can you anyone suggest me how to delete custom table data in Sugar. For example when I add some custom fields in Lead module, it creates the new table lead_cstm, but when I delete records in Lead module it just deletes only in the lead table but not in lead_cstm. Can anyone suggest or share the knowledge whether Sugar has implementation of this corresponding table data deletion.

    Thanks,

    Pradeep

  2. #2
    SugarDev.net is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    1,401

    Default Re: Custom table data needs to be deleted!.

    When deleting a record, the data isn't really gone. Not from _cstm and not rom the original table too..

    Achieving this would require an after_delete hook that deletes on ID on $bean->table_name + $bean->table_name."_cstm", if exists.
    Developers go here
    Businesses go there (Dutch)

    Modules:
    SugarDev.net Developer Tools | Config | Dutch Language Pack
    "Nothing gets fixed unless there is a bug"

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to store data in a custom table(not in _cstm)
    By dinudanial in forum Developer Help
    Replies: 28
    Last Post: 2009-03-09, 02:49 PM
  2. Replies: 2
    Last Post: 2008-09-11, 07:31 PM
  3. custom field data -> which table?
    By gsinnema in forum Developer Help
    Replies: 3
    Last Post: 2008-09-05, 12:45 PM
  4. Putting data into a custom table in sugarCRM database
    By shyam05 in forum General Discussion
    Replies: 2
    Last Post: 2008-06-03, 09:47 AM
  5. how to populate custom table data to detail view
    By arunmkuniv in forum Developer Help
    Replies: 1
    Last Post: 2006-03-15, 09:01 AM

Tags for this Thread

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
  •