multiple columns Archives : Binary Bits https://blog.binarybits.net/tag/multiple-columns/ Bits & Pieces - A blog by Kannan Balasubramanian Mon, 01 Apr 2013 11:10:36 +0000 en-GB hourly 1 https://wordpress.org/?v=6.5.2 Searching in a list with one keyword across two columns https://blog.binarybits.net/searching-in-a-list-with-one-keyword-across-two-columns/ https://blog.binarybits.net/searching-in-a-list-with-one-keyword-across-two-columns/#respond Mon, 01 Apr 2013 11:10:36 +0000 https://blog.binarybits.net/?p=499 We have a document list with 2 columns. One is a text column and other is a lookup column The requirement was that, user should be able to search across two columns, where the condition being, search should match with either of the column. The following url format works for this particualr scenario. http://server/sites/site1/sitePages/DocumentSearchPage.aspx?k= &r=Column1:”query*” […]

The post Searching in a list with one keyword across two columns appeared first on Binary Bits.

]]>
We have a document list with 2 columns. One is a text column and other is a lookup column

The requirement was that, user should be able to search across two columns, where the condition being, search should match with either of the column. The following url format works for this particualr scenario.

http://server/sites/site1/sitePages/DocumentSearchPage.aspx?k= &r=Column1:”query*” OR Column2:”query*”&cs=This List&u=http://server/sites/site1/library1

Note:

DocumentSearchPage.aspx has a Search Core Results webpart.

The parameer “k” is not required. But sometime without this parameter search result is blank. Hence “k” will have a empty character as string.

cs=This List is a query paramter which helps in searching a particular library. This depends on the parameter “u” explained in next line.

u=http://server/sites/site1/library1 is the library from which search result should come.

The post Searching in a list with one keyword across two columns appeared first on Binary Bits.

]]>
https://blog.binarybits.net/searching-in-a-list-with-one-keyword-across-two-columns/feed/ 0