Hi all, is it possible to output the current grouped value for a log message as a string?
(From d In inputDT.AsEnumerable
Group d By k=d(“Test”).toString.Trim Into grp=Group
Select g=grp.CopyToDataTable).toList
Hi all, is it possible to output the current grouped value for a log message as a string?
(From d In inputDT.AsEnumerable
Group d By k=d(“Test”).toString.Trim Into grp=Group
Select g=grp.CopyToDataTable).toList
a quick way would be to use the output datatable activity for creating the string
Result | List(Of Datarow) =
(From d In inputDT.AsEnumerable
Group d By k=d(“Test”).toString.Trim Into grp=Group
Select g=grp.CopyToDataTable).toList
then we create quickly the data table with Result.CopyToDatatable
As alternate we can use a custom LINQ
@ppr thank you, I have tried but I get the message “Expression end expected”
What could the custom LINQ look like?
A custom LINQ could look like this:
String.Join(Environment.NewLine, Result.Select(Function (x) String.Join("|", x.ItemArray)))
can you show some screenshots of what you have done?
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.