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

Gets all the tasks based on the given criteria

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

Syntax

C#
public TaskInfo[] GetTasks(
	BusinessConstants..::.TaskFilter tf,
	GroupSelection gsel,
	BusinessConstants..::.ObjectType oType,
	int objectId,
	bool showMyTask,
	bool showMyAssigned,
	bool showNoRead,
	bool showPrivateForGroups,
	int limitRows,
	ConfigureInfo session
)
Visual Basic (Declaration)
Public Function GetTasks ( _
	tf As BusinessConstants..::.TaskFilter, _
	gsel As GroupSelection, _
	oType As BusinessConstants..::.ObjectType, _
	objectId As Integer, _
	showMyTask As Boolean, _
	showMyAssigned As Boolean, _
	showNoRead As Boolean, _
	showPrivateForGroups As Boolean, _
	limitRows As Integer, _
	session As ConfigureInfo _
) As TaskInfo()
Visual C++
public:
array<TaskInfo^>^ GetTasks(
	BusinessConstants..::.TaskFilter tf, 
	GroupSelection gsel, 
	BusinessConstants..::.ObjectType oType, 
	int objectId, 
	bool showMyTask, 
	bool showMyAssigned, 
	bool showNoRead, 
	bool showPrivateForGroups, 
	int limitRows, 
	ConfigureInfo^ session
)

Parameters

tf
Type: OfficeClip.BusinessLayer..::.BusinessConstants..::.TaskFilter
The task filter selected by the user
gsel
Type: OfficeClip.Utils..::.GroupSelection
The group section criteria, determines whether all groups, this group or only private tasks are to be shown. Note that the private tasks are always shown (also see the showPrivateFor Groups parameter below on how to limit this)
oType
Type: OfficeClip.BusinessLayer..::.BusinessConstants..::.ObjectType
The type of the parent object for which the task is required to be shown. A value of None will imply ignoring any parent.
objectId
Type: System..::.Int32
The id of the parent object for which the tasks are required to be shown, a value of -1 indicates ignore all parents.
showMyTask
Type: System..::.Boolean
if true shows only the task that the current logged in user is the owner.
showMyAssigned
Type: System..::.Boolean
Filter for showing the tasks assigned to me
showNoRead
Type: System..::.Boolean
Do not return the tasks that has no read privilege
showPrivateForGroups
Type: System..::.Boolean
if true shows the private tasks when the group tasks are requested
limitRows
Type: System..::.Int32
Limits the number of rows from the database. This is helpful when the tasks are shown in the portlet and speed is the consideration.
session
Type: OfficeClip.Utils..::.ConfigureInfo
The user session

Return Value

null if failed, objects if successful

See Also