I want to select text which is having both the words text DD and Rejected.
I am having text
- 0SEP DD CDTR REJECTED?20
-
00SEP DD CDTR CORE 20
3)SE Rejected Ba
How to select this using dt.select(“text Like pattern”).
help me with this pattern.
I want to select text which is having both the words text DD and Rejected.
I am having text
dtFiltered = DT.Select( “text like ‘%DD%’ AND text like ‘%Rejected%’”)
Hi @Jesi
Try below codes
It will return datarow[]
→ datarow array.
Filteredrow= DT.Select("text like '%DD%' AND text like '%Rejected%'")
Below code will return as datatable.
Filtereddatatable = DT.Select("text like '%DD%' AND text like '%Rejected%'").CopyToDataTable()
Regards,
Arivu
can you please share a sample workflow?
Do i need to import any library or packages?
I’m getting error like - cannot find column [text]
HI @Akhil,
“text” is column name of the data table.
and “DD” is value of the column
In your data table doesn’t have text column, that’s why thrown exception.
Main (6).xaml (9.0 KB)
Regards,
Arivu
can we select particular row if column is empty using dt.select(“column Like pattern ”)
help me with this pattern
When I use dt.Select(“[ColumnName] LIKE ‘%String%’”) I met the error is: Can’t use LIKE operator to System.Double and System.String.
How can I fix them?
Helpme please!