Hello,
I want to do a copy of a column from a specefic datatable to another
how to procede!?
Hello,
I want to do a copy of a column from a specefic datatable to another
how to procede!?
Buddy @abdel
Great
Kindly follow the below steps that could resolve your issue ,
open the excel with excel application scope
Read the file with read range activity and assign the output to a variable of type datatable
use a for each row loop to iterate through this datatable
inside the for each row loop use an assign activity with left side a variable of type system.data.datacolumn, named out_column and right side like
out_column = row(“the columnname you want to take”)
or
out_column = row(columnindex)
once you got the data column now use add datacolumn activity
there mention the input for
datatable = new datatable you have
column = out_column (the data column we have)…NOTE not in column name, its column
Thats all buddy you are all done…
Hope this would help you
Cheers…!
but it will add a column to the new datatable, i want to replace old colum values
No worries buddy @abdel , in the same process as mentioned earlier after step 3
Thats all buddy you are done
Cheers…!
Did that work buddy…
@abdel