[This is preliminary documentation and is subject to change.]

Gets the search result from the database using a particular group and a particular user.

Namespace:  OfficeClip.DBLayer.Desktop
Assembly:  OfficeClip.DBLayer (in OfficeClip.DBLayer)
Version: 8.1.1.0

Syntax

C#
public DataSet Search(
	int userId,
	int groupId,
	int textSelectOption,
	int sizeSelectOption,
	int dateSelectOption,
	string textValue,
	double sizeValue,
	string fromDate,
	string toDate
)
Visual Basic (Declaration)
Public Function Search ( _
	userId As Integer, _
	groupId As Integer, _
	textSelectOption As Integer, _
	sizeSelectOption As Integer, _
	dateSelectOption As Integer, _
	textValue As String, _
	sizeValue As Double, _
	fromDate As String, _
	toDate As String _
) As DataSet
Visual C++
public:
DataSet^ Search(
	int userId, 
	int groupId, 
	int textSelectOption, 
	int sizeSelectOption, 
	int dateSelectOption, 
	String^ textValue, 
	double sizeValue, 
	String^ fromDate, 
	String^ toDate
)

Parameters

userId
Type: System..::.Int32
The unique id of the user. Please note that user should belong to the group whose GroupId is passed in the next argument.
groupId
Type: System..::.Int32
Id of a particular group.
textSelectOption
Type: System..::.Int32
The text selected option by the user -1 = Not Available 1 = All 2 = File Name 3 = Detail 4 = Keywords 5 = Created By
sizeSelectOption
Type: System..::.Int32
-1 = Not Available 1 = Equal To 2 = Less Than 3 = More Than
dateSelectOption
Type: System..::.Int32
-1 = Not Available 1 = Created Date 2 = Modified Date
textValue
Type: System..::.String
The text value for search, required only if txtSelectOption is positive
sizeValue
Type: System..::.Double
The size of the file(in KB), required only if sizeSelectOption is positive
fromDate
Type: System..::.String
The from date, is used when the dateSelectOption is positive, in string format MM/dd/yyyy
toDate
Type: System..::.String
The to date, is used when the dateSelectOption is positive, in string format MM/dd/yyyy

Return Value

DataSet containg all the results matching the search criteria. DataSet consists of single DataTable with the following columns.
  • sizeOfFile (System.Double) Size of the document.
  • docId (System.Int32) Id of the document.
  • docName (System.String) Name of the document.
  • folderName (System.String) Name of the folder.
  • created (System.DateTime) Date and Time when the document was created.
  • UserName (System.String) Name of the user who created the document.

See Also