Category: ZIM:X Connectivity

The Original Internet Language

Python API to Talk to a Zim Database

Installation After the full ZIM installation, copy the file zimapi.py from the ZIM directory to wherever directory is needed to run Python. Globals No globals available for Python at this point. Constructors import zimapi import os zim = zimapi.Zimapi() zim = zim.connect(dbname=”database name”[, host=”host address”][,port=port number][, user=”ZIM”][, password = “”]) print(zim.state) zim.close() Alternatively: import zimapi…
Read more

C-Sharp API to talk to a Zim Database

Installation After the full ZIM installation, copy the file zimapi.cs from the ZIM directory to wherever directory is needed to start developing your C-Sharp application. Globals TOP = indicate the first tuple (row or record) from a set of recordsBOTTOM = indicate the last tuple (row or record) from a set of recordsUTF8 = indicate…
Read more

Python Connection

#pip3 -> python 3.9 # – Instalar com pip3 #pip3 install JayDeBeApi –user #pip3 install JPype1==0.6.3 –user import jaydebeapi #variables to connect to zimjdbc8.jar jclassname=’zim.jdbc.ZJ_Driver’ jdbc_driver_loc = r’C:\Users\xxx\Documents\p01\zimjdbc8.jar’ jdbc_driver_name = ‘zim.jdbc.ZJ_Driver’ host=’localhost:6002′ #url and login variables url=’jdbc:zim://’ + host + ‘/zimdb01’ login=”ZIM” psw=”” #sql to be executed at the Zim’s side. sql = “SELECT codie,…
Read more

DDE Services

Zim provides DDE services for applications through the function $DDEFunction. These DDE services include the ability to send data to another application, retrieve data from another application, and pass commands to another application. While you can write your own implementation of $DDEFunction, Zim provides a standard implementation in the form of a Dynamic Link Library…
Read more

Preparing the Database for ODBC Access

Preparing the Database for ODBC Access Start up the Development Center (DC) and click Tools -> Remote Access -> Prepare Database. This action runs a script that populates the metadata entities that are used by non-Zim applications to acquire EntitySet information.  

The Benefits of $ServerFunction

The benefit of $serverfunction is the ability to code server functions that Zim does not support. Often there are similar functions in Zim and the server, but the mapping is not exact. As a result, the function is not present in the .sql file, forcing Zim to retrieve the entire table and evaluate the where…
Read more

ZimWeb Architecture

ZimWeb Connection Architecture Web applications can be implemented in Zim, using a Java Servlet program called ZIIServlet, provided as part of ZimWeb. A Java Servlet must be executed on a Java Servlet Container, such as Apache’s Jakarta Tomcat. ZIIServlet works together with Zim Server to process requests from the client, whose interaction with the end…
Read more

Bibliography

XML Technologies The following books will be particularly useful in explaining the XML technologies that are crucial to using the ZimWeb effectively:   XML By Example (2nd Edition) and Applied XML Solutions by Benoit Marchal – these will give you a good overview of the XML landscape. XSLT Programmer’s Reference 2nd Edition by Michael Kay…
Read more

ZimWeb Administration

ZIIAdmin servlet is ZimWeb‘s administration tool. It can be used to manage ZimWeb either from the web or from a command line or script, which can be scheduled. Web Administration If you invoke the ZIIAdmin servlet from a web browser, you will see a page with various parts under different headings:- Database Status Allows you…
Read more

Configuring ZimWeb

If you are using Tomcat, and have installed the ZimWeb in the manner described in the installation instructions, then the servlet configuration (servlet initialisation parameters) will be in the web.xml file in the [TOMCAT_ROOT]/webapps/ZII/WEB-INF directory. If you are using a different servlet engine, then you will have to consult its documentation to see how to…
Read more

en_CAEnglish