読み込んだCSVをフォーム上に表示させたい

流れとしては

1.csvファイルを読み込む
2.1で読み込んだデータテーブルをフォームアクティビティで表示
3.可能であれば表示されたデータテーブルの中から1件選択
4.3で選択されたデータテーブルのみ処理を行う

という処理を行いたいのですが実現可能でしょうか?
フォームへ入力された情報をデータテーブルで渡す は可能そうだと
分かったのですがその逆ができるのか知りたいです。
よろしくお願いいたします。

@a_sn

This can be possible as per my knowledge,

  1. read your CSV file
  2. take any one column as reference
  3. use input dialogue box activity
  4. pass that one column values in that input dialogue box
  5. then user can select which data he wants
  6. after selecting continue your process

Happy Automation!!

こんにちは

例えばDataGridを使えばよいかと思います。

引数の方向をIN/OUTにしておけば変更が反映されます。

Hey @a_sn San
Here’s a basic example of how the workflow might look:

  1. Read CSVdtCSV = Read CSV("path_to_file.csv")
  2. Convert DataTable to List of Dictionaries.
  • listOfDictionaries = (From row In dtCSV.AsEnumerable() Select dict = dtCSV.Columns.Cast(Of DataColumn)().ToDictionary(Function(col) col.ColumnName, Function(col) row(col)))
  1. Create Form → Pass listOfDictionaries as the data source.
  2. Form Submission → User selects a row from the form.
  3. Retrieve Selected Row → Use the selected index or key to retrieve the row from dtCSV.


ご回答ありがとうございます。
確認したところ、似たように作成行えそうでしたが
列の追加方法が不明でしたのでもしご存じでしたらお力添えいただきたいです…

こんにちは

フォーム投入前にDataTableにboolean型の列を追加しておけば良いかと思います。
どのみち出力された結果が必要になりますので。