ITabOptions.AutoPercentEntry

Fore Syntax

AutoPercentEntry: Boolean;

Fore.NET Syntax

AutoPercentEntry: boolean;

Description

The AutoPercentEntry property determines whether the Automatic percentage entry checkbox is selected in the Sheet Parameters dialog box.

Comments

Use the property within one session, for example, on working with table parameters on form. The AutoPercentEntry property value is not saved on report closing.

Fore Example

To execute the example the repository must contain a regular report with the REG_REP identifier.

Add links to the Metabase, Report, Tab system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Rep: IPrxReport;
    Tab: IPrxTable;
    Opt: ITabOptions;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById(
"Reg_rep").Edit;
    Rep := MObj 
As IPrxReport;
    Tab := Rep.ActiveSheet 
As IPrxTable;
    Opt := Tab.TabSheet.Options;
    Opt.AutoPercentEntry := 
True;
    MObj.Save;
End Sub UserProc;

After executing the example the Percent Auto Input option is enabled for the active sheet of the regular report.

Fore.NET Example

The requirements and result of Fore.NET Example execution is the same as in the Fore Example.

Imports Prognoz.Platform.Interop.Report;
Imports Prognoz.Platform.Interop.Tab;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Rep: IPrxReport;
    Tab: IPrxTable;
    Opt: ITabOptions;
Begin
    MB := Params.Metabase;
    MObj := MB.ItemById["Reg_rep"].Edit();
    Rep := MObj As IPrxReport;
    Tab := Rep.ActiveSheet As IPrxTable;
    Opt := Tab.TabSheet.Options;
    Opt.AutoPercentEntry := True;
    MObj.Save();
End Sub;

See also:

ITabOptions