How to smart search in custom tables

HelenaG Grulichova asked on July 21, 2011 06:22

How to smart search in custom tables

Correct Answer

HelenaG Grulichova answered on July 21, 2011 06:22

The smart search is supported by default in custom tables. You need to create a smart search index in the Site Manager –> Administration –> Smart search –> New index and finally select an Index type: Custom tables. To display search results you need to write a transformation which will be used by the web part displaying results.

Displaying detail information about some row is a little different from showing details of some document. The page with custom table row does not exist in the content tree. Therefore you need to create a special page for this purpose. You could insert for example a custom table repeater web part to this page and from the smart search transformation pass the ItemID value (or some other ID column) to this page. Using a query macro {?ItemID?} you could set a WHERE condition property of custom table repeater web part and ItemID={?ItemID?}. This way only a selected row will be displayed.

You can find more information about Smart search transformations here: Smart search transformations.

-it-
0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.