Results 1 to 2 of 2

Thread: Help for Insert Query

  1. #1
    sugarcrmster is offline Sugar Community Member
    Join Date
    Jul 2006
    Posts
    239

    Exclamation Help for Insert Query

    Hi all

    I required help for Insert Query

    I have Develop Custom Module Base on Case

    In that Module I have created Serial number Field

    While Saving Record i want to insert Serial Number Value as Case Number + Dateof Created For Ex: srno=12/04/12/2009

    any solution how to Update Query in Custom module

    Thanks

    Sugarcrm Developer

  2. #2
    Rajesh Patel is offline Sugar Community Member
    Join Date
    Sep 2009
    Posts
    35

    Default Re: Help for Insert Query

    Use can use Logic Hook to achive the same.
    Download editloginchook from sugarforge and you can use it to crete logic hooks

    use before_save method and in that assign that value

    $bean->srno = 'yourvalue'
    Rajesh Patel

    When you are courting a nice girl an hour seems like a second. When you sit on a red-hot cinder a second seems like an hour. That's relativity. - Albert Einstein

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Missing contact_id in INSERT sql query
    By brownbear in forum Help
    Replies: 1
    Last Post: 2009-03-09, 03:45 PM
  2. Query Failed:INSERT into emails set
    By ftrevinoalbert in forum Help
    Replies: 1
    Last Post: 2008-10-07, 08:47 PM
  3. Replies: 1
    Last Post: 2006-10-26, 06:30 PM
  4. how to print insert query
    By rohitdsouza in forum Help
    Replies: 0
    Last Post: 2006-04-03, 06:35 AM
  5. Where is the insert query string for leads
    By laluciano in forum Help
    Replies: 0
    Last Post: 2005-07-01, 04:10 PM

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
  •