As we can see on the demo site, we see in the “Applications” Menu several applications. In a previous post we already mentioned how to handle a large application easily with the Application Context file.
In the demo site, you currently see more than one application (RandomDemo, Showcase, etc).
Here is a code sample of how you can achieve this:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<applications xmlns="http://qafe.com/schema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://qafe.com/schema
http://www.qafe.com/schema/application-context.xsd">
<application name="My First Application" id="5" >
<application-mapping-file location="helloworld.xml"/>
</application>
<application name="Random Demo" id="RandomDemo">
<application-mapping-file location="RandomDemo.xml"/>
</application>
<application name="Showcase" id="showcase">
<application-mapping-file location="showcase.xml"/>
<application-mapping-file location="MyService.xml"/>
</application>
</applications>
As one can see, this appliction-config.xml file contains 3 applications: My First Application, Random Demo and Showcase. The name attribute will be shown as menu-item in the Applications Menu. All the windows that are defined in the corresponding QAML files, will be submenu items of this menu-item.
The id needs to be unique.
Since QAFE can be a MDI (Multiple Document Interface) application, this kind of configuration allows you to create such kinds of applications easily.
