DisplaySourcesNames : Boolean;
DisplaySourcesNames : boolean;
The DisplaySourcesNames property determined express report source name display.
By default the property is set to True.
If the property is set to False, the source names will be hidden.
If the property is set to True, the source names will be displayed.
Executing the example requires a button named Button1 and an express report with the EXPRESS_FILTER idnetifier built on several data sources.
Add links to the Metabase and Express system assemblies.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
MB: IMetabase;
MObj: IMetabaseObject;
Expr: IEaxAnalyzer;
ExpDs: IEaxDataSources;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("EXPRESS_FILTER").Edit;
Expr := MObj As IEaxAnalyzer;
ExpDs := Expr.DataSources;
ExpDs.DisplaySourcesNames := False;
End Sub Button1OnClick;
After executing the example clicking the button hides the express report source names.
The requirements and result of the Fore.NET Example execution match with those in the Fore Example. Instead of the Fore components use their Fore.NET analogs.
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Express;
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
MB: IMetabase;
MObj: IMetabaseObject;
Expr: IEaxAnalyzer;
ExpDs: IEaxDataSources;
Begin
MB := Self.Metabase;
MObj := MB.ItemById["EXPRESS_FILTER"].Edit();
Expr := MObj As IEaxAnalyzer;
ExpDs := Expr.DataSources;
ExpDs.DisplaySourcesNames := False;
End Sub;
See also: