Tags:
create new tag
view all tags

Question

Hi all, i have just installed Twiki for our project purpose. Our main usage is with tables of data. I have installed EditTablePlugin plugin which allows me to do sorting. But i want to do FILTERing as well with sorting, the same way we can do in Excel or Access database. I tried with some plugins but it didn't work out the way i want.

Environment

TWiki version: TWikiRelease04x00x00
TWiki plugins: CommentPlugin, EditTablePlugin, DefaultPlugin, EmptyPlugin, InterwikiPlugin, PreferencesPlugin, SlideShowPlugin, SmiliesPlugin, TablePlugin, WebPermissionsPlugin
Server OS: RedHat Linux 8.0
Web server: Apache 2.2.3
Perl version: 5.8.8
Client OS: Windows XP
Web Browser: IE6
Categories: Plugins

-- DarshitaShah - 15 Dec 2006

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

You need to create custom SEARCHes for this. Have a look at BlogAddOn, topic BlogPost, to see how it is done there.

-- ArthurClemens - 15 Dec 2006

You'll also find an example here on TWiki.org with TWikiInstallation.

-- LynnwoodBrown - 15 Dec 2006

Ya, i want the same kind of format mentioned in TWikiinstallation. But i have another question here is, do i need to install any plugin for this filter to work. I tried doing the mentioned way, but after clicking "Filter" table comes in the situation when it should come after clicking "Edit". I hope i m clear enough to explain the situation.

-- DarshitaShah - 21 Dec 2006

Darshita - I'm sorry, i don't understand what you're asking. Are you saying you want to apply the filter while your editing the table? That won't work. Otherwise, I don't thing TWikiInstallation requires any special plugins.

-- LynnwoodBrown - 21 Dec 2006

Hi Lynnwood - ya, i was not clear. Let me try with an example.

I have made a table using EditTablePlugin. %EDITTABLE{ header="|*Sr.No*|*Emp No*|*Name*|*Certification*|*Date of Certification*|*Percentage*|" format="| row, -1 | text, 07,  | text, 30, null | select, 1,  , CCNA, CCNP, SCJP, Basic PE, MCSE, MCP | date, 14, (01 Jan 2006),  | text, 05, 00 |" changerows="on" }%

Sr.No Emp No Name Certification Date of Certification Percentage
1 20005 ABC CCNA 23 August 2006 74
2 21001 DEF SCJP 1 September 2006 68
3 21001 DEF Basic PE 14 September 2006 65
4 21999 XYZ MCSE (01 Jan 2006) 00

Here i want to put filter so that i can extract data on the basis of employee name or certification. So i did the changes like

Sr.No Emp No Name Certification Date of Certification Percentage
   
1 20005 ABC CCNA 2028-06-21 74
2 21001 DEF SCJP 1 September 2006 68
3 21001 DEF Basic PE 14 September 2006 65

on the TWikiInstallation, Entry Form is linked with Table to do Filtering. I dont know how to link EditTablePlugin with Filter of my example.

In the example, clicking on "FILTER" after selecting any value from drop down list, i m finding the form of EditTablePlugin.

I hope this time i m quite clear.

-- DarshitaShah - 22 Dec 2006

You can't apply a filter to an edit table. It is however posssible to show a report with filter on the same topic or another topic that shows the edit table data. Do that with a FormattedSearch (aka a VarSEARCH using multiple="on" and URLPARAMs in the search string)

The table you see in the TWikiInstallation is generated dynamically with a FormattedSearch; data is pulled from topics with TWikiForms. You can apply a filter to this setup.

-- PeterThoeny - 24 Dec 2006

Change status to:
Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r10 - 2015-01-21 - AndersonRocha
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.