Menu

search_form

Adrian
2013-05-23
2013-05-24
  • Adrian

    Adrian - 2013-05-23

    How to set search_form be hidden by default?

    thanks,

     
  • Pankaj khurana

    Pankaj khurana - 2013-05-24

    Hello Adrian,

    At present you have no such facility to hide form but you have to comment on hardcode

    so in cmdabstract.class.inc.php you have to do commenting in

    public static function DisplaySearchForm(WebPage $oPage, CMDBObjectSet $oSet, $aExtraParams = array())
    {

        //$oPage->add(self::GetSearchForm($oPage, $oSet, $aExtraParams));
    }
    

    so your search_form donot appear..

     
  • TheBigOne

    TheBigOne - 2013-05-24

    I dont have the code here to give the example but dont you think that its much better to block the visibility within css or the SearchForm method itself instead of commenting the method in the abstract class?
    The result is the same but I would do it much more simple and cleaner to keep the changes after an update.

    Can I maybe ask why the searchform shouldn`t be visible? there are a lot of other search forms wich can be used instead. So this is not the solution to create a kind of permission restriction.

    Maybe there is a better idea for your need ;)

    /Stefan

     
  • Adrian

    Adrian - 2013-05-24

    My intention is to keep the form closed and use it only when I need it, for saving screen space reason.
    The search form is closed in any shortcut menu I created, but in "all open incidents", for example, is open and take a lot of screen. Even if I close it, after page refresh it reappears.

    thanks,
    Adrian

     

    Last edit: Adrian 2013-05-24

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.