Modify a database
Whether the Phocas Implementations team designs your databases or you do it yourself, as time goes on, you might want to modify those designs to meet your business’s needs. It's not unusual to go back and make changes, either to add new elements, delete things that are no longer needed or simply make some changes to the name or order of the items.
In Designer, you can take the following actions:
Customize the database components:
Some changes you make in Designer can potentially affect dashboards, favorites, and other items in Phocas that are connected to your database. For example, if you delete the Sales Rep dimension in Designer, this will cause a user's Sales Rep performance pie chart favorite to fail. Therefore, you should take particular care when deleting dimensions, properties, measures, streams, and dates. Renaming items is fine. For example, if you rename the Sales Rep dimension, the user's Sales Rep performance pie chart favorite will still work.
After you modify a database, you need to save and rebuild the database to apply your changes.
Rename an item
Rename dimensions, properties, measures, and streams, to give them more meaningful titles. Be careful not to use any of the reserved words and characters.
Click the Edit button next to the item name, then enter a new title (name) and click Save.
Reorder items
Change the order in which the dimensions, properties, measures, and streams display in their respective menus in Phocas. By default, items display in the order in which you map them.
Watch the Design your own database video from 2:13 to 2:17 for a demonstration.
Click the item’s Move button, then drag and drop it in the new position.
For example, in the image below, the Budget stream is being dragged from next to Sales across to the right of Orders. This sets it as the third stream in the list in the user's menu.
Change the data type of an item
Change the data type of dimensions, properties, measures, streams, and date (in some circumstances) sections. Changing the data type is particularly helpful for classifying your properties, as the data type can make a difference to the way the data can be analyzed and sorted in Phocas.
Click the Edit button next to the item name, select the required data type from the Type dropdown list and click Save.
The available data types depend on the component:
Text - The default data type for dimensions and properties.
Number - The default data type for measures.
Boolean - Available for properties only. See below for more information about Boolean property types.
Date - See Map the date for more information.
Paragraph - Available for properties only. Useful if you have a property containing a lot of text, such as a product description, and you want users to be able to view and export it in full. In the Phocas grid, the text is truncated to 100 characters, but users can click items to view the full text in a separate window.
Group properties
Put properties into groups by prefixing the property name with the group name, a dash, and a right arrow (without spaces), like this: Name->
Grouping is handy when you have a large list of properties. For example, suppose you want to group the properties Street, Country, and Postcode into a group named Address. After you add the prefix Address-> to the name of each property, users will see these properties grouped in the Property menu in Phocas.
Click the Edit button next to the property name, then enter the group name prefix and click Save.
Customize dimensions (hide the code, create groups, and include a group as a property)
Customize measures (change the format or create your own calculated measures)
Customize period types (set the period types and configure the moving period count)
Set a stream as Balance Brought Forward
Set a stream as Balance Brought Forward to give the transactions an opening balance plus movements. This is typical in a Financial database, where the value in a General Ledger account for a selected month is effectively the sum of all prior transactions. It is also useful with Inventory Movements databases, which also typically have an opening stock 'as set by a stocktake' and adjustments in and out for receipts and dispatches.
Click the Edit button next to the stream name, then select the Balance Brought Forward checkbox and click Save.
Modify the general database options (customize activity filter labels, suppress empty dimensions and streams, and set the Retained Earnings account code)
The Options button on the top right of the Design screen (next to the Save button) gives you access to general database options.
Customize activity filter labels
Customize the activity filter labels that appear in the Phocas grid. For example, in a Sales database, you might prefer the labels Sales and No Sales to Activity and No Activity, or in a Purchasing database you might want Purchases, No Purchases, and so on.
Enter your synonyms into the respective boxes, and click Save.
Suppress empty dimensions and streams
Remove dimensions and streams from the front-end view of the database when they do not contain any data. The items remain in the database design but don't display for users when they open the database.
Select the Suppress empty dimensions and streams checkbox and click Save.
Set the Retained Earnings account code (financial databases only)
Set the Retained Earnings account code you want to use to calculate Retained Earnings for the Balance Sheet. When the database is being built, Designer uses the specified code to assign Retained Earnings to the correct place. If no code is specified, it creates its own code, called Retained Earnings. Only accounts within the Equity category will work.
Enter a value in the Retained Earnings Code box, and click Save.