Results 1 to 2 of 2

Thread: cache problem in custom module

  1. #1
    lenz1979 is offline Sugar Community Member
    Join Date
    Jun 2009
    Posts
    68

    Default cache problem in custom module

    Hello!

    the following Problem:

    i have a custom selectbox in detailview. If a user changes this box the action of the form will be changed to a custom action and than the form will be submitted.

    in the controllerr i catch this custom action (function action_CUSTOMACTION)

    depending on the selectbox i make some changes within the module-record. (e.y. change assigned_user_id or status....)

    in the ind of the action_CUSTOMACTION function i go back to the detail view:

    PHP Code:
    $this->view 'detail'
    But the changes i made within the custom controller function will not be shown when the detailview appears again. Only if i go to listview and back to detailview of this record i can se the changes i made.


    i already tried to override the display function in the view.detail.php to clear the cache but i did not affect anything


    maybe i misunderstand something and the values that will be shown in the detailview will be loaded prior to the action_CUSTOMACTION function.

  2. #2
    lenz1979 is offline Sugar Community Member
    Join Date
    Jun 2009
    Posts
    68

    Default Re: cache problem in custom module

    alreads found the problem

    i tried to set the bean variables within another function. i passed the bean by value and not by reference so the changes did not affect.

    my fault.

    now it works.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Forcing No-Cache on a Detail screen of custom module
    By mbuttrey01 in forum Developer Help
    Replies: 5
    Last Post: 2009-10-23, 01:55 PM
  2. Installation problem: Custom, Data, Cache and Modules Sub-Directories
    By sugarcrm.igor in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2008-10-26, 10:09 AM
  3. Cache Problem
    By rraushan2007 in forum Developer Help
    Replies: 2
    Last Post: 2008-09-17, 06:32 AM
  4. Problem in Module (Getting code from cache module)
    By chetansharma05 in forum Help
    Replies: 1
    Last Post: 2008-09-15, 02:33 PM
  5. Replies: 0
    Last Post: 2008-05-20, 09:01 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
  •