Source Code

Form ID: (SM204570)

You use this form, which functions as a source code browser, to explore the source code of MYOB Advanced.

The source code browser displays the code in various views on each of the tabs, which are described in the following sections.

Screen ASPX Tab

You use this tab to view the ASPX code for the selected page. The tab contains the following element.

Element Description
Screen ID

The ID of the form for which you want to view the source code.

In this box, you can find a screen either by the screen ID or by the screen title. You can search by any part of an ID or title.

The tab also contains the Source Code pane, which displays the source code of the selected screen. The source code is displayed with the changes that were made in all the published customization projects of the website. The changes related to the UI elements of the page are highlighted in yellow.

Business Logic Tab

This tab displays the source code of the BLC. If you selected a form on the Screen ASPX tab, this tab opens with the source code of the graph associated with the form; you can select another graph. If you did not select a form, this tab is empty.

The tab contains the following element.

Element Description
Graph Name

The name of the graph for which you want to view the source code.

In this box, you can select the graph by its name. You can also type any part of the name and select the name from the list of names that match your search string.

The tab contains a navigation pane. The pane has the Methods and Event Handler headers, which are followed by the methods and event handlers (respectively) for the selected graph. You click a particular method or event handler name to view its code in the Source Code pane of the tab.

The Source Code pane displays the whole source code of the selected graph. When you click a particular method or event handler in the navigation pane, the system scrolls to the code for this method or event handler.

Data Access Tab

You use the Data Access tab to review the source code of a DAC. The tab contains the following element.

Element Description
Table Name

The name of the DAC.

In this box, you can type any part of the class name and select the name from the list of names that match your search string.

The tab also contains the Source Code pane, which displays the source code of the DAC selected in the Table Name box.

Find in Files Tab

You use this tab to search for MYOB Advanced application code fragments that contain the specified text. The search is case-sensitive.

The tab contains the following elements.

Element or Pane Description
The Summary area contains the following elements.
Find Text

A box where you enter a fragment of the source code you need to find.

Find

A button that you click to start the search.

Table 1. Table ColumnsThe table on the tab contains the results of the search.
Column Description
Name

The name of the source code file that has been found.

Line

The number of the code line (in the source code file) that contains the code fragment.

Content

The contents of the line in the source code file.

The tab also contains the Source Code pane that displays the code of the item selected in the table. You click a row in the table to view the corresponding source code.