# 输入结果的登录

<div align="left"><figure><img src="/files/ejBZZeDrq5sOKCU38C1E" alt=""><figcaption></figcaption></figure></div>

下面描述中使用的图片是PostgreSQL协作的图片。 \
其他数据库协作具有相同的画面结构。

## 功能概要

* **输入结果的登录**是将i-Reporter协作到数据库。

<table><thead><tr><th width="225">协作方向</th><th width="214.33333333333331">功能说明</th><th>执行时间</th></tr></thead><tbody><tr><td>数据库→i-Reporter协作</td><td>根据数据库数据自动制作i-Reporter报表。</td><td>从外部系统调用i-Repo Link的映射设置生成的API（Webhook）。</td></tr></tbody></table>

## 映射设置的步骤

按照下面的步骤设置映射。

### 1. 选择数据库协作模式

* 通过点击**输入结果的登录**菜单来新添加映射。

<figure><img src="/files/QfB2YZhCTuhHPYP83c7T" alt=""><figcaption></figcaption></figure>

### 2. 设置映射编码/映射名称

* 设置**映射编码**和**映射名称**。
* 映射编码是**唯一标识 i-Repo Link 环境中所有映射配置的密钥**。

<figure><img src="/files/15fVNxlgtePBFAa0hyZv" alt=""><figcaption></figcaption></figure>

### 3. 选择i-Reporter报表定义作为协作源

<figure><img src="/files/EUIM2fmQIpCt6FKj1eVz" alt=""><figcaption></figcaption></figure>

### 4. 选择要协作的数据源和表/视图&#x20;

* 选择数据库**数据源**和**表**作为协作目标。
* 选择一个表，并单击网格中字段列标题部分的图标。
* PostgreSQL最多可以指定8个表，Oracle最多可以指定3个表，但是不能为一个数据库指定不同的表。 **所有指定的表都在一个事务中处理。**

<figure><img src="/files/AhiLbPaWFjLs0Oe9HwUa" alt=""><figcaption></figcaption></figure>

* 请参考下面的页面来添加和配置数据源。

{% content-ref url="/pages/Mr8iIh9WBLvgsGDHpX6I" %}
[数据源](/i-repo-link-manual/chinese/system/2/1.md)
{% endcontent-ref %}

### 5. 映射i-Reporter报表定义的功能区和数据库字段

* 界面左侧显示i-Reporter的报表定义信息，右侧显示数据库信息。
* 如果数据库中的字段是浅灰色的，则表示不能协作的字段。
* 如果不能映射，则返回错误提示。
* 可以映射i-Reporter报表定义的功能区、表和备注。\
  可以在屏幕左侧，在功能区、表和备注之间切换。

<figure><img src="/files/WX9OnRe7EqxwmbQIY8UP" alt=""><figcaption></figcaption></figure>

协作目标数据库信息网格项描述

<table><thead><tr><th width="284">项目</th><th>说明</th></tr></thead><tbody><tr><td>映射</td><td>显示映射的i-Reporter报表定义的功能区。</td></tr><tr><td>字段</td><td>显示协作目标数据库中的字段。</td></tr><tr><td>固定值</td><td><p>在映射了一个可以在i-Reporter报表定义信息备注中选择的固定值时使用。 </p><p>输入需要设置的固定值。</p></td></tr><tr><td>必须项</td><td><p>在映射了一个i-Reporter报表定义信息的表的时候使用。 </p><p>将所需字段作为有效的协作对象的记录。</p></td></tr><tr><td>字段类型</td><td><p>显式指定协作目标的字段类型。 </p><p>将格式转换为指定的类型。</p><p></p><p>※目前可以指定日期类型。 如果可以识别为日期，则转换为YYYYMMDD格式。（如果不能转换，设置为0。）</p></td></tr></tbody></table>

* 有关可以映射的字段和功能区的组合，请参考以下页面。

{% content-ref url="/pages/mMzeI1y9tZxAQ6Y8IOEk" %}
[PostgreSQL与i-Reporter协作项映射表](/i-repo-link-manual/chinese/shu-ju-yuan-xie-zuo-suo-you-shu-ju-ku-gong-tong/gong-tong/postgresql-yu-ireporter-xie-zuo-xiang-ying-she-biao.md)
{% endcontent-ref %}

{% content-ref url="/pages/CXbUQjSVzaCpFKwJ5XjC" %}
[Oracle与i-Reporter协作项映射表](/i-repo-link-manual/chinese/shu-ju-yuan-xie-zuo-suo-you-shu-ju-ku-gong-tong/gong-tong/oracle-yu-ireporter-xie-zuo-xiang-ying-she-biao.md)
{% endcontent-ref %}

### 6. 设置Webhook URL

i-Reporter设置的Webhook URL

* 在i-Reporter Webhook通知中设置i-Reporter设置的Webhook URL。
* 显示从i-Reporter到i-Repo Link的Webhook通知所使用的URL。 \
  通过i-Repo Link向数据库添加记录。
* 可以在i-Reporter Webhook通知设置中使用编辑保存通知，完成通知，更改通知等。 \
  请在指定的报表定义中设置使用的Webhook通知。
* 请参考以下页面了解i-Reporter Webhook通知设置。

{% content-ref url="/pages/yr3Dpb5eC5N0GTxKzFq5" %}
[i-Reporter的Webhook通知设置](/i-repo-link-manual/chinese/kintone/1/3.md)
{% endcontent-ref %}


---

# Agent Instructions: 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:

```
GET https://cimtops.gitbook.io/i-repo-link-manual/chinese/cai-dan/shu-ru-jie-guo-de-deng-lu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
