Genero Web Client for JavaScript (GWC-JS) / Migrating from GDC to GWC-JS |
When migrating an application from the Genero Desktop Client (GDC) to the Genero Web Client for JavaScript (GWC-JS), you may encounter issues. Here are some tips that may help.
The Genero Application Server (GAS) is likely serving several types of applications, which might use different versions of the Genero Business Development Language and different databases. You need to configure the GAS for the environment your application will be running. This is done through a configuration file.
If you already have your application configured for GDC-HTTP, you need to enable the rendering for GWC-JS.
<APPLICATION Id="my-app" Parent="defaultgdc"> <EXECUTION> <PATH>$(res.path.fgldir.demo)</PATH> <MODULE>demo.42r</MODULE> </EXECUTION> </APPLICATION>
<APPLICATION Id="my-app" Parent="defaultgwc"> <EXECUTION> <PATH>$(res.path.fgldir.demo)</PATH> <MODULE>demo.42r</MODULE> </EXECUTION> <UA_OUTPUT> <PUBLIC_IMAGEPATH>$(res.public.resources)</PUBLIC_IMAGEPATH> <GWC-JS>gwc-dev</GWC-JS> </UA_OUTPUT> </APPLICATION>
See the Configuring applications on GAS topic to configure your execution environment, the database access and the resource deployment (pictures, reports, and so on).
With a console, the GAS does not launch the application, but instead launches a console with the application environment set up. You can then compare the environment variables to your GDC working environment.
Graphical widgets that are not rendered properly or displayed with a different style are considered rendering issues. Try to identify the source of the rendering issue. This could be the browser, your code, or some GWC-JS customization. For help with troubleshooting see Rendering issues.
Application issues are behavior related. Most of the time you need to contact your local support center. But you can first check for:
If clues are provided in either the logs or in the errors, try to build a simple test program that replicates the issue and contact your local support center.
Once the migration is almost done and you are in load tests phase, you might encounter sporadic disconnections. Carefully read the chapters on GAS installation for your Web server and verify the Web servers and GAS timeouts are compatible. You can also have a look at:
<WEB_APPLICATION_EXECUTION_COMPONENT Id="cpn.wa.execution.local"> […] <DVM>$(res.dvm.wa)</DVM> <WEB_COMPONENT_DIRECTORY>$(application.path)/webcomponents; $(res.path.as)/webcomponents</WEB_COMPONENT_DIRECTORY> </WEB_APPLICATION_EXECUTION_COMPONENT>
<APPLICATION Parent="defaultgwc" …> <EXECUTION> <PATH>/home/myapp</PATH> <MODULE>myapp</MODULE> <WEB_COMPONENT_DIRECTORY>/home/myapp/mycomponents</WEB_COMPONENT_DIRECTORY> </EXECUTION> </APPLICATION>