To Override a Data View
To modify a data view, you have to redefine the data view in the graph extension class. The data view redefined within a BLC extension completely replaces the base data view within the Views collection of a graph instance, including all attributes attached to the data view declared within the base graph. You can either attach the same set of attributes to the data view or completely redeclare the attributes. For details, see Graph Extensions. The data view must have exactly the same identifier, which is referred to in the appropriate container in the ASPX page.
To redefine a data view in the graph extension, perform the following actions:
- Create the graph extension, as described in To Start the Customization of a Graph, if required.
- In the Code Editor, click View Source to view the code of the base
graph in the Source Code browser.Note: In an instance of MYOB Acumatica, a repository with the original C# source code of the application is kept in the \App_Data\CodeRepository folder of the website.
- In the browser, select and copy the data view declaration.
- In the Code Editor, paste the data view declaration in the graph extension.
- In the graph extension, redefine the data view declaration as required.
- Click Save in the Code Editor to save your changes.