DisplaySourcesNames: Boolean;
DisplaySourcesNames: Boolean;
The DisplaySourcesNames property determines whether data source names are displayed before element names in table heading or sidehead.
Available values:
True. Default value. Data source names are displayed.
False. Data source names are hidden.
Executing the example requires a button named Button1 and an express report with the EXPRESS_REPORT identifier 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_REPORT").Edit;
Expr := MObj As IEaxAnalyzer;
ExpDs := Expr.DataSources;
ExpDs.DisplaySourcesNames := False;
MObj.Save;
End Sub Button1OnClick;
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_REPORT"].Edit();
Expr := MObj As IEaxAnalyzer;
ExpDs := Expr.DataSources;
ExpDs.DisplaySourcesNames := False;
MObj.Save;
End Sub Button1OnClick;
After executing the example clicking the button hides the express report data source names from the table.
See also: