[racktables-users] Re: Static filter

  • From: "Farrington, Ryan" <rfarrington@xxxxxxxxxxxxx>
  • To: <racktables-users@xxxxxxxxxxxxx>
  • Date: Tue, 4 May 2010 15:49:10 -0400

Committed to the next branch release. There are a number of smaller 
modifications made so the filter is only static per realm and each user has the 
ability to turn off the static filter if they want to be difficult.

-----Original Message-----
From: racktables-users-bounce@xxxxxxxxxxxxx 
[mailto:racktables-users-bounce@xxxxxxxxxxxxx] On Behalf Of Farrington, Ryan
Sent: Friday, April 23, 2010 10:33 AM
To: racktables-users@xxxxxxxxxxxxx
Subject: [racktables-users] Re: Static filter

The static filter is complete. The and/or settings, the tag, and the custom 
rackcode is saved across the entire session until cleared the normal route. 


First modification to the functions.php  adds the filters as session variables 
so that they stay applied while there is still a valid session.  

I did have to make a few modifications to the interface.php so I can't provide 
a diff for ya but the change is pretty simple

In the function renderCellFilterPortlet
Search for ' // submit block'
In that block look for 'echo "<input type=hidden name=tab value=${tabno}>\n";'
Add the snip below after it 

-- snip --
                        echo "<input type=hidden name='cft[]'
value=''>\n";
                        echo "<input type=hidden name='cfe'
value=''>\n";
-- end snip --







Ryan Farrington
Senior Systems Engineer

MedAssets
5556 Tennyson Pkwy
Suite 200
Plano TX 75024
Direct - 972-244-0312
Cell - (972) 757-3028



From: racktables-users-bounce@xxxxxxxxxxxxx
[mailto:racktables-users-bounce@xxxxxxxxxxxxx] On Behalf Of Denis Ovsienko
Sent: Thursday, April 22, 2010 10:55 PM
To: racktables-users@xxxxxxxxxxxxx
Subject: [racktables-users] Re: Static filter

> Once I save a tag filter it would be nice to have it preserved across
page loads. Before I go making this possible, has anyone done this already? 
Would this feature be worth adding to the codebase?

If what you mean is this, I would be one of the first users:
http://sourceforge.net/apps/mantisbt/racktables/view.php?id=217

--
    Denis Ovsienko


The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential, proprietary, and/or privileged 
material. Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon this information by persons or entities other 
than the intended recipient is prohibited. If you received this in error, 
please contact the sender and delete the material from all computers


The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential, proprietary, and/or privileged 
material. Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon this information by persons or entities other 
than the intended recipient is prohibited. If you received this in error, 
please contact the sender and delete the material from all computers

Other related posts: