Results 1 to 2 of 2

Thread: get last inserted id from table using customer module

  1. #1
    chetansharma05 is offline Sugar Community Member
    Join Date
    May 2008
    Posts
    25

    Default get last inserted id from table using customer module

    Hi All, i have created a customer module called Sample Request, inside Sample Request form i have create a product add box where user can add multiple product using the product option, but i want to save these added product with using the sample request table id so that i can create a relationship.

    Please tell how sugarcrm save the custom data and also please tell me the file name from where data insert into database.

  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: get last inserted id from table using customer module

    Quote Originally Posted by chetansharma05
    Hi All, i have created a customer module called Sample Request, inside Sample Request form i have create a product add box where user can add multiple product using the product option, but i want to save these added product with using the sample request table id so that i can create a relationship.

    Please tell how sugarcrm save the custom data and also please tell me the file name from where data insert into database.
    Hi chetansharma05

    The script used to save data into database (built in modules and custom modules) is the data/SugarBean.php, function save().
    Let me know if I understood properly:

    1. You created a module withing which you can create one or more entries for another module in the EditView;
    2. You want to figure out how to save the data from both modules at the same time.

    Is that right?
    Let me know if I´m not clear.

    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. Customer Service ticket tracking module.
    By petro in forum Classifieds
    Replies: 4
    Last Post: 2007-05-25, 04:02 PM
  2. add a table to link with current table in module
    By nina in forum Developer Help
    Replies: 0
    Last Post: 2007-04-27, 03:20 AM
  3. Replies: 0
    Last Post: 2006-07-17, 04:11 PM
  4. Replies: 3
    Last Post: 2006-07-12, 03:32 PM
  5. Replicating the Task module
    By nikemir in forum Help
    Replies: 3
    Last Post: 2006-07-06, 05:41 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
  •