1.3 LANSA objects used in Web Applications

Web applications are constructed using a combination of the following LANSA objects types but primarily use Web Pages, Reusable Parts and Server Modules for the core of the application.

Three new object types have been introduced specifically for web development:

Object Type

Description

Web Page

The starting point for the application. A Web Page can have references to other objects like Reusable Parts, Server Modules or Bitmaps but may also be the source of some of the User Interface functionality.

Widget

A Widget formalises the use of 3rd party controls or external scripts.

Server Module

Web Pages or Reusable Parts access sever side data by executing a request to a Server Routine within a Server Module. Information is communicated between the client side and the Server Module in JSON.

 

In addition, web development shares some object types with Windows and 5250 Applications. For some of these object types you need to specify the target platform it is designed for as this will influence the commands, controls and features available to be used. These are:

Object Type

Description

Platforms

Theme

A Theme allows you to define ThemeDrawStyles and Styles that can be used throughout your application. It is a good way to ensure a common 'look' is applied to your application as fonts, colors, and so on, can be defined in the Theme.

Web Browser

Windows

All Platforms

Reusable Part

A Reusable Part encapsulates logic that may be reused at various points throughout the application.

Web Browser

Windows/IBM i/Linux

All Platforms

Bitmap

A Bitmap can be used to add images to a Visual LANSA Web User Interface.

N/A

External Resource

External Resources can be used to access documents or files required by the Visual LANSA Web Application.

N/A