Display DataTable - Apps Studio Web

Is it possible to display a DataTable object (each row of it) in Apps Studio Web?
I tried using the Table control, but it only accepts this object type:
Apps.Controls.ListSource(Of Apps.Controls.TabularInitClass),
which I don’t understand. Studio Web - Table

If someone has already figured this out, I’d appreciate your help.

Hi @simon.l,

Use can Create Entity Record in studio and then in apps give Data source bind the tables.

Or else you can create Dictionary variable

Use For Each Row in DataTable

rowDict : Dictionary<String, Object>

Assign:
rowDict(“CandidateName”) = row(“CandidateName”).ToString
rowDict(“MatchPercentage”) = row(“MatchPercentage”)

Add to list: resultList.Add(rowDict)

After loop: out_ResultList = resultList

In Apps → Data

Create variable: resultsList Type: List

Bind Process output: out_ResultList → resultsList

1 Like

Hi @simon.l

You can’t bind a UiPath DataTable directly to an Apps Studio Web Table. Apps uses ListSource / collections, not DataTables.

Convert the DataTable to a List of Objects (collection) in the process (or via an Apps integration), then bind that list to the Table control. Each column in the table maps to a property of the object.

1 Like

@simon.l

You can use DatatableVariable.ToListSource

this converts

cheers

1 Like

Hello Anil, that worked for me thank you.
Then on Table Column :

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.