Results 1 to 2 of 2

Thread: Giving condition for 'delete'

  1. #1
    prajeesh is offline Senior Member
    Join Date
    Jun 2009
    Posts
    64

    Default Giving condition for 'delete'

    Hi

    I have a custom module called 'SOW' and another custome module 'Forecast'. There is a one to many relation between SOW -> Forecast. Now i need to put a condtion in the list view of SOW that an SOW record can be deleted only if there is no related record in the 'Forecast' module. Please guide me in this.

    Thanks
    Prajeesh

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Giving condition for 'delete'

    You can create a logic_hook before_delete to evaluate this condition.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. On the Verge of Giving Up
    By mstone in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2008-08-13, 05:56 PM
  2. Dropdown not giving -none- option
    By kvalley32 in forum Help
    Replies: 2
    Last Post: 2007-05-01, 06:00 PM
  3. LDAP giving me problems
    By roy1 in forum Help
    Replies: 0
    Last Post: 2007-01-31, 02:02 PM
  4. Popup giving blank
    By shigeru in forum Help
    Replies: 3
    Last Post: 2006-03-06, 03:53 PM
  5. Giving certain rights
    By redstarfcs in forum Developer Help
    Replies: 0
    Last Post: 2005-10-01, 05:36 AM

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
  •