Results 1 to 4 of 4

Thread: refresh page after logic in before_save

  1. #1
    clrockwell is offline Member
    Join Date
    Nov 2009
    Posts
    9

    Default refresh page after logic in before_save

    Hello,

    I am using Sugarcrm version 6. From the Leads DetailView I am using a before_save logic hook whenever a Call is logged in the activities sub panel:
    1. Call is being logged
    2. retrieve leads.status
    3. if leads.status == 'Assigned', update leads.status = 'In Process'
    4. Save Call

    What I'd like to do here is refresh the Leads DetailView to reflect the new status. What would be the best way to do this? I'm thinking I could change the hook to an after_save and then just refresh the page, but is there a better way to do this?

    Thanks much!

  2. #2
    vbondoux is offline Sugar Community Member
    Join Date
    Feb 2007
    Posts
    50

    Default Re: refresh page after logic in before_save

    same wishe ! Did you find a solution ?

  3. #3
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: refresh page after logic in before_save

    Hello,

    Follow this thread, it might help.
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

  4. #4
    clrockwell is offline Member
    Join Date
    Nov 2009
    Posts
    9

    Default Re: refresh page after logic in before_save

    @vbondoux : I have settled on the same solution that davidboris has referenced, just a reload of the page essentially. I hope to do it eventually without re-loading the entire page but have not yet had the time to work it out. SugarCRM obviously uses ajax/json for several things so I'm sure the answer is out there.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. how could I refresh total page?
    By thinktodo in forum Help
    Replies: 0
    Last Post: 2009-05-11, 05:00 AM
  2. Replies: 2
    Last Post: 2008-12-24, 12:25 PM
  3. Problem with logic hooks and refresh
    By mallwitz in forum Developer Help
    Replies: 2
    Last Post: 2008-10-01, 08:51 AM
  4. How to refresh editview Page
    By rraushan2007 in forum Developer Help
    Replies: 1
    Last Post: 2008-09-24, 07:43 PM
  5. History sorting changes on page refresh
    By marcan in forum General Discussion
    Replies: 0
    Last Post: 2007-03-22, 12: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
  •