BrainGrid Controller
Window creation
Window Visibility

Window Visibility Options

This documentation describes how users can control the visibility of related windows based on foreign key relationships, commonly used in parent-child scenarios.

Configuring Window Visibility

For windows like Attendance and Leave that have a foreign key relationship with another window (e.g., Employee), visibility options allow users to display related windows in a tabular view or in the sidebar. Visibility options are as follows:

  • Show in Sidebar: The related window (e.g., Attendance, Leave) appears in the sidebar by default.
  • Show in Tabular: The related window appears as a tab within the parent window, such as when viewing an individual employee's record.

Rules for Visibility Settings

  • At least one option—Show in Sidebar or Show in Tabular—must be selected.
  • Users can choose to display the window in both the sidebar and tabular views or in either view exclusively.

Example:

Given an Employee window with related windows Attendance and Leave:

  • Show in Sidebar: Attendance and Leave appear as links in the sidebar, allowing quick access to these records.
  • Show in Tabular: When viewing an Employee record, Attendance and Leave appear as tabs. Any record added in these tabs is automatically linked to that employee.

Functionality

When Show in Tabular is enabled, viewing an Employee record displays the Attendance and Leave windows in tabs. Any Attendance or Leave records created from these tabs will be linked directly to that employee. This setup enhances usability in scenarios where related data (e.g., Attendance and Leave) is commonly accessed from within a parent record (e.g., Employee).

By using the window visibility option, users can effectively manage parent-child relationships and improve navigation and data entry for linked records.