Results 1 to 2 of 2

Thread: Refresh Page after Creating Note/Attachment

  1. #1
    krizel is offline Junior Member
    Join Date
    May 2010
    Posts
    4

    Default Refresh Page after Creating Note/Attachment

    I was wondering if it is possible to refresh the page once a new note/attachment was created on the Contacts module.

    Here's what I am trying to do:

    On Contacts module, I have the History Subpanel. I click on Create Note or Attachment and subsequently create my note. When I hit Save, I see the subpanel being refreshed. I want the whole page to refresh as well. Can this be done?

    So far, I have tried changing

    ...\nclude\Smarty\plugins\function.sugar_button where it says case "SUBPANELSAVE": to this:

    PHP Code:
    return '{if $bean->aclAccess("save")}<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button" onclick="this.form.action.value=\'Save\';if(check_form(\''.$view.'\'))return SUGAR.subpanelUtils.inlineSave(this.form.id, \'' $params['module'] . '_subpanel_save_button\');window.location.reload();return false;" type="submit" name="' $params['module'] . '_subpanel_save_button" id="' $params['module'] . '_subpanel_save_button" value="{$APP.LBL_SAVE_BUTTON_LABEL}">{/if} '
    But it didn't work. Is this even possible? I am looking at SUGAR.subpanelUtils.inlineSave, but I am not sure if it's customizable. Any ideas?

    I appreciate any help! Thanks in advance.

    Krizel

  2. #2
    mlorca's Avatar
    mlorca is offline Member
    Join Date
    Apr 2007
    Location
    Santiago, Chile
    Posts
    10

    Smile Re: Refresh Page after Creating Note/Attachment

    I guess you can achieve this by using an "After Save" logic hook. It would be simple and upgrade-safe way to customize that behavior.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. refresh page not refresh data
    By emimarz in forum Developer Help
    Replies: 0
    Last Post: 2011-04-15, 12:48 PM
  2. Replies: 2
    Last Post: 2010-02-28, 10:20 AM
  3. SOAP add note attachment.
    By Poynton in forum Developer Help
    Replies: 0
    Last Post: 2009-12-22, 10:23 PM
  4. One note/ attachment to many contacts etc
    By techex in forum Feature Requests
    Replies: 0
    Last Post: 2004-10-24, 07:02 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
  •