IWebFormComponent.ShowObject

Syntax

ShowObject(Object: IMetabaseObjectDescriptor; [Ctx: IWebOpenContext]);

Parameters

Object. Description of the repository object to be opened.

Ctx. Object opening context.

Description

The ShowObject method opens the specified repository object.

Comments

The method can be executed only from web form code. As a value of the Object parameter one can specify description of the repository object that supports opening/editing, except for the following objects:

If the Ctx parameter is not specified, the object opens for view in the current browser tab. If the ShowObject method is executed to open a web form, this web form will not be linked with the current web form. The web form can be opened only for view.

Dictionaries used in web form code, on opening objects with parameters, will close only after session closing.

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 that executes the code given below.

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 for view
    Self.ShowObject(MDesc);
End Sub Button1OnClick;

Clicking the button opens the specified web web form in the current browser tab.

See also:

IWebFormComponent