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
  • Form Input Validation
  • Data Extraction
  • Exporting
  • Client-side vs. Server-side exporting
  • ScriptEx()

Was this helpful?

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

Submitting e-Form

Learn how to validate form input, extract input data from e-Form, and export the form as PDF.

Form Input Validation

GetInformation("INPUT_CHECK_VALIDITY")

  1. The function finds the first button in the current Report which has validation scripts in the OnCheckValidity event.

  2. Run the script and returns

    • "valid" if the script returns "true"

    • Empty string if the script failed or no OnCheckValidity event script was found

Data Extraction

GetInformation("INPUT_JSON_ALL")

  • Extract data in JSON format from all input components of which AllowSending is True

customer-save.ozr

  1. Open customer.ozr

  2. Validation button: Set Visible to "False" for runtime.

  3. Remove or comment out a code line from OnCheckValidity

    _MessageBox("Validation Success", "Save");

  4. Save as customer-save.ozr

Exporting

Client-side vs. Server-side exporting

Client-side exporting

  • Manual export to file with the Viewer SAVE menu

  • Export to file with Viewer API

  • Export to MemoryStream with Viewer API (to send to the server)

Server-side exporting

  • The client extracts input data and sends it to the server

  • OZ Server or Scheduler performs exporting with form and data

ScriptEx()

Function for Client-side exporting

save option

Convert the form to a file in the target format and save it on the client.

var param = "export.format=pdf;";
param += "export.mode=silent;";
param += "pdf.filename=customer.pdf;";
OZViewer.ScriptEx("save", param,";");

save_memorystream option:

Convert the form to a MemoryStream in the target format.

var param = "export.format=pdf;";
param += "; export.path=C:\\TEMP;"
param += "; export.filename=temp"; 
param += "; export.mode=silent";
param += "; export.confirmsave=false";
OZViewer.ScriptEx("save_memorystream", param,";");    
PreviousPrefilling e-FormNextSending MemoryStream

Last updated 2 years ago

Was this helpful?

👉 For details about server-side exporting, refer to

🌈
Exporting e-Form to Server.