inter-mediator 5.1の新機能

17
INTER-Mediator 5.1の新機能 2015/6/8 INTER-Mediator勉強会2015-#4発表資料 松尾 篤(株式会社エミック)

Upload: atsushi-matsuo

Post on 06-Aug-2015

580 views

Category:

Technology


3 download

TRANSCRIPT

Page 1: INTER-Mediator 5.1の新機能

INTER-Mediator 5.1の新機能

2015/6/8INTER-Mediator勉強会2015-#4発表資料松尾 篤(株式会社エミック)

Page 2: INTER-Mediator 5.1の新機能

• FileMaker Serverでオブジェクトフィールドへのファイルのアップロードに対応

• FileMaker Server 13 or 14が必要

INTER-Mediator 5.1

Page 3: INTER-Mediator 5.1の新機能

INTER-Mediator 5.1

Page 4: INTER-Mediator 5.1の新機能

• ピクチャやムービー、ドキュメントファイル等を格納するためのフィールド

• 英語では“Container Field”

オブジェクトフィールド

Page 5: INTER-Mediator 5.1の新機能

Demo

Page 6: INTER-Mediator 5.1の新機能

• カスタムWebではオブジェクトフィールドの内容を変更・追加できないという記述がマニュアルにある

• ただし、Base64Decode関数を併用することで上記の制限を回避可能

FileMaker 13以降が必要

Page 7: INTER-Mediator 5.1の新機能

• 定義ファイルでの設定

• データベースファイルでの設定

• ページファイルでの記述

事前の準備

Page 8: INTER-Mediator 5.1の新機能

• 'file-upload'キーおよびその下位のキーとして'field'キーと'container'キーを指定

• 'field'キーの値はオブジェクトフィールドの名称

• 'container'キーの値はtrueに

定義ファイルでの設定

Page 9: INTER-Mediator 5.1の新機能

'file-upload' => array(

array('field' => 'vc1', 'container' => true)

),

定義ファイルでの設定

Page 10: INTER-Mediator 5.1の新機能

• データベースのフィールドオプションにおいて[入力の自動化]オプションの[計算値]にあらかじめ設定しておく必要あり

フィールドのオプション設定

Page 11: INTER-Mediator 5.1の新機能

If ( GetContainerAttribute(Self; "filename") ≠ ""; Self; Let([ fileName = GetValue(Self; 1); content = Substitute(Self; fileName & ¶; "") ]; Base64Decode(content; fileName) ))

フィールドのオプション設定

Page 12: INTER-Mediator 5.1の新機能

フィールドのオプション設定

Page 13: INTER-Mediator 5.1の新機能

<td data-im="testtable@vc1" data-im-widget="fileupload"></td>

ページファイルでの記述例

Page 14: INTER-Mediator 5.1の新機能

Mobile Safariにも対応

Page 15: INTER-Mediator 5.1の新機能

Demo

Page 16: INTER-Mediator 5.1の新機能