
Contents |
This package contains a collection of tools for developers working with AJAX toolkit to build s-controls. Included in the package are: A syntax-highlighting editor that can load/save s-controls/apex code directly from your account at salesforce.com; extensive code samples for the toolkit, dojo, and the UI in a handy code browser; a javascript shell with completion and input history -- very handy for trying commands against the API; and a SOQL Explorer for browsing your data schema and building SOQL queries.
Ajax Tools is listed on AppExchange as a managed package and can be installed into your org by following the steps below:
1. Click on the version of Ajax Tools you would like to install
2. Press the "Get It Now" red button
3. Select "Current Salesforce administrator" and enter your username and password and hit "Continue"
4. Follow the instructions to select the security level and install
5. Once installed, Ajax Tools will show up as an AppExchange application in the pick list at the top right section of the page. Select "Ajax Tools" from this pick list.
6. Then click on the "Ajax Tools" tab and "Start AJAX Tools" button.
7. This will open Ajax Tools in a new window.
If you need help to install/use Ajax tools, if you found a bug or you have a suggestion, please post a message to the message boards or send us a mail. Thanks.
| Command | Key |
| Save | Ctrl-S |
| Run | Ctrl-; |
| Shell | Ctrl-D |
| Close dialog | Esc |
| Select all | Ctrl-A |
| Copy | Ctrl-C |
| Cut | Ctrl-X |
| Past | Ctrl-V |
| Undo | Ctrl-Z |
| Find | Ctrl-F |
To create a new Apex package click the new button in the icon bar.
This will bring up a list of templates that can be used to generate Apex package.
Select the template from the list. This will take you to the template wizard like the one shown below.
Enter the name of the apex package and click next. This will generate a simple apex package and load it in the editor.
Click the Save button in the icon bar to compile and save Apex package. You can also press Ctrl-S in the editor to compile and save. If there is an error in the Apex code, then the code is not saved. An error message is displayed in the status bar (bottom of the page).
AJAX tools makes it really easy to test Apex code. It can generate a test page for all WebService methods in your apex package. To invoke WebService methods from test page click the Run icon in the icon bar or press Ctrl-; in the editor.
Enter the parameters for the apex method in the test page form and click invoke button to execute apex code. Result returned from the apex method is displayed at the bottom of the test page.
TODO
todo
todo
todo