ESRI.ArcGIS.ADF.Web.UI.WebControls
CreateTaskResultNode Method
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > TaskResults Class : CreateTaskResultNode Method




task
Instance of the task that generated the DataSet.
taskJobID
Unique ID for the task. Identifies the task results within the TaskResults nodes.
taskInputs
Inputs used to generate the task results in the task, and that may be used to re-run the task via the results context menu.
ds
DataSet with results to display in the TaskResults.
groupResultsByTable
If true (the default), displays individual features under separate nodes for each table. If false, hides table nodes and displays all features directly under the main task results node.
showFieldAttributes
If true (the default), displays attributes from the data tables under nodes for each feature. If false, displays only the nodes for features.
Creates a new TaskResultNode from an input DataSet and related information.

Syntax

Visual Basic (Declaration) 
Public Function CreateTaskResultNode( _
   ByVal task As ITask, _
   ByVal taskJobID As String, _
   ByVal taskInputs As Object, _
   ByVal ds As DataSet, _
   ByVal groupResultsByTable As Boolean, _
   ByVal showFieldAttributes As Boolean _
) As TaskResultNode
Visual Basic (Usage)Copy Code
Dim instance As TaskResults
Dim task As ITask
Dim taskJobID As String
Dim taskInputs As Object
Dim ds As DataSet
Dim groupResultsByTable As Boolean
Dim showFieldAttributes As Boolean
Dim value As TaskResultNode
 
value = instance.CreateTaskResultNode(task, taskJobID, taskInputs, ds, groupResultsByTable, showFieldAttributes)
C# 
public TaskResultNode CreateTaskResultNode( 
   ITask task,
   string taskJobID,
   object taskInputs,
   DataSet ds,
   bool groupResultsByTable,
   bool showFieldAttributes
)

Parameters

task
Instance of the task that generated the DataSet.
taskJobID
Unique ID for the task. Identifies the task results within the TaskResults nodes.
taskInputs
Inputs used to generate the task results in the task, and that may be used to re-run the task via the results context menu.
ds
DataSet with results to display in the TaskResults.
groupResultsByTable
If true (the default), displays individual features under separate nodes for each table. If false, hides table nodes and displays all features directly under the main task results node.
showFieldAttributes
If true (the default), displays attributes from the data tables under nodes for each feature. If false, displays only the nodes for features.

Return Value

TaskResultNode that is added to the TaskResults control.

Remarks

This method is used internally by the TaskResults control to display results when a task outputs to its TaskResultsContainers.

See Also

© 2010 All Rights Reserved.