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
Wiki2
Wiki3
Search command to get all details for "john"
The search result would be:
Wiki1
Wiki2
Wiki3
_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
--
DirkVandenBerg - 24 Oct 2007
Answer
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.
| 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.
--
FranzJosefGigler - 20 Nov 2007
Thankyou!
--
DirkVandenBerg - 10 Dec 2007