Hi,
I want to use the reframework for datatable project. How to reuse the reframework for datatable.
Let me know please provide the template
Regards
Sai
Hi,
I want to use the reframework for datatable project. How to reuse the reframework for datatable.
Let me know please provide the template
Regards
Sai
Hi Sai.
ReFramework is a pre-built solution template in UiPath Studio that can be used as a starting point for building your automation projects. To reuse the ReFramework for a data-table project, you can follow these steps:
Note: The above steps are a basic outline and may need to be adapted based on the specific requirements of your project.
Here’s an example of a ReFramework template in UiPath Studio for a data-table project:
`Imports System
Imports System.Data
Imports UiPath.Core.Activities.Data
Imports UiPath.Core.Activities
Public Class Main
Inherits Sequence
Private ReadOnly _getTransactionData As New GetDataTable
Protected Overrides Function Execute(ByVal context As CodeActivityContext) As Object
_getTransactionData.DataTable = GetData()
For Each row As DataRow In _getTransactionData.DataTable.Rows
' Add your custom logic to process each row of data
Next
Return Nothing
End Function
Private Function GetData() As DataTable
' Your code to retrieve data from the data source and return it as a DataTable
Return Nothing
End Function
End Class
`
This template includes the ReFramework’s “GetDataTable” activity to retrieve data from a data source, and a “For Each” loop to process each row of data in the data table. You’ll need to customize the GetData
function to read your data from the data source and return it as a DataTable. You’ll also need to add your custom logic within the For Each
loop to process each row of data.
Regards
Milos Panic
Hi,
Can u come up with xaml file
Hi Sai.
This can help.
<Sequence DisplayName="Main" xmlns="http://schemas.uipath.com/workflow/activities">
<Sequence.Variables>
<Variable x:TypeArguments="data:DataTable" Name="dtTransactionData" />
</Sequence.Variables>
<GetDataTable DisplayName="Get Transaction Data"
DataTable="[dtTransactionData]" />
<ForEach DisplayName="For Each Transaction"
x:TypeArguments="data:DataRow"
Items="[dtTransactionData.Rows]">
<!-- Add your custom logic to process each row of data -->
</ForEach>
</Sequence>
This template includes the ReFramework’s GetDataTable
activity to retrieve data from a data source, and a For Each
loop to process each row of data in the data table. You’ll need to customize the GetDataTable
activity to read your data from the data source and return it as a DataTable. You’ll also need to add your custom logic within the For Each
loop to process each row of data.
PFA the template
So basically we use io_Transactiondata for storing the datatble and then change transactionitem to Datarow…And remove any queue related details from the set transaction xaml.And Get transactiondata is modified to send out datarow instead of Queueitem
NotUsingQueue.zip (946.1 KB)
Hope this helps
Cheers
@Sai.Srinivas , did you checked this? ReFramework for Tabular Data - RPA Component | UiPath Marketplace and this Robotic Enterprise Framework (the template in studio provides doc and eg)
Regards,
Balram
Sir,if i have to run the whole framework with a data table as a source,what kind of customization i have to do and where?
You can use the below template for re framework using excel
ExcelREFramework.1.0.2.nupkg (967.7 KB)
ExcelREFramework.zip (956.0 KB)
here is the latest RE Frame work with datatable