Loading View Specification Files

When starting a view server executable, you can include the dynamic-view type specification files to be loaded on the command line. Assuming that the files comptree.ils and depttable.ils contain the specifications for the dynamic view types CompanyTree and DepartmentTable respectively, the executable can be started using the following command line:

myserver -ilsd comptree.ils -ilsd depttable.ils

You can also list these files—one per line—in a resource file called, for example, company.ls and start your executable like this:

myserver -ilsr company.ls

In both cases, the directory that contains the specification or resource files must be defined in the environment variable ILSPATH.

If you type:

myserver -ilsr server/data/company.ls

the path server/data is automatically added to the ILSPATH variable.

You can load a dynamic-view type specification file or a resource file by using function calls. For example:

IlsMvServer::LoadViewSpec("comptree.ils");

IlsMvServer::LoadViewSpec("depttable.ils");

or

IlsMvServer::LoadResources("company.ls");

Note

The specification of the dynamic view type can be described with an XML document. See XML View Specification.