Tags:
create new tag
, view all tags

Question

Hi, I'm trying to create a table of which the contents are coming from 3 other tables in other Wiki's.

3 other tables, each on different Wikis look like this
Wiki1

name location otherinfo
john San Diego 1: looking for new house
mary Chicago will join our team soon

Wiki2

name location otherinfo
john San Diego 2: has moved
suzy Chicago took different job

Wiki3

name location otherinfo
john San Diego 3: the man!
rupert Somecity no other info


Search command to get all details for "john"
The search result would be:
Wiki1
name location otherinfo
john San Diego 4: looking for new house
Wiki2
name location otherinfo
john San Diego 5: has moved
Wiki3
name location otherinfo
john San Diego 6: the man!



_OR_ (alternative search result output)

name location otherinfo
john San Diego 7: looking for new house
john San Diego 8: has moved
john San Diego 9: the man!

For this I have a solution, but this only displays the first field after the match found
 | *Name* | 
%SEARCH{ "\| john \|" topic="CreateTableBasedOnOtherTableSearch" regex="on" multiple="on" nonoise="on" format="$pattern(^\|[^\|]*(\|[^\|]*\|).*)" }% 
result is:
Customer Project List
San Diego
San Diego
San Diego
San Diego
San Diego
San Diego
San Diego
San Diego
San Diego


Problem: Only the name field is shown, would like to automatically see the other fields aswell

Other question

  • What if the table format in the other Wikis are different? (but the first field is the same everywhere, "name")

To see when 'john' has visited I would like to create a table that searches 3 tables (on 3 wiki's) and returns the full rows

Any ideas? Thankyou! DJ

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: unknown
Web server: Apache
Perl version: unknown
Client OS: XP pro sp2
Web Browser: FF2, IE6, IE7
Categories: Search

-- DirkVandenBerg - 24 Oct 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

name location otherinfo
john San Diego 1: looking for new house
john San Diego 2: has moved
john San Diego 3: the man!
john San Diego 4: looking for new house
john San Diego 5: has moved
john San Diego 6: the man!
john San Diego 7: looking for new house
john San Diego 8: has moved
john San Diego 9: the man!

-- FranzJosefGigler - 24 Oct 2007

Franz, Thankyou very much. Last question based on this info: Is it possible to do a search where you get content our of a specific TABLE on a wiki? What if "John" is on 5 tables and I just want to search for "John" in one of those tables.

How can I narrow down that search? (I noticed that the TablePlugin has an "id" field. Couldn't find what that is used for)

Cheers!

-- DirkVandenBerg - 20 Nov 2007

If the tables are all on separate topics this is easy, if several topics are on one topic this is difficult till the TopicObjectModel has been implemented.

-- FranzJosefGigler - 20 Nov 2007

And of course there's always the infamous FormQueryPlugin. smile

-- FranzJosefGigler - 20 Nov 2007

Thankyou!

-- DirkVandenBerg - 10 Dec 2007

 
Change status to:
Topic revision: r7 - 2007-12-10 - DirkVandenBerg
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.