Skip to main content
All docs
V26.1
  • TdxBackendCustomParameter.Visible Property

    Specifies if the parameter editor is visible in the Report or Dashboard UI.

    Declaration

    property Visible: Boolean read; write; default True;

    Property Value

    Type Default Description
    Boolean True

    True if the parameter editor is visible in the end-user UI; otherwise, False.

    Remarks

    Use the Visible property to display or hide the parameter in the end-user UI.

    This property corresponds to the Visible combo box in the Report Designer or the Visible option in the Dashboard Designer:

    Note

    The Visible property affects only parameter editor visibility in the end-user UI. Selected parameter values still apply to the report / dashboard data source.

    Code Examples

    The following code snippets hide the parameter from the UI.

    Note

    The Visible property is common to report and dashboard parameters. These examples perform the same operation but use component-specific APIs.

    Hide the Report Parameter

    uses
      dxReport.Control;   // Declares the TdxReportControl class
    
    procedure TForm1.cxButton1Click(Sender: TObject);
    begin
      dxReportControl1.Parameters['countryParameter'].Visible := False;
    end;
    

    Hide the Dashboard Parameter

    uses
      dxDashboard.Control;   // Declares the TdxDashboardControl class
    
    procedure TForm1.cxButton1Click(Sender: TObject);
    begin
      dxDashboardControl1.Parameters['countryParameter'].Visible := False;
    end;
    
    See Also