To create a command button that opens a file:
Open Sample3.bqy and insert a new Dashboard section. Rename it Strings Dashboard.
Refer toCreating a New Dashboard Section for instructions on renaming a section.
Drag a command button from the Elements pane to the Content pane.
Select the command button and choose Dashboard, then Scripts.
Use the Object browser to navigate to Application, then Documents, then Methods and then double-click Open.
The Description pane shows that the arguments for the Open method are strings: Document Open(String Filename, [optional] String DisplayName). The second argument is not required and this script does not include it. step 6 through step 7 adds the String Filename argument to the Open method.
Switch to the desktop and find and copy the path (not the file name) to the file you wish to open.
For the What’s New.bqy document, the default path is C:\Program Files\Brio\BrioQuery\Samples.
Copy the file name and paste it at the end of the path in the current script.
Toggle to Run mode and click the command button to open the file.