> For the complete documentation index, see [llms.txt](https://docs-embed.anyflow.jp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-embed.anyflow.jp/wizard-editor/widget/csv-header.md).

# CSV項目（ヘッダーのみ）

CSV項目のウィジェットには、CSV項目定義 と CSV項目選択 が存在します。

これらは基本的にセットで利用します。

## CSV項目定義

CSV項目選択ウィジェットは、エンドユーザーがCSVの項目（ヘッダー）を定義するためのウィジェットです。\
本ウィジェットは、エンドユーザー変数の型がStringの際に利用できます。

{% hint style="success" %}

### ヒント

本ウィジェットは、CSVのヘッダーのみが読み込まれます。\
CSVの中身を読み込む場合は [CSVウィジェット](/wizard-editor/widget/csv.md) をご利用ください。
{% endhint %}

<figure><img src="https://files.readme.io/ee85e3c-Screen_Shot_2023-03-22_at_6.08.24_PM.png" alt="" width="563"><figcaption></figcaption></figure>

エンドユーザーがCSVを選択すると、以下のようなUIに変化します。

<figure><img src="https://files.readme.io/866e6cf-Screen_Shot_2023-03-22_at_6.17.13_PM.png" alt="602" width="375"><figcaption><p>CSVを選択し、ヘッダーを読み込ませた例</p></figcaption></figure>

ソリューション内ではエンドユーザー変数にCSVのヘッダーがテキストで展開されます。

<figure><img src="https://files.readme.io/0326b59-Screen_Shot_2023-03-22_at_6.19.21_PM.png" alt="442" width="375"><figcaption><p>ソリューションエディターの変数ウィンドウ</p></figcaption></figure>

## CSV項目選択

CSV項目選択ウィジェットは、エンドユーザーがCSV項目定義した項目を選択することが可能なウィジェットです。

CSV項目選択ウィジェットは、CSV項目定義ウィジェットとセットで利用します。\
スクリーンに配置済みのCSV項目定義を設定することで、エンドユーザーが項目を選択することが可能です。

<figure><img src="https://files.readme.io/3e64794-Screen_Shot_2023-03-22_at_6.11.55_PM.png" alt="" width="563"><figcaption></figcaption></figure>

実際のエンドユーザーの利用画面は以下の通りです。\
エンドユーザーが定義したCSVの項目の一覧を選択できることが確認できます。

<figure><img src="https://files.readme.io/2781f7f-Screen_Shot_2023-03-22_at_6.21.44_PM.png" alt="563" width="375"><figcaption><p>定義したヘッダーを選択する様子</p></figcaption></figure>

エンドユーザーがCSVの項目を選択すると、ソリューション内では選択した項目のインデックス番号が展開されます。\
CSVの項目で `請求No,請求終了日,請求書宛コード...` が展開されており、エンドユーザーがCSV項目選択ウィジェットで `請求No` を選択したため、`0` が展開されています。

<figure><img src="https://files.readme.io/71eaddd-Screen_Shot_2023-03-22_at_6.23.10_PM.png" alt="" width="375"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs-embed.anyflow.jp/wizard-editor/widget/csv-header.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
