Results 1 to 6 of 6

Thread: process_record logic hook for detailview

  1. #1
    rakeshray is offline Sugar Community Member
    Join Date
    Jun 2010
    Location
    Hyderabad (India)
    Posts
    313

    Default process_record logic hook for detailview

    Hi,
    I am trying to use process_record logic hook for detail view but nothing is happening in detail view
    But its working for list view.
    Does it work for detail view also ?
    Please any body suggest me !

    Thanks

  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: process_record logic hook for detailview

    For detail view try to use before_retrieve, it should works.
    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
    rakeshray is offline Sugar Community Member
    Join Date
    Jun 2010
    Location
    Hyderabad (India)
    Posts
    313

    Default Re: process_record logic hook for detailview

    Quote Originally Posted by rafael.q.g@hotmail.com View Post
    For detail view try to use before_retrieve, it should works.
    Thanks !
    Its working for detail view.
    Control is coming in logic hook before page is redirected to detail view.

    But inside logic hook function i put following code , which is not working........
    $bean->description="Custom description";
    The assigned value is not displaying in detail view..
    And another thing is its working for both edit and detail view.
    so how to distinguish b/w edit and detail view.
    Its $bean is empty also.

    Thanks

  4. #4
    R3dian is offline Junior Member
    Join Date
    May 2011
    Posts
    8

    Default Re: process_record logic hook for detailview

    You have to apply after_retrieve logic hook to achieve the above mentioned functionality .

  5. #5
    hiren.inetprocesss's Avatar
    hiren.inetprocesss is offline Sugar Community Member
    Join Date
    Nov 2011
    Location
    india
    Posts
    14

    Default Re: process_record logic hook for detailview

    HI

    Process_record hook will only execute in listview and subpanel of detailview.

    Please try after_retrieve hook instead of process_record hook for detail view.
    In this when detailview record is retrieved your hook will fire and what ever you want to code it will execute.

    And then whatever you want to update you can set it to $bean-> object so you can view its reflection in detailview.

    Regards
    Hiren Prajapati

  6. #6
    shrisamsalunke is offline Sugar Community Member
    Join Date
    Dec 2011
    Posts
    46

    Default Re: process_record logic hook for detailview

    for details view you can use before_retrieve or after_retrieve

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Problem creating a process_record hook
    By lcwakeman in forum Developer Help
    Replies: 3
    Last Post: 2010-12-15, 08:18 PM
  2. Replies: 7
    Last Post: 2010-08-15, 03:34 PM
  3. Replies: 1
    Last Post: 2009-04-01, 11:43 AM
  4. process_record logic hook
    By cchiu in forum Developer Help
    Replies: 1
    Last Post: 2009-02-25, 11:30 PM
  5. Logic hook in DetailView
    By eli.lindner in forum Developer Help
    Replies: 4
    Last Post: 2008-10-30, 08:53 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
  •