Skip to main content

Set up the views of a Knowledge

Besides the built-in Graph and Grid, a Knowledge can show its records in saved grids, calendars, an embedded dashboard, and custom views written in code by you or the AI, such as a map, a card wall, or a timeline. Views belong to the Knowledge, so everyone who can open it sees them.

Prerequisites​

Switch between views​

On the knowledge page, the header shows a button with the current view's icon and name. The Files button beside it always opens the Knowledge's input files.

  1. Select the view button to open the views panel.
  2. Find a view under Pinned, Default (the built-in Graph and Grid) or Views, or type in the search box. Use the arrow keys and Enter to open one without the mouse.
  3. To keep a view as a tab under the header, select the star beside it. See Pin the views you use most.
The view switcher open on the knowledge page, listing the available views, with the Files button beside it

The view switcher, with Files kept separate.

Manage views in settings​

Open the Knowledge's settings and select the Views tab. It has these sections:

  • Built-in views: Graph view and Grid view, each with an on/off toggle.
  • Custom views: the views you have created, including saved grid and calendar views, each with an on/off toggle.
  • Dashboard to embed: a Rational BI dashboard to show inside the Knowledge (Select a dashboard).

Choose the view a Knowledge opens in​

Open the ⋮ menu of a view and select Set as default view. The view must be turned on, and it then shows a Default label. The choice applies to everyone who opens the Knowledge. If you turn off a built-in view that is the default, the other built-in view becomes the default, as long as it is on.

The Views settings tab showing the Built-in views and Custom views sections

The Views settings tab, with the built-in and custom views.

Turn a built-in view on or off​

Under Built-in views, turn Graph view or Grid view on or off. A view you turn off disappears from the knowledge page at once. The Files button isn't a view, so it always stays.

Create a custom view​

  1. On the Views tab, select + in the Custom views header.
  2. Give the view a Name.
  3. Choose an Engine:
    • Plain HTML + JavaScript: one self-contained HTML document.
    • React (JSX): a React component named View, compiled for you in the browser.
    • Web Component: a custom element you host yourself, pointed at by a URL.
    • BI dashboard: one of your Rational BI dashboards, shown read-only inside the Knowledge.
    • Grid view: a saved grid with no code; you set its columns and filters on the knowledge page. You can also create one from the grid with Save as view.
  4. Select Create. Code views open in the editor with a small starter template.

A code view receives the Knowledge's records and can read more, save changes, open records, or ask the assistant, always with the permissions of the person looking at it.

The New custom view dialog with a name field and the engine options

Creating a custom view: pick a name and an engine.

Show records on a calendar​

A calendar view places records on days and hours by one of their date attributes: content to publish, site visits, contract deadlines.

  1. Open the Grid, select the collection tab and set the filter you want the calendar to show.
  2. Select Save as view (or Save as new view in a saved grid view).
  3. Enter a Name and, under Show as, choose Calendar. The option is there when the grid has a date or date-and-time column.
  4. Choose the Date that places each record, and optionally an End, a Colour (a single select attribute whose options color the records) and Solid when checked (a checkbox, such as Published, that shows checked records solid and the others outlined).
  5. Select Create.

The calendar switches between Day, Week, and Month. With update rights you can drag a record to another day or time, stretch it to change its end, double-click it to tick its checkbox, or select an empty slot to add a record there. Select a record to edit or delete it. The color options appear as chips with their counts, to filter what the calendar shows.

Select the gear (Calendar settings) to change the Start and End attributes, Colour by and Solid when, what a record is called ("post" and "posts" rather than "event"), which records it shows and whether it Opens on a day, week or month. Changes apply to everyone who opens the view.

A calendar shows up to 1000 records at a time

If the span on screen holds more, the calendar says so: narrow the view's filter, or switch to a shorter span. Records with a date and no time show as all-day; records with a time and no end last an hour.

Edit and save a view's code​

  1. On the Views tab, select a custom view's chevron to expand it.
  2. Edit the code in the editor (it has syntax highlighting and line numbers).
  3. Select Save to persist your changes, or Cancel to discard them and collapse the view.
An expanded custom view showing the code editor and the save bar

The custom-view editor with its save bar.

Improve a view with AI​

If you'd rather describe a view than write it, let the model draft the code for you.

  1. With a view expanded, select Improve with AI.
  2. Under Changes to make, describe what you want, for example "Show the contracts as cards grouped by supplier, with the renewal date in red when it is less than 30 days away".
  3. Select Improve view. The model rewrites the code for the view's engine, using the Knowledge's real attributes, categories and sample records as context, and keeps everything your request doesn't touch.
  4. Review the code in the editor, then select Save to keep it. The AI never saves on its own.

Improve with AI uses the workspace's default conversational model. If none is configured, the action shows an error.

Rename, preview, copy, or delete a view​

Each custom view's ⋮ menu holds the rest of its actions:

  • Rename: change the view's name.
  • Preview: jump to the view rendered on the knowledge page.
  • Copy code: copy the view's source to the clipboard.
  • Delete: remove the view (after a confirmation).

Use a custom view​

Once a view is turned on, open it from the views panel like a built-in view. It draws the Knowledge's live records.

A custom view rendered on the knowledge page, showing resources drawn from the Knowledge

A custom view running on the knowledge page, drawing the Knowledge's own records.

If the Knowledge has collections but they are still empty, the view shows "Fill in the tables to see this view" with a link to each collection, so whoever opens it knows where to add records or import a spreadsheet. A collection can also use a custom view as the page of each of its records: see Open a collection's records in a custom view.

HTML and React views run in an isolated frame, so a view can load the libraries it needs without affecting your session. Web components load directly, so use them only for elements you host and trust.

Next steps​