Public Function LoadBaseTree(ByVal ds As DataSet) As Boolean
Dim result As Boolean = False
Dim tempDs As DataSet = ds
If BaseTreeLoaded = False Then
If ShowProductNotInElement = True Then
'implement function to append product not in element
tempDs = mergeTables(ds)
End If
result = MyBase.ApplySelectionCriteriaData(tempDs, Me.Name, GroupTableName, ItemTableName, GroupItemTableName, MyBase.ValidatorItemTableName, MyBase.ValidatorItemDataTableName, True, True, True, True)
If result = True Then
_baseTreeLoaded = True
End If
Else
ClearSelections()
result = True
End If
Return result
End Function
'Your Codes
'.
'.
'.
Dim result() As DataRow = dtTable.Select("GROUP_CODE <> 'PA.43.948'")
Dim FunctionResualt As Boolean = False
If result IsNot Nothing Then
FunctionResualt = True
Else
FunctionResualt = False
End If
Return FunctionResualt
End Function
Dim testDs As DataSet = New DataSet()
testDs.Merge(ds.Tables("p_pay_cmp_cursor"))
testDs.Merge(ds.Tables("p_pay_cmp_pln_cursor"))
testDs.Merge(ds.Tables("p_currency_cursor"))
testDs.Merge(ds.Tables("p_tree_categories").Select("SCR_DPY_SEQ <> '20116000'"))
testDs.Merge(ds.Tables("p_tree_data"))
testDs.Merge(ds.Tables("p_prod_override_cursor"))
testDs.Merge(ds.Tables("p_tree_val_item"))
testDs.Merge(ds.Tables("p_tree_val_item_data"))
testDs.Merge(ds.Tables("p_bonus_cat_cursor"))
testDs.Merge(ds.Tables("p_bonus_item_cursor"))
testDs.Merge(ds.Tables("p_managed_results"))
testDs.Merge(ds.Tables("p_tree_group_categories"))
testDs.Merge(ds.Tables("p_component_type_cursor"))
testDs.Merge(ds.Tables("p_ref_data_cursor"))
testDs.Merge(ds.Tables("p_meas_typ_cursor"))
testDs.Merge(ds.Tables("p_measurement_period_cursor"))
testDs.Merge(ds.Tables("p_cap_typ_cursor"))
testDs.Merge(ds.Tables("p_pay_calc_mth_cursor"))
testDs.Merge(ds.Tables("p_calc_typ_cursor"))
testDs.Merge(ds.Tables("p_pay_freq_cursor"))
testDs.Merge(ds.Tables("p_payout_typ_cursor"))
testDs.Merge(ds.Tables("p_perf_source_cursor"))
testDs.Merge(ds.Tables("p_custom_type_cursor"))
I am expecting the tempDS to be populated with filtered row of records and return in the function.
Is it possible to achieve in this syntax ??