How to print Datatable values into textfield

Hi All

I need to save Datatable values into a string variable with appropriate spaces and newline
example :
Name M1 M2 Total
xxxx 90 90 180
YYY 100 100 100
ZZZ 98

Can anyone please let me know how do i print like that?

Hi @divya.17290

You can try with Output DataTable activity

check out the docs

Regards
Gokul

If i using Output datatable, i got follwing example
Name,Mark1,Mark2,Total
xxx,90,90,180
yyy,70,70,140

@divya.17290 Replace all comma with null
Assign str_Dt = str_Dt.Replace(“,”," ")

HI @divya.17290

After using the Output DataTable activity

Use Regex expression

System.Text.RegularExpressions.Regex.Replace(YourString,","," ")

image

Regards
Gokul