IWebFormComponent.ShowObject

Syntax

ShowObject(Object: IMetabaseObjectDescriptor);

Parameters

Object. Description of the web form that should be hidden.

Description

The ShowObject method opens the specified web form in a new browser tab.

Comments

The method can be executed only from web form code. As a value of the Object parameter, one can specify only description of web forms. After executing the method the web form opens in a new browser tab, and it is not linked with the current web form, from which the method was called.

Example

Executing the example requires that the repository contains two web forms. The first web form has the F_REPORT identifier. The second web form should contain a button.

Add links to the Metabase and WebForms system assemblies.

Sub Button1OnClick;
Var
    Mb: IMetabase;
    MDesc: IMetabaseObjectDescriptor;
Begin
    Mb := MetabaseClass.Active;
    MDesc := Mb.ItemById("F_REPORT");
    // Open web form in a new tab
    Self.ShowObject(MDesc);
End Sub Button1OnClick;

Clicking the button opens the specified web form in a new browser tab.

See also:

IWebFormComponent