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")
The function finds the first button in the current Report which has validation scripts in the OnCheckValidity event.
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
Open
customer.ozr
Validation button: Set Visible to "False" for runtime.
Remove or comment out a code line from OnCheckValidity
_MessageBox("Validation Success", "Save");
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.
save_memorystream option:
Convert the form to a MemoryStream in the target format.
Last updated
Was this helpful?