Results 1 to 3 of 3

Thread: hide panels in detailview

  1. #1
    sreekanths478 is offline Sugar Community Member
    Join Date
    Jan 2012
    Location
    hyderabad
    Posts
    19

    Default hide panels in detailview

    Hi,
    i am having select of choices in editview/creating.Depend on that below respective panels will appears and stores in db.
    In case of detail view,depends on that choice,only i need respective panel details.
    How can i do this?
    if any ideas,please inform asap.

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: hide panels in detailview

    You should be able to grab the panel element by ID and hide/show via javascript as needed. You can add custom javascript in the top of the edit/detailviewdefs.php or in a custom view.edit.php/view.detail.php file. Lots of examples on the forums to get you started in that respect.

  3. #3
    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: hide panels in detailview

    You also could try use the follow code on view.detail.php:
    PHP Code:
    unset($layout_defs['Accounts']['subpanel_setup']['<subpanel_name>']); 
    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

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to Hide Layout Panels in usermodule??
    By m3suriya in forum Developer Help
    Replies: 1
    Last Post: 2010-07-14, 01:50 PM
  2. Editview panels show/hide?
    By madhrishi in forum Help
    Replies: 5
    Last Post: 2009-05-05, 03:47 PM
  3. Hide Panels
    By kasperd in forum Help
    Replies: 0
    Last Post: 2008-12-10, 12:44 PM
  4. DetailView Panels Separation
    By swhitlow in forum Developer Help
    Replies: 11
    Last Post: 2008-04-08, 03:09 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
  •