To Add a New Member
You can add a new member (such as a variable, data view, or method) to a custom graph or to an extension for a graph in MYOB Acumatica.
Initially, the code of a custom graph or an extension for an existing graph is saved in the appropriate Code item of the customization project. If the project has not been published, you can use only the Code Editor to add a new member to the graph code.
- In Visual Studio, click File > Open > Web Site, and select your MYOB Acumatica development environment.
- Open the App_RuntimeCode\<CodeItemName>.cs file.
- In the code, add the needed class member.
- Save the file.
- In the Customization Project Editor, select the Files node in the navigation pane.
- On the Custom Files page, which opens, click Detect Modified
Files on the page toolbar.Note:The customization platform compares the content of each file added to the site with the content of the associated item of the customization project in the database. If a difference is detected, the platform opens the Modified Files Detected dialog box so you can resolve the detected conflicts. You can either update the customization project in the database or discard the file changes in the file system to resolve the conflicts.
- In the Modified Files Detected dialog box, which opens, ensure that the modified code file is selected.
- Click Update Customization Project to update the Code item that is saved in the database.
If the graph code is included in an extension library whose binary file is added to the customization project as a File item, you can use Visual Studio to add a new member to the graph code in the library solution. (See Extension Library for details.) If you make changes to the extension library file in the file system, you have to update the appropriate File item in the customization project. See To Update a File Item in a Project for details.