Kalle77
(D.M)
July 16, 2024, 8:47am
1
So this is what I must do:
Uses Input Dialog for typing in a name of a football player from the top 50 goalscorer list of men’s Uefa Champions League and saving it into a string variable.
opens a browser session in the following url "https://en.wikipedia.org/wiki/List_of_UEFA_Champions_League_top_scorers" and extracts the amount of goals the given player has scored in the competition
So, I have done Table Extraction and have datatable. But then I dont get to use for example each row, because it says columns are not declared. I need to do program that asks me player name with input dialog, but how I get the goals from there? I have hit my head in the wall for hours with this pls help!!
mkankatala
(Mahesh Kankatala)
July 16, 2024, 8:51am
2
Hi @Kalle77
Write the extracted to a excel file and share it with us, then we can use the LINQ Expression to compare the Input dialog box input with the Excel data then we can get the Amount of goals of the player easily.
Hope you understand!!
rlgandu
(Rajyalakshmi Gandu)
July 16, 2024, 8:53am
3
@Kalle77
Please share the excel file so that we find out how to get the goals from that datatable
ppr
(Peter Preuss)
July 16, 2024, 9:23am
4
will work as we cross-checked here:
So the basic flow is about:
Input Dialog - ask for the name
Extract DataTable
Filter DataTable
use the amount of goals from the filter result row
Once the happy path is implemented then we suggest to do some modifications like:
filter result validation
offer a list of known players to the input dialog
*…
1 Like
Kalle77
(D.M)
July 16, 2024, 10:01am
5
Thanks, this helped! But it says in filter datatable when I put to Column = Goals
It says Column type is not supported?
Kalle77
(D.M)
July 16, 2024, 10:05am
6
So its like this but it says column not supported. I have player variable in input dialog to be the value that is entered by user.
Kalle77
(D.M)
July 16, 2024, 10:13am
7
I don’t use Excel, only datatable in UiPath.
rlgandu
(Rajyalakshmi Gandu)
July 16, 2024, 10:16am
8
@Kalle77
I want excel data for reference purpose only write the datatable data to excel
ppr
(Peter Preuss)
July 16, 2024, 10:30am
9
Goals is the Columnname so it is a string you will surround it with "
do not missout also to configure the Filtered DataTable setting
Kalle77
(D.M)
July 16, 2024, 10:33am
10
I tried to extract it for excel but for some reason this doesn’t work, so I cant even do that.
Kalle77
(D.M)
July 16, 2024, 1:41pm
11
Thanks, I did not understand it needs “” !
Now I think this is almost done, but it just prints me “Data table” ? I can’t understand…
ppr
(Peter Preuss)
July 16, 2024, 3:13pm
13
Kalle77
(D.M)
July 16, 2024, 3:34pm
14
There is no answer for this. It just prints " Datatable" and it looks totally right.
Kalle77
(D.M)
July 16, 2024, 6:28pm
15
So this is where i’m at. I tried to just take the datatable without filtering with message box to test, and it gives there already “Data table” in the msg box. Why it’s not printing the data table?
ppr
(Peter Preuss)
July 16, 2024, 6:36pm
16
dataTable is a so called complex datatype and has not an out-of-the box method, which dumps out the content / values as text.
Therefore we mention to do inspections / tracing of part results with immediate panel
If mandatory is needed, that you need a text representation of the datatable then have a look at this activity:
The UiPath Documentation Portal - the home of all our valuable information. Find here everything you need to guide you in your automation journey in the UiPath ecosystem, from complex installation guides to quick tutorials, to practical business...
Kalle77
(D.M)
August 7, 2024, 9:58am
17
I did look into it, but I don’t still understand.
Kalle77
(D.M)
August 7, 2024, 9:59am
18
“To String” is not working in variable, so how I can get my datatable in the situation that I can print the text of it?
ppr
(Peter Preuss)
August 7, 2024, 10:03am
19
DataTableVar.ToString() will output the Class Name but not a string with the datatable content / column values
ppr
(Peter Preuss)
August 7, 2024, 10:06am
20
we mentioned:
and it will return a string representing the datatable and its content