Data table => “Amount” column is String so how can i change String to integer data type and Need to Filter the amount. Please can you tell me with out BalaReva Excel Activities.
Gokul001
(Gokul Balaji)
September 19, 2022, 1:46pm
2
Hi @sankar.mayilsamy
Welcome to UiPath community
Have a look on the thread
Hi
Hoping someone can help me with this please?
I have the following datatable - Search Results DT.
This has pulled through where all columns are string. I need column “Days_Open__c” to be an integer so I can use the filter datatable activity.
I can’t seem to make sense of anything I have read in the forum for this issue but it has been asked a few times.
Does someone have a quick fix that will mean I don’t have to create a new datatable?
Use Filter Data Table activity filter the Amount
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...
Regards
Gokul
postwick
(Paul Ostwick)
September 19, 2022, 1:47pm
3
Create a new integer column. For Each Row in Datatable to loop through the data and assign the new column to the converted int value of the original column:
CInt(CurrentRow(“originalcolumnname”).ToString)
You don’t need Balareva. These are all simple operations that are done with basic UiPath activities.
2 Likes
postwick:
loop through the data
Thanks, I will try this method
Gokul001
(Gokul Balaji)
September 19, 2022, 2:00pm
5
Hi @sankar.mayilsamy
How about this expression?
(From d In DtBuild.AsEnumerable
Where CInt(d(1).toString.Trim)>=70
Select d).CopyToDataTable
Note → Need to give the Filter amount value instead of 70 in the expression
Check out the XAML file
ConertStringToInt.xaml (8.1 KB)
Regards
Gokul
Regards
Gokul
Gokul001
(Gokul Balaji)
September 19, 2022, 3:21pm
7
Have you tried with the XAML file. @sankar.mayilsamy
Have you got you required output?
Regards
Gokul
Hi Gokul,
I will try it tomorrow and let you know.
Regards,
Sankar M
balupad14
(Balamurugan (BalaReva))
September 19, 2022, 3:56pm
9
Hi @sankar.mayilsamy
Welcome to UiPath Community !
Hi ,
I have uploaded a package called “Easy DataTable Activities” in UiPath Marketplace. The package contains the below activities.
Change Column Data Type - Change the datatype for DataTable by having the option to multiple columns
Dictionary To DataTable - Convert the dictionary to DataTable
Show DataTable - This activity helps to see the DataTable value and column information. Mainly this is testing DataTable value in the development stage.
Here is the video explanation for the p…
Regards
Balamurugan.S
It is Working fine now, Thanks
Gokul001
(Gokul Balaji)
September 20, 2022, 4:36am
11
Great @sankar.mayilsamy
Kindly close this topic by mark as solved
Forum FAQ - How to mark a post as a solution
This document is part of our beginners guide .
This article will teach you how to properly mark a post as a solution.
We were closely following our last UiPath Forum feedback round! topic and carefully extracted all the bits of feedback that was provided. As such, we would like to tackle the topic of solutions on our Forum and how to properly use them.
When is the topic resolved?
The topic can be considered resolved when the topic author has found…
Regards
Gokul
system
(system)
Closed
September 23, 2022, 4:37am
12
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.