> For the complete documentation index, see [llms.txt](https://manuals.i-reporter.jp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manuals.i-reporter.jp/create-a-form/setup-a-form/revisionhistory-management.md).

# 履歴管理（帳票定義のリビジョンアップ）

## **リビジョンアップとは**

i-Reporterでは、帳票定義や入力帳票を更新することを「リビジョンアップ」と呼びます。\
編集時に帳票定義 または 入力帳票を上書き更新するのではなく、編集前の状態を履歴として残し、編集後の状態で新しいIDの帳票定義/入力帳票を新規作成します。\
コピーとは違い、元ＩＤ、リビジョン番号によって１本の枝のように履歴管理されます。

履歴は、以下の２項目により管理します。

<table><thead><tr><th width="224">リビジョン管理項目説明</th><th>説明</th></tr></thead><tbody><tr><td>元ID</td><td>初めて作成された時の帳票定義ID 又は 入力帳票ID</td></tr><tr><td>リビジョン番号</td><td>１～の連番</td></tr></tbody></table>

同じ元IDの帳票定義/入力帳票内でリビジョン番号が最大のものを「最新」と呼びます。\
「最新」の帳票定義/入力帳票のみ、i-Repo Designer や i-Reporterアプリ にて 参照・編集 が可能です。

【例】元ID100の帳票定義の履歴

<div align="left"><figure><img src="https://3237210363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd8X0mqwp3tAAJZM8UeyH%2Fuploads%2FKaPelqrgx0ovXcHzzcRX%2Fimage.png?alt=media&amp;token=b58151b1-563c-4f85-91d8-90885eefea2d" alt="" width="563"><figcaption></figcaption></figure></div>

{% hint style="success" %}
定義IDや帳票IDは、システム内で一意の連番になります。\
複数の帳票定義や入力帳票を運用している場合、1つの帳票定義や入力帳票単位で見るとIDは必ずしも連番にはなりません。
{% endhint %}

#### **リビジョンアップのタイミング**

**帳票定義におけるリビジョンアップのタイミング**\
i-Repo Designerにて、公開ステータス「公開」の帳票定義を開き、「保存する」、「公開する」、「テストする」をクリックした時。

**入力帳票におけるリビジョンアップのタイミング**\
「入力完了」となった入力帳票をi-Repo Managerにて「編集可能」にした時。

## **帳票定義をリビジョンアップする**

i-Repo Designerにて、公開ステータス「公開」の帳票定義を開き、「保存する」、「公開する」、「テストする」のいずれかをクリックしてサーバー保存を行うと、元の帳票定義に上書き保存はせず、リビジョンアップして新規IDの帳票定義を作成します。\
この時、元の帳票定義は履歴として残ります。

### **帳票定義の履歴から最新版を作成する**

i-Repo Designerを使用して、帳票定義の履歴から最新版を作成することができます。

【手順】

1. 履歴から最新版を作成したい帳票定義を、i-Repo Designerで開きます。

2. 「帳票定義情報設定」タブ ＞ 「この定義の履歴から最新版を作成する」をクリックします。

   <div align="left"><figure><img src="https://3237210363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd8X0mqwp3tAAJZM8UeyH%2Fuploads%2F68mlETG8qZzrK8Eo7uzI%2Fimage.png?alt=media&amp;token=18d9a083-2887-4edb-8149-91ad845e3db7" alt=""><figcaption></figcaption></figure></div>

3. 画面左側の「帳票定義一覧」が、現在編集中の帳票定義の「履歴一覧」に切り替わります。\
   「履歴一覧」から、最新版として使用したいリビジョン番号の帳票定義をダブルクリックするか、選択して画面上部の「帳票定義を編集する」をクリックします。

   <figure><img src="https://3237210363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd8X0mqwp3tAAJZM8UeyH%2Fuploads%2FHb3KZxTy7Er9eKJfrJMP%2Fimage.png?alt=media&amp;token=0dc85423-8c98-48bc-98f2-af12dc3cbd5e" alt=""><figcaption></figcaption></figure>

   <div data-gb-custom-block data-tag="hint" data-style="warning" class="hint hint-warning"><p>その際、i-Repo Designerで編集していた内容は破棄され、選択したリビジョン番号の帳票定義に置き換わりますのでご注意ください。</p></div>

4. 必要に応じて編集を行った後、「保存する」、「公開する」、「テストする」のいずれかでサーバー保存を実行すると、その帳票定義が最新版になります。

## **帳票定義を作成したi-Repo Designerのバージョンチェック**

帳票定義単位で、その帳票定義を作成したi-Repo Designerのバージョンチェックが行われます。\
現在PCにインストールされているi-Repo Designerよりも新しいバージョンのi-Repo Designerからサーバー保存された帳票定義はグレーの背景で表示され、編集 および コピー することができません。\
このような帳票定義を編集する際は、帳票定義名の下に記載されている「最終更新」以降のi-Repo Designerにバージョンアップしてください。

<div align="left"><figure><img src="https://3237210363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd8X0mqwp3tAAJZM8UeyH%2Fuploads%2F8G0nksZWjftZMxLjut1o%2Fimage.png?alt=media&amp;token=ea0be6fe-32e9-4837-b438-9bdf1435a886" alt="" width="563"><figcaption></figcaption></figure></div>

また、このような帳票定義を開こうとすると、i-Repo Designerのアップデートを促す画面が表示されます。\
「はい」をクリックするとi-Repo Designerのインストールが開始されます。

<div align="left"><figure><img src="https://3237210363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd8X0mqwp3tAAJZM8UeyH%2Fuploads%2FiXwCf863N7WlaD8M8qpR%2Fimage.png?alt=media&amp;token=cc1c4986-204c-4b67-ad7c-10780c66a509" alt="" width="563"><figcaption></figcaption></figure></div>

{% hint style="warning" %}
本画面内の「はい」ボタンからバージョンアップを行う場合、ご使用中のi-Repo Managerが保持しているインストーラーを使用してi-Repo Designerのバージョンアップを実行します。

そのため、ご使用中のi-Repo Managerのバージョンによっては**バージョンアップ後のi-Repo Designerは「最新版」とはならず、メッセージに記載されたバージョン要件を満たさない場合があります**。

その際は別途サポートWEBからインストーラーをダウンロードしてi-Repo Designerのバージョンアップを行ってください。
{% endhint %}

#### **ConMas Designer 7.2.20051 までをご使用の場合**

ConMas Designer 7.2.20051 までは、ConMas Managerをアップデートすると、それに合わせてConMas Designerのバージョンも必ずアップデートする必要があります。

ConMas Designerログイン時に新しいバージョンがリリースされている場合、以下のメッセージが表示されます。\
「はい」をクリックすると、最新版のインストーラのダウンロードが始まり、完了後にConMas Designerが終了してインストーラが起動します。\
「いいえ」をクリックするとログイン画面に戻ります。別途最新版のConMas Designerに更新してください。

<div align="left"><figure><img src="https://3237210363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd8X0mqwp3tAAJZM8UeyH%2Fuploads%2F0OTqnxOFJR4f4JQ66rcW%2Fimage.png?alt=media&amp;token=a2364ea5-aa58-433c-99ae-0824041dcc25" alt="" width="563"><figcaption></figcaption></figure></div>


---

# 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://manuals.i-reporter.jp/create-a-form/setup-a-form/revisionhistory-management.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.
