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
  • Viewer Types
  • Embedding HTML5JS Viewer in Your HTML
  • Using PDF
  • Mobile UX

Was this helpful?

  1. e-Form DEVELOPER
  2. Day 4: e-Form Application

Viewer In HTML

Learn how to integrate the OZ viewer in the application and open e-Form.

Viewer Types

Category
Type
Description

Desktop

ActiveX

The viewer for IE browser. Downloaded and updated on the client automatically.

Desktop or Mobile

HTML5JS (Canvas)

Downloaded in the Temporary Internet Files folder on the client.

eForm is rendered by the client.

HTML5SVG

Downloaded in the Temporary Internet Files folder on the client.

eForm is rendered at the server-side by OZ Server and OZ Scheduler.

Mobile

Android

Viewer library to be embedded in the Android project

iOS

Viewer library to be embedded in the Xcode project

UWP

Viewer library to be embedded in the Visual Studio, C#, C++ project

Embedding HTML5JS Viewer in Your HTML

1. Create a file customer.html under webapps/training/company_id/user_id/.

2. Import js and CSS files needed for the HTML5JS Viewer.

<!DOCTYPE html>
<html style="height:100%">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<!-- HTML5 Viewer references-->
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" type="text/css"/>
<script src="http://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
<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>
</head>

3. Declare an OZ Viewer object using the <div> tag.

<body style="width:98%;height:94%">
<h4 style="text-align: center;">OZ e-Form in HTML page</h4>
<!-- Divison for OZ Viewer -->
<div id="OZViewer" style="width:98%;height:98%"></div>

4. Set parameters for server connection and OZR file location with SetOZParamters_OZViewer().

5. Sart the viewer with start_ozjs().

<script type="text/javascript" >
var url = "http://" + location.host;
function SetOZParamters_OZViewer(){ // prepare viewer parameters
    // get the object from the "OZViewer" <div>
    var oz = document.getElementById("OZViewer");
    // oz server url(path)
    oz.sendToActionScript("connection.servlet", url + "/training/server");
    // eform file path (relative to the repository server)
    oz.sendToActionScript("connection.reportname","/forcs/john.kim/customer.ozr");
    return true;
}
start_ozjs("OZViewer", url + "/html5viewer/"); // run HTML5 JS viewer
</script>
</body>
</html>

Make sure to use the div id OZViewer as below. They must be the same.

6. Save the file and open it with a browser.

Using PDF

If you imported PDF documents or attached PDF files to the report, add code lines below.

<!-- When using a PDF document or attaching a PDF file to a report, load files below.-->
<script type="text/javascript" src="/html5viewer/pdf_js/web/compatibility.js" charset="utf-8"></script>
<script type="text/javascript" src="/html5viewer/pdf_js/build/pdf.js" charset="utf-8"></script>

Mobile UX

For mobile devices, you can use jQuery mobile. Just add references below.

<!-- for Mobile UX -->
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"/>
<script src="http://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css"/>
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://dev.jtsage.com/cdn/simpledialog/latest/jquery.mobile.simpledialog.min.css"/>
<script type="text/javascript" src="http://dev.jtsage.com/cdn/simpledialog/latest/jquery.mobile.simpledialog2.min.js"></script>
<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 src="/html5viewer/jquery.mouseSwipe.js" type="text/javascript"></script>

And the function start_ozjs() must be called with the 3rd argument.

start_ozjs("OZViewer","/html5viewer/", true); // true for mobile
PreviousServer DeploymentNextViewer APIs

Last updated 3 months ago

Was this helpful?

For details refer to

For details refer to

🌈
http://localhost:8080/training/forcs/john.kim/customer.html
Example
Example
HTML5 Viewer Types
HTML5 Viewer Types