Results 1 to 3 of 3

Thread: function save() of module

  1. #1
    smilee is offline Sugar Community Member
    Join Date
    Mar 2011
    Posts
    73

    Default function save() of module

    when we use function save() on a record it could be nice that the date_modified field could be pass by the script and don't take the date on the date of the save.
    i don't know if you understand well what i mind
    don't hesitate to ask me questions about this
    regards

  2. #2
    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: function save() of module

    If you want to do to this, after call the save function, you could do use your sugar object to insert a sql query to update the modified date field by the code below:
    PHP Code:
    $focus->db->query($sqltrue); 
    Then you can inform which value you want.
    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

  3. #3
    smilee is offline Sugar Community Member
    Join Date
    Mar 2011
    Posts
    73

    Default Re: function save() of module

    it's already what i'm doing but i'd like to do
    $myAccount->date_modified = $date; //("dd//mm//yyyy hh:ii)

    $myAccount->save();

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. save function in logic hook
    By dtronolone in forum Developer Help
    Replies: 0
    Last Post: 2010-06-17, 07:23 PM
  2. Need Help: Calling Save Function from Javascript
    By nagarajkonaguthi@gmail.com in forum Developer Help
    Replies: 3
    Last Post: 2010-03-17, 12:16 PM
  3. Need Help - calling save function
    By nagarajkonaguthi@gmail.com in forum Developer Help
    Replies: 2
    Last Post: 2010-02-16, 12:28 PM
  4. Replies: 10
    Last Post: 2009-08-04, 03:36 PM
  5. HELP! How to customize save function
    By fedepia in forum Help
    Replies: 4
    Last Post: 2007-09-19, 09:22 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
  •