Use the WAM capabilities

Visual LANSA Framework

Use the WAM capabilities

Visual LANSA Framework filters and command handlers have normally one Webroutine. Thus to maintain the state of fields in Framework filters and command handlers is quite simple. You must include the fields in a Web_Map. You would normally define a Web_Map for both input and output.

This means that the simple incremental program defined earlier as:

  • Define #NUMBER with an initial value of zero.
  • Change #NUMBER to #NUMBER + 1.
  • Display the incremented #NUMBER value.

Would function correctly when coded like this:

Function Options(*Direct)

Define #Number *dec 7 0 default(0)
Web_Map For(*both) Fields(#Number)

Webroutine Name(UHandleEvent)
etc
Endroutine