IsDataLinkedDecor: Boolean;
IsDataLinkedDecor: Boolean;
The IsDataLinkedDecor property determines whether series formatting is linked to the data source.
By default the property is set to False.
An express report with the identifier Obj_1 is required. Add a button with the identifier Button1 to the form.
To execute this example, add references to the Chart, Metabase and Express system assemblies.
This example is a handler of the OnClick event for the component Button1.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
chart:IChart;
an:IEaxAnalyzer;
mb:Imetabase;
Begin
Mb:= MetabaseClass.Active;
an:= Mb.ItemById("OBJ_1").Edit As IEaxAnalyzer;
chart:=an.Sheets.Item(0).Analyzer.Chart As IChart;
chart.IsDataLinkedDecor:= True;
(an As IMetabaseObject).Save;
End Sub Button1OnClick;
After executing the example series formatting is bound to the data source. If the series is removed from the selection and again added to the selection, the formatting, which is set before removing the series, is used.
An express report with the identifier Obj_1 is required. Add a button with the identifier button1 to the form.
To execute this example, add references to the Chart, Metabase and Express system assemblies.
This example processes the OnClick event for button1.
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Chart;
...
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
chart:IChart;
an:IEaxAnalyzer;
mb:Imetabase;
Begin
mb:= Params.Metabase;
an:= mb.ItemById["OBJ_1"].Edit() As IEaxAnalyzer;
chart:=an.Sheets.Item[0].Analyzer.Chart As IChart;
chart.IsDataLinkedDecor:= True;
(an As IMetabaseObject).Save();
End Sub button1_Click;
After executing the example series formatting is bound to the data source. If the series is removed from the selection and again added to the selection, the formatting, which is set before removing the series, is used.
See also: