OZ e-Form 開発者
  • ⭐OZ 開発者について
  • 📌 e-Formデザインチュートリアル
    • 入力コンポーネント
    • e-Form例題
    • DBからのe-Form事前入力
  • 📌レポートデザイン例
    • サンプルデータベース
    • データベースへの接続
    • データセットの作成
    • サンプルレポート
  • 📌 ガイド
    • レポジトリサーバー
    • OZ Mobileアプリ
    • HTML5ビューア
      • HTML5ビューア
      • HTML5ビューアオプション
      • CORS設定
    • ビューアのフォント使用
    • ミラーリングビューア
      • デモ
      • インストール
    • QRリンクを利用したモバイル署名
    • マルチ言語ガイド
      • デザイナでの言語設定
      • 多国語フォーム
  • 📌 サンプル
    • 動的な行の追加・削除
    • コンボボックスのフィルタリング
    • DBからのチェックボックス
    • データ更新
    • JSONデータバインド
    • 数字を文字に変換
    • 👉製品のアップデート内容
  • * 旧バージョンバックアップ
    • 概要
      • 製品のコンセプト
      • 製品の概要
      • ユースケース
    • ダウンロード
      • OZ e-Form デザイナー
      • OZサーバ
      • サンプルデータベース
    • OZビューア
      • OZビューアの埋め込み
      • OZビューアの稼働構造
      • DBからのデータバインディング
      • フォームパラメータの使用
      • InputJsonの使用
      • JSONデータサービスの使用
      • 入力データの送信
      • アプリ側でのビューア制御
    • レポートチュートリアル動画
    • OZサーバ
      • OZサーバ起動
      • e-Formのアップロード(OZサーバ)
      • 参照
    • 👉 OZ e-Formトレーニング
    • 📌クエリデザイン例
      • デザイナーレイアウト
    • OZサーバーバインディング
GitBook提供
このページ内
  • 必要条件
  • OZシンクサーバー
  • OZシンクサーバーのインストール
  • DBS (DatabaseServer)設定
  • EPG (EventPushGateway)の設定
  • OZミラーリングビューアインストール
  • ファイルのダウンロード及び配布
  • ファイル修正
  • テストインストール
  • OZ Mobileアプリの設定
  • Scripts for e-Form

役に立ちましたか?

  1. ガイド
  2. ミラーリングビューア

インストール

前へデモ次へQRリンクを利用したモバイル署名

最終更新 4 年前

役に立ちましたか?

必要条件

OZシンクサーバー

  • 同期サーバーには、サーバーにJAVA 8以降がインストールされている必要があります。

  • 受信ポート(例:14127)は、サブビューアーからのアクセスを許可するためにEPGによって使用されます。

  • データベースポート(例:8441)は、DBSがデータベースにアクセスするために使用されます。

OZシンクサーバーのインストール

  1. OZ Sync Serverはからダウンロードしてください。

  2. それをインストールフォルダー(例:OZRelayServer)に抽出します。 EPGとDBSの2つのサブフォルダーが表示されます。

DBS (DatabaseServer)設定

SQLiteデータベースは、デフォルトでインストールに含まれています。 必要に応じてOracleを使用できます。

DBSフォルダのファイル

ファイル名

説明

config/example/application.properties.SQLITE

SQLiteのサンプル

config/application.properties

設定ファイル

sync.db

DBファイル

TP_DBS.jar

実行可能ファイル

dbs_linux.sh

Linux bashのコマンドスクリプト

dbs_unix.sh

Unixのコマンドスクリプト

dbs_windows.agent.cmd

Windows (デモンモード)のコマンドスクリプト

dbs_windows.console.cmd

Windows (コンソールモード)のコマンドスクリプト

application.propertiesの設定

アイテム

値

説明

server.port

8441

DBSポート

info.app.notifyServers

http://52.77.xxx.xxx

シンクサーバーサーバーのURLのURL

info.app.notifyPort

14127

EPSポート

info.app.procIndex

1

DBSシリアル番号

spring.datasource.main.url

jdbc:sqlite:sync.db

データソース

application.propertiesが見つからない場合は、config/example/application.properties.SQLITEをconfig/config.propertiesとしてコピーします。 その後、必要に応じて変更します。

ここに記載されていない項目の値は変更しないでください。

DBSサーバの開始

OSに応じてコマンドスクリプトを実行します。

  • dbs_windows_console.cmdによって開始されたDBSは、コマンドウィンドウが閉じられると停止します。

  • dbs_windows_agent.cmdによって開始されたDBSは、コマンドウィンドウが閉じられても停止しません。

EPG (EventPushGateway)の設定

EPGフォルダのファイル

ファイル名

説明

example/config.properties

config.propertiesのサンプル

license/key

ライセンスファイル

config.properties

設定ファイル

TP_EPG.jar

実行可能ファイル

epg_linux.sh

Linux bashのコマンドスクリプト

epg_unix.sh

Unixのコマンドスクリプト

epg_windows.agent.cmd

Windows (デモンモード)のコマンドスクリプト

epg_windows.console.cmd

Windows (コンソールモード)のコマンドスクリプト

Setting config.properties

アイテム

値

Description

local.host.name

blank/url

デフォルトのローカルホスト

local.port

14127

EPSポート

local.epg.mode

EPS

大文字

local.eps.index

1

EPSシリアル番号

db.server.info.1

DBSのurlとポート

epg.ssl.enable

false/true

SSL証明書を使用するにはtrueに設定

epg.ssl.keyStore

pfs file path

PKCS12 SSL証明書ファイルのパッす

epg.ssl.keyStorePassword

証明書パスワード

config.propertiesが見つからない場合は、example/config.propertiesをEPGにコピーして変更します。

EPGサーバの開始

OSに応じてコマンドスクリプトを実行します。

  • epg_windows_console.cmdによって起動されたEPGサーバーは、コマンドウィンドウが閉じられると停止します。

  • epg_windows_agent.cmdによって起動されたEPGサーバーは、コマンドウィンドウを閉じても停止しません。

OZミラーリングビューアインストール

ファイルのダウンロード及び配布

  1. 2つのフォルダー、ActiveXviewerとmirror(ミラーリングモジュールとサンプルアプリケーション)、およびファイルmirror.ozr(サンプルe-Form)が含まれています。

  2. ActiveXviewerフォルダーとmirrorをサーバー上のOZサーブレットフォルダーに移動します。 tomcat/webapps/oz-servlet/

  3. mirror.ozrをOZサーバーリポジトリ.WEB-INF/repository_files/samples/に移動します

ファイル修正

  1. oz-servlet/mirror/.に移動します。

  2. 独自の環境に合わせて、mirror-start.html、mirror-desktop-jsp、mirror-mobile.htmlを変更します。 ozサーバーのURL、.OZRファイルのカテゴリ名、EPGポート、DBSポートなどを変更する必要があります。

テストインストール

  1. IE browserブラウザでmirror-start.htmlファイルを開きます。 http://hostname:port/oz-servlet/mirror/mirror-start.html

  2. デバイスIDに「test」と入力します。

  3. OZビューアが初めてデスクトップにインストールされます。しばらく時間がかかります。

  4. サンプルのe-Formが開いたら、サーバーの設定は成功しています。

Internet Explorerでmirror-start.htmlを開いていることを確認してください。

OZ Mobileアプリの設定

Scripts for e-Form

You need to add some scripts in your .OZR file for mirroring. Open your .OZR and copy the scripts below and paste it into OnExternalEvent of the ReportTemplate. And then save and upload it to OZ Repository Server.

if(ozarg_1 == "setvalue") {
	var old = This.GetInputValue(ozarg_2);
	if(old != ozarg_3){
		This.SetInputValue(ozarg_2, ozarg_3);
		var comp = This.GetInputComponent(ozarg_2);
		if(comp) {
			comp.TriggerEvent("OnValueChanged");
		}
	}
} else if(ozarg_1 == "getvalue") {
	return This.GetInputValue(ozarg_2);
} else if(ozarg_1 == "setcomment") {
	var page = This.GetPageByIndex(parseInt(ozarg_2));
	page.SetCommentData(ozarg_3);
} else if(ozarg_1 == "getcomment") {
	var page = This.GetPageByIndex(parseInt(ozarg_2));
	if (ozarg_3 == "encode")
		return encodeURI(page.GetCommentData());
	else
		return page.GetCommentData();
} else if(ozarg_1 == "clearcomment") {
	for(var i = 1; i <= This.GetPageCount();i++){
		var page = This.GetPageByIndex(i);
		page.SetCommentData("");
	}
} else if(ozarg_1 == "focus") {
	This.GetInputComponent(ozarg_2).SetFocus(false);
} else if(ozarg_1 == "killfocus") {
	This.GetInputComponent(ozarg_2).KillFocus(false);
}


else if(ozarg_1 == "setkeyboardtype"){
    var obj = GetInputComponent(ozarg_2);
    obj.SetKeyboardType(ozarg_3);
}else if(ozarg_1 == "enable"){
    var obj = GetInputComponent(ozarg_2);
    obj.SetEnable(true);
}else if(ozarg_1 == "disable"){
    var obj = GetInputComponent(ozarg_2);
    obj.SetEnable(false);
}else if(ozarg_1 == "click"){
    var obj = GetInputComponent(ozarg_2);
    obj.Click();
}

var formid = "";
var objComp = "";
if(ozarg_1 != "" && ozarg_1 != null){
	if(ozarg_1 == "_callExternalEvent_"){
		//_MessageBox("ozarg_1 : "+ozarg_1+", ozarg_2 : "+ozarg_2+", ozarg_3 : "+ozarg_3);
		formid = ozarg_2;
		objComp = GetInputComponent(formid);
		objComp.SetText(ozarg_3);
	}else if(ozarg_1 == "_callUserEvent_"){
		formid = ozarg_2;
		objComp = GetInputComponent(formid);
		objComp.Click();
	}
} 

からサンプルアプリケーションをダウンロードします。

OZモバイルアプリの準備のセクションを参照し、http://hostname:port/oz-servlet/mirrorを指す独自のホームページURLを追加します。

これで、サーバーとのミラーリングを開始できます。 詳細については、を参照してください。

📌
こちら
ここ
http://127.0.0.1:8441
デモ
デモ