「インタラクションAPI」の版間の差分

提供: Eospedia
移動: 案内検索
行3: 行3:
 
== 操作一覧 ==
 
== 操作一覧 ==
 
=== 終了通知操作 ===
 
=== 終了通知操作 ===
pione-action=finishでインタラクティブ操作画面を終了します。メインに処理を返すときに必ず通知する必要があります。<br>
+
インタラクティブ操作画面を終了します。メインに処理を返すときに必ず通知する必要があります。<br>
 +
<table border="1">
 +
<tr>
 +
<th>パラメータ名</th>
 +
<th>区分</th>
 +
<th>値</th>
 +
<th>説明</th>
 +
</tr>
 +
<tr>
 +
<td>pione-action</td>
 +
<td>必須</td>
 +
<td>finish</td>
 +
<td>終了通知</td>
 +
</tr>
 +
</table>  
 
<br>
 
<br>
  
 
=== ファイル取得操作 ===
 
=== ファイル取得操作 ===
pione-action=get<br>
+
<table border="1">
 +
<tr>
 +
<th>パラメータ名</th>
 +
<th>区分</th>
 +
<th>値</th>
 +
<th>説明</th>
 +
</tr>
 +
<tr>
 +
<td>pione-action</td>
 +
<td>必須</td>
 +
<td>get</td>
 +
<td>ファイル取得</td>
 +
</tr>
 +
</table>  
 
<br>
 
<br>
  
 
=== ファイル作成操作 ===
 
=== ファイル作成操作 ===
pione-action=create<br>
+
<table border="1">
 +
<tr>
 +
<th>パラメータ名</th>
 +
<th>区分</th>
 +
<th>値</th>
 +
<th>説明</th>
 +
</tr>
 +
<tr>
 +
<td>pione-action</td>
 +
<td>必須</td>
 +
<td>create</td>
 +
<td>ファイル作成</td>
 +
</tr>
 +
</table>  
 
<br>
 
<br>
  
 
=== ファイル削除操作 ===
 
=== ファイル削除操作 ===
pione-action=delete<br>
+
<table border="1">
 +
<tr>
 +
<th>パラメータ名</th>
 +
<th>区分</th>
 +
<th>値</th>
 +
<th>説明</th>
 +
</tr>
 +
<tr>
 +
<td>pione-action</td>
 +
<td>必須</td>
 +
<td>delete</td>
 +
<td>ファイル削除</td>
 +
</tr>
 +
</table>  
 
<br>
 
<br>
  
 
=== ファイル一覧操作 ===
 
=== ファイル一覧操作 ===
pione-action=list<br>
+
<table border="1">
 +
<tr>
 +
<th>パラメータ名</th>
 +
<th>区分</th>
 +
<th>値</th>
 +
<th>説明</th>
 +
</tr>
 +
<tr>
 +
<td>pione-action</td>
 +
<td>必須</td>
 +
<td>list</td>
 +
<td>ファイルリスト</td>
 +
</tr>
 +
</table>  
 
<br>
 
<br>
  
行40: 行106:
  
 
<pre>
 
<pre>
 
+
<form action="./AAA.txt" method="post" enctype="multipart/form-data">
 +
<input type="hidden" name="pione-action" value="create"/>
 +
<button type="submit">作成(テキスト)</button>
 +
<input type="text" name="pione-content" value=""/>
 +
</form>
 
</pre>
 
</pre>
 
<br>
 
<br>

2014年12月12日 (金) 08:29時点における版

インタラクションAPI とはPIONE(主にPIONE Webclient)においてインタラクティブ操作によるコマンドを実現するためにワーキングディレクトリとの通信を行うための操作です。インタラクティブ操作含むコマンドを作成する場合はこれらの操作を.htmlや.cgiファイルなどに記述する必要があります。

操作一覧

終了通知操作

インタラクティブ操作画面を終了します。メインに処理を返すときに必ず通知する必要があります。

パラメータ名 区分 説明
pione-action 必須 finish 終了通知


ファイル取得操作

パラメータ名 区分 説明
pione-action 必須 get ファイル取得


ファイル作成操作

パラメータ名 区分 説明
pione-action 必須 create ファイル作成


ファイル削除操作

パラメータ名 区分 説明
pione-action 必須 delete ファイル削除


ファイル一覧操作

パラメータ名 区分 説明
pione-action 必須 list ファイルリスト


HTMLl文書による操作の記述方法

.htmlまたは.cgiにてこれらの操作を実行するためには下記のような記述を用います。

a hrefの記述例

a hrefを用いる場合は?pione-action=操作名へリンクするようにします。

<a href="?pione-action=finish">終了</a>


form actionの記述例

form actionタグ内にてpione-actionの値を定義して、ボタン操作によってsubmitすると操作命令を送信することができます。この場合はfileなどの値も合わせて送信できるので、ファイル操作のときにはこちらを用います。

		<form action="./AAA.txt" method="post" enctype="multipart/form-data">
			<input type="hidden" name="pione-action" value="create"/>
			<button type="submit">作成(テキスト)</button>
			<input type="text" name="pione-content" value=""/>
		</form>