Configure Web client applications

What do you need to configure a Genero Web Client application?

To add an application for Genero Web Client for JavaScript (GWC-JS), you need to specify:

Example: simple application for GWC-JS Web client

<APPLICATION Id="gwc-demo" Parent="defaultgwc">
  <EXECUTION>
    <PATH>$(res.path.fgldir.demo)</PATH>
    <MODULE>demo.42r</MODULE>
  </EXECUTION>
</APPLICATION>
  1. The application inherits the configuration settings of its parent ("defaultgwc" in this example).
  2. The path used in this example is a RESOURCE; you could also use the absolute path name leading to your application files.
  3. The MODULE contains the name of the application to launch.

Example: gwc-demo-external.xcf

The main differences between this example and the example shown in Example: simple application for GWC-JS Web client are the lack of the Id attribute and the reference to the XML schema.
<APPLICATION Parent="defaultgwc"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:noNamespaceSchemaLocation="http://www.4js.com/ns/gas/3.00/cfextwa.xsd">
  <EXECUTION>
    <PATH>$(res.path.fgldir.demo)</PATH>
    <MODULE>demo.42r</MODULE>
    <ACCESS_CONTROL>
        <ALLOW_FROM>$(res.access.control)</ALLOW_FROM>
    </ACCESS_CONTROL>
  </EXECUTION>
  <UA_OUTPUT>
     <PROXY>$(res.uaproxy.cmd)</PROXY>
     <PUBLIC_IMAGEPATH>$(res.public.resources)</PUBLIC_IMAGEPATH>
     <GWC-JS>gwc-dev</GWC-JS>
     <TIMEOUT> Using="cpn.wa.timeout"</TIMEOUT>
  </UA_OUTPUT>
</APPLICATION>
  1. The ALLOW_FROM element specifies from what hosts access is allowed, the example here is defined in a RESOURCE.
  2. The GWC-JS configuration element, specifies the customization project directory you used to provide the application look-and-feel. See Customizing GWC-JS applications.