Results 1 to 5 of 5
Like Tree1Likes
  • 1 Post By heta

Thread: Redirecting to DetailView

  1. #1
    shyam007 is offline Sugar Community Member
    Join Date
    Dec 2008
    Location
    Pune
    Posts
    202

    Default Redirecting to DetailView

    Hi All,


    Today I stuck on one issue. i.e. I want to redirect from After Delete Logic Hook to DetailView of particular module.

    Let me explain. Suppose I am using two modules say "Accounts" & "Contacts".

    If I go to detailview of Contacts module through Contacts Subpanel under Accounts module, and after delete this record then control goes to Contacts ListView, instead of this I want control goes to back i.e in Accounts DetailView.

    For this I have written After Delete Logic Hook for Contacts module, and in this file I have written php-header function for redirecting, but it's not redirecting.

    I am using SugarCRM 6.3 Pro version.


    Please help me......
    Shyam
    Mumbai - India.


    shyam.fc@gmail.com

    SugarCRM (CE & PRO):- 6.1.*
    Operating System :- CentOS 5.5
    PHP Version:- 5.2.17
    Apache :-2
    MYSQL :-5.0

  2. #2
    heta's Avatar
    heta is offline Sugar Community Member
    Join Date
    Nov 2007
    Location
    Ahmedabad,India
    Posts
    214

    Default Re: Redirecting to DetailView

    Try following code,
    PHP Code:
    $url "index.php?module=".$return_module."&action=".$return_action."&record=".$return_id;
    SugarApplication::redirect($url); 
    do change variables as per your need.
    lijith likes this.
    Best Regards
    ---------------------------------------
    Heta Shah - iNET PROCESS
    heta.shah@inetprocess.com
    http://www.inetprocess.co.in
    Projects :
    iNETDocs -Project of the month(Dec-2008)
    iNETGoogleMap

  3. #3
    shyam007 is offline Sugar Community Member
    Join Date
    Dec 2008
    Location
    Pune
    Posts
    202

    Default Re: Redirecting to DetailView

    Yes, It's working. Thank you so much Heta..........


    Quote Originally Posted by heta View Post
    Try following code,
    PHP Code:
    $url "index.php?module=".$return_module."&action=".$return_action."&record=".$return_id;
    SugarApplication::redirect($url); 
    do change variables as per your need.
    Shyam
    Mumbai - India.


    shyam.fc@gmail.com

    SugarCRM (CE & PRO):- 6.1.*
    Operating System :- CentOS 5.5
    PHP Version:- 5.2.17
    Apache :-2
    MYSQL :-5.0

  4. #4
    shyam007 is offline Sugar Community Member
    Join Date
    Dec 2008
    Location
    Pune
    Posts
    202

    Default Re: Redirecting to DetailView

    Hi Heta,

    Do you know, why php header function is not working in SugarCRM 6.3 version ?


    Quote Originally Posted by shyam007 View Post
    Yes, It's working. Thank you so much Heta..........
    Shyam
    Mumbai - India.


    shyam.fc@gmail.com

    SugarCRM (CE & PRO):- 6.1.*
    Operating System :- CentOS 5.5
    PHP Version:- 5.2.17
    Apache :-2
    MYSQL :-5.0

  5. #5
    ashjeny is offline Junior Member
    Join Date
    Mar 2012
    Posts
    4

    Default Re: Redirecting to DetailView

    Please sent me full details.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. SugarCRM wiki redirecting to KB
    By robertbmirth in forum General Discussion
    Replies: 12
    Last Post: 2012-01-11, 03:55 PM
  2. Redirecting to list view?
    By Mithun in forum Developer Help
    Replies: 5
    Last Post: 2009-04-24, 05:02 PM
  3. redirecting WebToLeadCapture.php
    By monkeyfish in forum Help
    Replies: 3
    Last Post: 2008-06-02, 11:39 PM
  4. Campaign Tracker URL not redirecting
    By chriseustace in forum Help
    Replies: 0
    Last Post: 2007-06-26, 01:52 PM
  5. index.php redirecting to install.php
    By havaml in forum General Discussion
    Replies: 0
    Last Post: 2005-08-31, 04:34 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
  •