OZ e-Form Developer
  • OZ e-Form Concepts
  • 🌈e-Form DEVELOPER
    • Day 1: Welcome On Board
      • About Course
      • Preparations
      • OZ e-Form Overview
    • Day 2: e-Form Design
      • Designer Environments
      • e-Form Layout Structure
      • e-Form Components
      • e-Form From Documents
      • Preview / Export / Save
      • Hands-on Practice
    • Day 3: Dynamic e-Form
      • e-Form Scripting Guide
      • Hands-on Practice
      • Advanced Features
    • Day 4: e-Form Application
      • Server Deployment
      • Viewer In HTML
      • Viewer APIs
      • Prefilling e-Form
      • Submitting e-Form
      • Sending MemoryStream
    • Get Your Certificate
    • Design Guide
      • Dialogue Flow
        • Overview
        • Creating Dialogue Flow
        • Uploading e-Form to Server
        • Running Dialogue Flow
        • Group and Statement
        • Custom Styling
      • Multilingual e-Form
      • Miscellaneous
      • Videosign
        • Videosign User Guide
      • OZ Verifier
        • OZ Verifier Introduction
        • Implementation and Use
        • Requirements
      • HTML5 Editor
        • HTML5 Editor Introduction
        • HTML Editor
        • Requirements and Sample
    • Day 5. Server & Reporting
  • 🌈Server Developer
    • OZ Server Console
    • OZ Scheduler
      • Features
      • Installing OZ Scheduler
      • Scheduler Task
    • Binding & Exporting
      • Overview
      • Export API Example
        • Extract Input Data
        • Export with OZ Server
        • Export with Scheduler
        • Export with Scheduler Task
    • Repository Server
    • Sync Server
      • Overview
      • Installing Sync-Server
        • SSL configration
      • Sample Application
      • Implementation
    • QR Link Mobile Sign
  • 🌈Report Developer
    • Overview
      • About Course
      • Preparation
      • Report Designer Overview
    • Query Design
      • Database Connection
      • Designer Environment
      • Dataset Design
    • Report Design
      • Designer Environment
      • Components
      • Table
      • Master-Detail
      • ODI Parameter
      • CrossTab
      • Chart
  • 🌈MOBILE DEVELOPER
    • Android Native
    • iOS Native
    • TOTO Framework
      • TOTO Overview
      • Sample App Overview
      • Server Application
      • Android Project
  • ⬇️Product Downloads
  • 📚 Product Documentation
  • 📕Technical Guide
  • ⚛️ ReactJS Integration
Powered by GitBook
On this page
  • Download
  • File Description
  • Customization
  • js/ozviewer_browers_html5.js
  • agent-html.html
  • agent-activex.html
  • client-html.html
  • client-activex.html
  • client-toto.html
  • toto.manifest.js

Was this helpful?

  1. Server Developer
  2. Sync Server

Implementation

PreviousSample ApplicationNextQR Link Mobile Sign

Last updated 3 years ago

Was this helpful?

Download

  1. Download a sample application file from 👉 .

  2. Extract it under your servlet container.

  3. Download sample OZR files from 👉 .

  4. Extract it under your repository_files.

File Description

File

Description

js/jquery-3.3.1.min.js

jQuery file

js/OZServiceHandler.js

Synchronization service handler

js/ServiceManager.js

Synchronization service manager

js/OZDataChannelManager.js

Manage data channel between the agent and client

js/ozviewer_browers.js

Open ActiveX viewer in the browser

js/ozviewer_browers_html5.js

Open HTML5 viewer in the browser

js/ozviewer_browers_toto.js

Open HTML5 viewer in the OZ Mobile app

js/OZCommonParams.js

OZ viewer parameter definitions for the agent and client

js/ztransferx_browers.js

Download ActiveX viewer

agent-activex.html

A sample agent page for the ActiveX viewer

agent-html.html

A sample agent page for the HTML5 viewer

client-activex.html

A sample client page for the ActiveX viewer

client-html.html

A sample client page for the HTML5 viewer

client-toto.html

A sample client page for the OZ Mobile App

toto.manifest.js

Define the client page to be accessed from the OZ Mobile App

Customization

js/ozviewer_browers_html5.js

Change "html5viewer" to your own HTML5 viewer path.

OZViewerBrowers.Start_OZViewer = function(ozhandler, ozviewerDiv, param, delimiter,callback) {
    window["SetOZParamters_"+OZViewerBrowers.objOZViewerInfo.id] = function () {
        OZViewerBrowers.AddParams(ozhandler, ozviewerDiv, param, delimiter);
        return true;
    };
    var path = "/html5viewer/";

agent-html.html

Change "html5viewer" to your own HTML5 viewer path.

<link rel='stylesheet' href='/html5viewer/ui.dynatree.css' type='text/css' />
<script type='text/javascript' src='/html5viewer/jquery.dynatree.js' charset='utf-8'></script>
<script type='text/javascript' src='/html5viewer/OZJSViewer.js' charset='utf-8'></script>
<script type="text/javascript" src="/html5viewer/pdf_js/web/compatibility.js"></script>
<script type="text/javascript" src="/html5viewer/pdf_js/build/pdf.js"></script>

Change OZ server servlet URL and OZR file path. You can add more OZR files.

    var commonParam = {
        "connection.servlet": "http://oz.ozeform.io/oz/server",
        "connection.reportname": "edu/sync/card-application.ozr",
        "viewer.childcount": "1", // increase when you add more ozr files below
        "child1.connection.servlet": "http://oz.ozeform.io/oz/server",
        "child1.connection.reportname": "edu/sync/loan-application-jp.ozr",

Change the port number "14127" to your Sync Server (EPG) port number.

        function handlerInit() {
                var serverAddr = location.protocol + "//" + location.hostname + ":14127";

agent-activex.html

Change OZ server servlet URL and OZR file path. You can add more OZR files.

     var commonParam = {
        "connection.servlet": "http://oz.ozeform.io/oz/server",
        "connection.reportname": "edu/sync/card-application.ozr",
        "viewer.childcount": "1", // increase when you add more ozr files below
        "child1.connection.servlet": "http://oz.ozeform.io/oz/server",
        "child1.connection.reportname": "edu/sync/loan-application-jp.ozr",

Change Sync Server port number.

    function handlerInit() {
        var serverAddr = location.protocol + "//" + location.hostname + ":14127";

Change ActiveX viewer download path, port, and the namespace.

    function requestInstallOZViewer() { 
        if(IsNeedSha1_ZT())
            Initialize_ZT("ZTransferX", "CLSID:C7C7225A-9476-47AC-B0B0-FF3B79D55E67", "0", "0", "http://oz.ozeform.io/oz/ActiveXviewer/ZTransferX_2,2,6,0_SHA1.cab#version=2,2,6,0", "application/OZTransferX_1029");
        else
            Initialize_ZT("ZTransferX", "CLSID:C7C7225A-9476-47AC-B0B0-FF3B79D55E67", "0", "0", "http://oz.ozeform.io/oz/ActiveXviewer/ZTransferX_2,2,6,0.cab#version=2,2,6,0", "application/OZTransferX_1029");
        Insert_ZT_Param("download.server", "http://oz.ozeform.io/ActiveXviewer");
        Insert_ZT_Param("download.port", "80");
        Insert_ZT_Param("download.instruction", "ozrviewer.idf");
        Insert_ZT_Param("install.base", "<PROGRAMS>/Forcs");
        Insert_ZT_Param("install.namespace", "OZSyncViewer");

client-html.html

Change all occurrences of "oz/HTML5viewer" to your own HTML5 viewer path.

<link rel='stylesheet' href='/oz/HTML5viewer/ui.dynatree.css' type='text/css' />
<script type='text/javascript' src='/html5viewer/jquery.dynatree.js' charset='utf-8'></script>
<script type='text/javascript' src='/html5viewer/OZJSViewer.js' charset='utf-8'></script>
<script type="text/javascript" src="/html5viewer/pdf_js/web/compatibility.js"></script>
<script type="text/javascript" src="/html5viewer/pdf_js/build/pdf.js"></script>

Change Sync Server port number.

    function handlerInit() {
        var serverAddr = location.protocol + "//" + location.hostname + ":14127";

client-activex.html

Change Sync Server port number.

    function handlerInit() {
        var serverAddr = location.protocol + "//" + location.hostname + ":14127";

Change ActiveX viewer download path, port, and the namespace.

    function requestInstallOZViewer() { 
        if(IsNeedSha1_ZT())
            Initialize_ZT("ZTransferX", "CLSID:C7C7225A-9476-47AC-B0B0-FF3B79D55E67", "0", "0", "http://oz.ozeform.io/oz/ActiveXviewer/ZTransferX_2,2,6,0_SHA1.cab#version=2,2,6,0", "application/OZTransferX_1029");
        else
            Initialize_ZT("ZTransferX", "CLSID:C7C7225A-9476-47AC-B0B0-FF3B79D55E67", "0", "0", "http://oz.ozeform.io/oz/ActiveXviewer/ZTransferX_2,2,6,0.cab#version=2,2,6,0", "application/OZTransferX_1029");
        Insert_ZT_Param("download.server", "http://oz.ozeform.io/ActiveXviewer");
        Insert_ZT_Param("download.port", "80");
        Insert_ZT_Param("download.instruction", "ozrviewer.idf");
        Insert_ZT_Param("install.base", "<PROGRAMS>/Forcs");
        Insert_ZT_Param("install.namespace", "OZSyncViewer");

client-toto.html

Change Sync Server port number.

    function handlerInit() {
        var serverAddr = location.protocol + "//" + location.hostname + ":14127";

toto.manifest.js

If you want to change the name of client-toto.html, make sure to change the file name in toto.manifest.html to the same one.

{
    "home" : {
        "online" : "client-toto.html",
        "offline" : null
    },
    "navigator" : {
        "visible" : true
    }
}
🌈
sync-ap
p.zip
sync-ozr.zip