1 5 2 What is Generated for the Presentation Layer by Default

LANSA WAM

1.5.2 What is Generated for the Presentation Layer by Default?

When a WAM is compiled, some default User Interface pieces are built, based on the Web Maps specified. These are different depending on whether fields or working lists are being mapped. For example, this Webroutine maps two fields:

and will generate a User Interface in the form of a web page that looks something like this:

As you can see, a table has been generated with two columns and a row for each field. The *output attribute on DEPTMENT means that it cannot be modified by the user, whilst the implied attribute of *input for DEPTDESC means that it is input-capable.

For this Webroutine, that specifies a working list:

a web page will be generated that looks something like this:

A table has been generated with two columns, each representing a field in the list, and with each row of the table representing an entry in the list. By default, three rows of the table are shown for design purposes.

These default pieces of User Interface are all well and good, but what if you want to do something a bit more 'webby', such as visualize fields as clickable images or hyperlinks? This is where 1.5.3 Weblets come in.