Basic Webevent

LANSA

Basic Webevent
Example 203 - Rating: common
The Things that Make Up this ExampleTo Execute this Example

This example is aimed at users who are new to LANSA for the Web. It is written as series of steps to guide you in the process of writing a Webevent function.

We recommend you import the SET material (see The Things that Make Up this Example) to use this example. Alternatively you can cut and paste the code provided for this example in this document, but note that the instructions will refer to the objects as if you had imported the example. They will use the SET naming standards.

In this example we will create:
  • A Webevent function that presents two buttons (Find and Submit) and an input field (Employee Number).
    Clicking on the Find button will resubmit the same function, read the personnel system file and return the employees full name. Clicking on the Submit button will resubmit the same function, and simply issue a message.
  • A function like the above but instead of the buttons re-invoking the same function, the buttons will invoke a different function. See WebEvent Function 2.
Keywords
Example 203Webevent
ButtonBasic
ComponentSkeleton