Desk

Desk



Frappe Framework comes with a rich admin interface called the Desk. It reads meta-data from DocTypes and automatically builds list views, form views, report views, etc for your DocTypes. Desk is to be used by users of the type "System User".

In this section we will discuss what views are provided by Desk and how to configure them.

Workspace
Awesomebar
List View
Form View
Grid View
Report Builder
Tree View
Calendar View
Gantt View
Kanban View
Desk Theme


Workspace



When you login, you're presented with the Desk, it features a persistent sidebar sorted in categories. Each sidebar item links to a page called Workspace.

A workspace represents a module (for example CRM in OneHash). A workspace includes the following:

A dashboard section for that particular module by default.
Shortcuts for commonly visited masters and pages
A masters section where all the reports and masters are grouped and listed
These features can be customized for each user directly from Desk.

These features can be customized for each user directly from Desk.



Awesomebar



Awesomebar helps you to navigate anywhere in the system, create new records, search in documents and even perform math operations.



List View



List View is generated for all DocTypes except which are Child Tables and Singles.

The List view is packed with features. Some of them are:

Filters
Sorting
Paging
Filter by tags

Switch view to Report, Calendar, Gantt, Kanban, etc.


Form View



Form view is used to view the records in a Form Layout. This view has a lot of things going on. But the primary purpose of it is to view and edit records. A document can be assigned to or shared with other users and it can have arbitrary attachments and tags, all of which can be seen in the form sidebar.



When you scroll down to the bottom of the form, you will see the form timeline. The form timeline shows emails, comments, edits and other events in a reverse chronological order.



Grid View



Grid view is used as a table in the form view to insert multiple records. User can configure the columns of the grid view from the form.



Report Builder



Report Builder is a generic tool to customize and build tabular data from a DocType. You can select columns to show, filters to apply, sort order and save this configuration by giving your report a name. You can also show Child Table data and also filter documents by their child records. You can also apply Group By on a column with aggregation methods like Count, Sum and Average.



Tree View



Frappe also supports tree structured records using the Nested set model. If a doctype is configured to be a tree structure, it can be viewed in the Tree view.




Calendar View



Calendar view can be configured for DocTypes with a start date and end date.



The configuration file should be named {doctype}_calendar.js and should exist in the doctype directory.

Here is an example configuration file for calendar view for Event doctype, which must be set in the event_calendar.js file.

Gantt View



Gantt view uses the same configuration file as calendar, so every DocType that has a Calendar view has a Gantt view too.

In case certain settings need to be overridden for the Event DocType's Gantt view (for example the order_by field) the configuration can be set in the event_calendar.js file with the following content.



Kanban View



Kanban view can be created for any DocType that has a Select field with options. These options become the column names for the Kanban Board.



Dark Theme



Frappe Framework has a first class support of dark theme. To switch the theme, click on your avatar on top right of the screen and click on "Toggle Theme". Once you click "Toggle Theme", you'll see following modal from which you can easily switch between available themes. To switch to dark theme select "Timeless Night".



Note: You can also press CTRL + SHIFT + G to open this modal.

Updated on: 21/03/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!