I am trying to get my one of the column from the datatable to type into a remarks field. I use for each row, it is typing by overwriting the same line. I am trying to insert new line by inputting environment.newline but its not working. Anyone can assist me.
There is not a clear explanation on what you want to perform.
Do you want to Write all the values of the Column into a Single field in the Application ? Or Do you have many fields in the application and want to insert each value one by one into it ?
I think that you need to check if your type into activity have the empty field property enabled, you can remove then and your activity will write in the correct way
@supermanPunch i figure the error out it is .ToString is not together. The syntax work but the nextline doesn’t work. If i want to add another column together and date with lines, what is the syntax?
It was one line with the whole column. I need to add in date as well. I wan to add total 2 columns. I have shared the above example thats the outcome @supermanPunch
yourDateVarStr+Environment.NewLine+String.Join(Environment.NewLine,DT.AsEnumerable.Select(Function(x)x("Your Column Name 1").ToString+" "+x("Your Column Name 2").ToString))
Here, yourDateVarStr is the variable which contains the date value (string).
Also if the above doesn’t work, do share what was the output generated by it. We would want to confirm if it is in the format as required.