Irfan_Musa
(Irfan Musa)
December 6, 2023, 2:54am
1
Hi everyone how do I type everything under this column “IMO_list”
I have create a datatable = DT_IMO
I have read the range and assign to variable = X
X = DT_IMO.Columns(0).ToString.Trim
I have a type into activity to do this.
I want it to act like a copy and paste.
Just paste the whole list.
Anil_G
(Anil Gorthi)
December 6, 2023, 3:07am
2
@Irfan_Musa
Where do you want to paste it?
if on another excel you have copy paste range activity
if on some ui then get all values at once using this below in assign activity which convert whole column to string and you can use in further activities
str = String.Join(Environment.NewLine,dt.AsEnumerable.Select(function(x) x("IMO_List").ToString))
cheers
Irfan_Musa
(Irfan Musa)
December 6, 2023, 3:17am
3
@Anil_G ,
I tried the method but it does gives me error:
Irfan_Musa
(Irfan Musa)
December 6, 2023, 3:18am
4
I will paste it in a UI, there is like a text box to input these numbers
Irfan_Musa
(Irfan Musa)
December 6, 2023, 3:33am
5
Hi @Anil_G it works, I think I had a typo and I did not assign the datatable correctly. Thank you so much for your help
1 Like
system
(system)
Closed
December 9, 2023, 3:34am
6
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.