Expected output:Chief Product Architect1,Mechatronics & Application Engg.1,Powertrain India1,Chief Product Compliance Officer1,Testing India1,Chassis Systems1…in array
condition is i have to get Team description based on condition is function
Hi @sathya_auto
Try this
filteredRows = dt.AsEnumerable().Where(Function(row) row.Field(Of String)("ColumnName").Contains("Function"))
valuesArray= filteredRows.Select(Function(row) row.Field(Of String)("ColumnName")).ToArray()
In addition to above:
arrValues | String Array =
(From d in dtData.AsEnumerable
Where d("Category").toString.ToUpper.Trim.Equals("FUNCTION")
Select v = d("Team Description").toString.Trim).toArray
As an alternate getting only the Dictinct values:
(From d in dtData.AsEnumerable
Where d("Category").toString.ToUpper.Trim.Equals("FUNCTION")
Select v = d("Team Description").toString.Trim).Distinct().toArray
in such case we can do:
- set a breakpoint at the for each Activity
- debug and get paused
- using the debugging panels for further analysis
Statements like dt - inspect the datatable, ChoosenFunctionArray…
Maybe the filtering is leading to an empty result
Keep in mind:
we gave:
thankyou got it @ppr
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.