Maintain Enhancements

In this section:

Maintain is an application development tool that creates web-based data maintenance applications to be deployed across an enterprise (which can be loosely defined as a company network). Using WebFOCUS Maintain and its multiplatform 4GL language, you can easily create, test, and deploy complex business applications that span the Internet, IBM mainframes, midrange servers, and workstations.


Top of page

x
Controlling Layers at Run Time Using the SetLayer Command

The SetLayer command allows layers to be set as visible or invisible at run time. The command can be used in a Maintain or JavaScript event. The syntax is

Maintain

Formname.SetLayer.("layername",n);

JavaScript

setLayer.formname.("layername",n);

where:

"layername"

Is the name of the layer, enclosed in double quotation marks (" ").

n

Possible values are:

  • 0 sets the layer to be invisible (off).
  • 1 sets the layer to be visible (on).

To preset a layer before the form is run, you can use the SetLayer command with the Winform Show_inactive command:

Winform Show_inactive Form1;
Form1.SetLayer(“Layer1“,1);
Form1.SetLayer(“Layer2“,0);
Winform Show Form1;

This sets Layer1 as visible and Layer2 as invisible.


Top of page

x
General Maintain Enhancements

This section describes new features for the Maintain Development Environment (MDE).


WebFOCUS