How to read an excel sheet and put the cell value within different text fields through UiPath?
I have a excel sheet as follows:
I have read the excel contents and to iterate over the contents later I have stored the contents in a Output Data Table as follows:
Read Range - Output:
DataTable: CVdatatable
Output Data Table
DataTable: CVdatatable
Text: opCVdatatable
Screenshot:
Finally, I want to read the textopCVdatatable in a iteration and write them into text fields. So in the desired Input fileds I mentioned opCVdatatable or opCVdatatable+ "[k(enter)]" as required.
Screenshot:
But UiPath seems to start from the begining of the Output Data Table whenever I called for opCVdatatable.
Inshort, each desired Input fileds are iteratively getting filled up by all the data with the data stored in the Output Data Table.
@debanjan assuming that your text field is getting populated with the same value in the opCVdatatable.You need to use a for each statement to iterate through the datatable output and use row item to enter into your text field
@amr07 Thanks much. As per the flow, the contents of the excel sheet needs to be filled within text fields and those text fields are within a sequence:
This sequence contains a Attach Window where the several text fields are located:
Can you suggest a possible way to implement the foreach loop please?
@amr07 Thanks for the flowchart. Actually for me the challenge is to iterate through the contents (from a DataOutputTable) and fill in four text fields which are in a sequence of an Attach Window event.
@amr07 One counter question. As you did row.Item("header").ToString in your workflow, in my workflow the rows contains the desired text example 1000, 0001, etc. So what expression I use?
@amr07 Your first comment is already marked as a solution. Can you direct me to some documentation about the benefit of getting the answers accepted in this community?
Am also new to this,as far as i know it helps other forum members their quest to learn and explore,with each accepted answers and likes you would be rewarded badges…