======Administrative Functions====== These tools are used by the administrator and are accessible through the **admin** panel in the top right of the SugarCRM interface. =====Adding a New Data Field to a Module===== - While logged in as administrator, click the **Admin** link at the top right. - Scroll down to find the **Dropdown Editor** link and click it. - Choose a dropdown to edit or click the **Add Dropdown** button. - Dropdown items are added and can be placed in any order by dragging and dropping or sorted by name. It is often desirable to put a "none" item at the top of the list. - After saving the dropdown, click the **Studio** button at the bottom of the page. - Find the module you would like to add the new dropdown to, expand the folder, and click **Fields**. - Click the **Add Field** button at the top of the center window. - Choose the data type "DropDown" (or whatever else), and fill in the rest. - Under "Drop Down List" find and choose the dropdown you created earlier. - Choose a default value. - Check the box next to "Mass Update" if you would like this field to be mass updatable. - Click **Save**. - Under the module folder you've selected, expand the "Layouts" folder. - Click **EditView**. - There are now 2 panels labeled "Toolbox" and "Layout." You can drag items from the Toolbox into the Layout panel. Drag the "New Row" item from the Toolbox into one of the sections under Layout. - There is now a new row. Scroll down in the Toolbox to find the new field you would like to add and drag it into the new row you created under Layout. - Click the **Save & Deploy** button above the Toolbox. The new item you added to the Layout has changed. There is now a "+" symbol next to it. Click the **+** and click the **Save & Deploy** button again. - Now, under the Layouts folder on the left, click **DetailView** and repeat the process. EditView and DetailView refer to the page for editing a record and the page for viewing the details of a record. Fields must be added to them separately, which is why this process must be repeated. =====Adding a New Lead Status===== - While logged in as administrator, click the **Admin** link at the top right. - Scroll down to find the **Dropdown Editor** link and click it. - In the "Dropdowns" list on the left, scroll down and click on **lead_status_dom**. - In the center window, enter an "Item Name" which shouldn't have a space in the name. This is the name used by the database. It will not be displayed. - Enter a "Display Name". This will be the name displayed while managing Leads, so choose a descriptive name. - Click **Add**. - Dropdown items can be placed in any order by dragging and dropping. - When you are done, click **Save**. ====Adding Field to List View==== - If you would like to add a field to the List View, go to the Admin panel and click **Studio**. - Expand the module folder of your choice, expand "Layouts", and click **ListView**. - Drag ant drop items from the "Available" column or "hidden" column into the "Default" column and click **Save & Deploy**. ====Adding Field as a Search Parameter==== - To make a field searchable, go to the Admin panel and click **Studio**. - Expand the module folder of your choice, expand "Layouts", expand "Search", and click either **Basic Search** or **Advanced Search**. - Drag items from the "Hidden" column into the "Default" column and click **Save & Deploy**. =====Application Backup/Repair===== The purpose of this tool is to assist in creating backups of the Sugar application files. (Database backups should also be performed regularly. Please refer to your database vendor's documentation for information on how to backup your database.) ====Backup==== - Click the **admin** link in the top right of the page. - Scroll down to the "System" header and click **Backups** beneath it. - Enter a directory which is writable by Sugar. - Enter a filename. It will be saved as a .zip file. - Click the **Confirm Settings** button. The backup is now downloadable at [[#|http://yoursite.com/filename.zip]] ====Repair==== - Click the **admin** link in the top right of the page. - Scroll down to the "System" header and click **Repair** beneath it. - A list of application components is displayed. Choose the component you wish to repair. - A successful repair is indicated by redirecting you to a page that says "Done." =====Database Backup===== First, you need to find out the name of the database that SugarCRM is using. You only need to do this once (as long as you remember or write down the name of the database – it will never change). - To find out the name of the database log in to your SugarCRM system using your administrator details. - Then, click on **admin** at the top of the screen. - Scroll down to the "System" section then click on the **Diagnostic Tool** option. - Unselect all options except for the “SugarCRM config.php” one – the config.php file has all sorts of information about how the SugarCRM system works. - Then, click on the **Execute Diagnostic** button. This will do the diagnostic and ask you to download the Diagnostic File. - Click the link to download the Diagnostic File. - The Diagnostic File is a ZIP file. Once downloaded to your computer, open it and you will see one file inside, the "config.php" file. - Open the "config.php" file in a text editor and look for the section that starts with “dbconfig”. This is the part that tells SugarCRM where the database is and how to connect to it. The "db_name" bit contains the name of the database used by SugarCRM. The name may be different for each installation, but will never change. - Now that you know the name of the database, you can track it down and make a backup of it. This can be done through your hosting provider's cPanel, phpMyAdmin, or done manually by your system administrator. - Click the link to download the Diagnostic File. - The Diagnostic File is a ZIP file. Once downloaded to your computer, open it and you will see one file inside, the "config.php" file. - Open the "config.php" file in a text editor and look for the section that starts with “dbconfig”. This is the part that tells SugarCRM where the database is and how to connect to it. The "db_name" bit contains the name of the database used by SugarCRM. The name may be different for each installation, but will never change. - Now that you know the name of the database, you can track it down and make a backup of it. This can be done through your hosting provider's cPanel, phpMyAdmin, or done manually by your system administrator. =====Useful Links===== * http://support.sugarcrm.com/ * http://www.tmdhosting.com/tutorials/sugarcrm/sugarcrm-backup.html * http://www.cloudproductivity.net/how-to-setup-sugarcrm-part-3-backups/ * http://www.youtube.com/watch?v=Gk1Wq5G2B88