Hi,
I have a datatable having 5 columns and multiple rows ,i need to merge all the rows from 3 Rd column ,one after the other.and also need the description after every cell.
Ex:
Row1
Issue statement: cell value
Issue summary: cellvalue
Row2
Issue statement: cell value
Issue summary: cellvalue
How can we do this using linq query?
ppr
(Peter Preuss)
October 6, 2023, 8:14am
2
can you illustrate your case with some sample data? Thanks
Consider above image is an example
In this example I want the output to be merged as below
Str=
Issue id: b,summary:c,description:de,Party:e
Issue id: f,summary:g,description:h,Party:i
ppr
(Peter Preuss)
October 6, 2023, 8:50am
4
have a look at these samples as a starter help:
We can adapt and also bring it within a Query Syntax
Can you send me the query
ppr
(Peter Preuss)
October 6, 2023, 9:04am
6
Also have a look at this sample, done via a JSON Serialization:
Kindly note: Immediate Panel is decorating in some scenarios a " e.g. with “”
ppr
(Peter Preuss)
October 6, 2023, 9:05am
7
dtData.AsEnumerable.Select(Function (x) String.Join(",", arrColSet.select(Function (c) c &":" & x(c).ToString().Trim))).Aggregate(Function (x,y) x & vbCrLF & y )
JsonConvert.SerializeObject(dtData.DefaultView.ToTable(false, {"Column2","Column3"}), Newtonsoft.Json.Formatting.Indented)
Can you send me the xaml file
ppr
(Peter Preuss)
October 6, 2023, 9:17am
9
was done within the immediate panel
Understanding the 6 Debugging Panels of UiPath in the easiest way possible! - News / Tutorials - UiPath Community Forum
we would move it to an assign acticity
arrColSet = new String{“Col1”,…}
strFlatten = THE_LINQ_CODE