Results 1 to 6 of 6

Thread: How to remove Search in module

  1. #1
    Alexlv4 is offline Sugar Community Member
    Join Date
    Dec 2010
    Posts
    16

    Default How to remove Search in module

    Hi guys.

    I am using sugar 6.3

    I make a module but I need to know how to remove the search function.

    I attach image for my request.



    Could you help me?

    Thanks in advance

  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: How to remove Search in module

    A simple way to "remove" that is deleting all fields from basic and advanced search of your searchdefs.php file.
    A more sofisticated solution is extending the display function from view.list.php, then is possible to include a few lines fo code to hide search panel.
    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
    Alexlv4 is offline Sugar Community Member
    Join Date
    Dec 2010
    Posts
    16

    Default Re: How to remove Search in module

    Quote Originally Posted by rafael.q.g@hotmail.com View Post
    A simple way to "remove" that is deleting all fields from basic and advanced search of your searchdefs.php file.
    A more sofisticated solution is extending the display function from view.list.php, then is possible to include a few lines fo code to hide search panel.
    Hi Rafael.

    Thanks for answer me.

    I don't have this file on my module.

    I need to add this file to my module?

    If it is correct, what is the path to create these file?
    modules/mymodule/metadata ?

    Thanks in advance

  4. #4
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: How to remove Search in module

    You can do it via Studio, or in you case, since you are talking about a custom module, it'd be best if you do it in Module Builder. Once in there, edit the layouts and you'll see there is one for basic and advanced search. That's what Rafael was suggesting, as edits made via that screen would end up being stored in searchdefs.php

    That being said, I second Rafael's point that the more sophisticated approach would be to apply the change via a custom view.list.php file
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  5. #5
    Alexlv4 is offline Sugar Community Member
    Join Date
    Dec 2010
    Posts
    16

    Default Re: How to remove Search in module

    Hi thanks for your answers.

    I copy from
    /modules/Calendar/views/view.list.php
    to
    /modules/mymodule/views/view.list.php

    I modify the file but the search block appear.

    These are the files that I have in my module.

    Folders
    Dashlets
    metadata
    views
    language

    Files
    key_efficiency_sugar.php
    Forms.php key_efficiency.php
    vardefs.php

    Inside of metadata I program all my module

    connectionDB.php , searchdefs.php , dashletviewdefs.php , listviewdefs.php, SearchFields.php, detailviewdefs.php, metafiles.php, sidecreateviewdefs.php, editviewdefs.php, popupdefs.php, studio.php


    Thanks in advance

  6. #6
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: How to remove Search in module

    You need to copy view.list.php from include/MVC/View/views. If you continue to have a problem with it, post the customized version of the view.list.php you are attempting to use.
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Remove search memory?
    By bbzbryce in forum General Discussion
    Replies: 15
    Last Post: 2012-03-16, 04:12 PM
  2. How to remove Search Panel?
    By shyam007 in forum Developer Help
    Replies: 0
    Last Post: 2010-05-04, 12:45 PM
  3. How to remove advanced search
    By anicolais in forum Help
    Replies: 2
    Last Post: 2010-03-26, 11:22 AM
  4. How do you remove a Saved Search?
    By erfmufn in forum Help
    Replies: 1
    Last Post: 2008-06-25, 10:31 PM
  5. Can you HIDE Adv. Search? Or remove it???
    By HomeTeam in forum Help
    Replies: 1
    Last Post: 2007-03-14, 04:27 AM

Tags for this Thread

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
  •