Hi All,
I would like to create Index column in my datatable.
and value should be like : 0,1,2,3,4.
Can anybody help me how to do it.
I have assigned one variable "indexvar = 0 and then Indexvar = Indexvar+1 but its returning me all 1 .
Hi All,
I would like to create Index column in my datatable.
and value should be like : 0,1,2,3,4.
Can anybody help me how to do it.
I have assigned one variable "indexvar = 0 and then Indexvar = Indexvar+1 but its returning me all 1 .
Using For each row of datatable properties we can create index variable that will starts from zero!
Regards
As I have mentioned I have created variable “Indexvar=0” under For each data row and assigned again this "Indexvar = Indexvar+1.
But its returning all cell value = 1.
Create a index variable in For each row properties and use the variable as your index
Refer to screen shot below!
Regards
Hi ,
Are you asking this.
If You create a index variable in the properties of the for each row it will iterate automatically as per the datatable index and its starts from zero!
Regards
Hi ,
please refer attachment below,
Demo_index.zip (9.0 KB)
Regard,
Some error showing.
Be sure the scope of your indexvar is wide enough. If is set to the body sequence of your do-while loop, it is reinitialized each cycle. (So reset to 0 which then adds 1 again)
If the scope is at least the do-while loop or wider, your increment will continue to 0,1,2,3 etc…
Why I am getting this error.
Hi,
Use row(“index”)
Hi,
please find below screen shorts.
source data as TestingData.xlsx
Source Code…
After executing process…
Regards,
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.