--- title: "Open view (Form designer)" slug: "freaction-open-view" updated: 2026-05-06T08:48:53Z published: 2026-05-06T08:48:53Z canonical: "docs.lobstersoftware.com/freaction-open-view" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Open view (Form designer) *See also:* [Open view (Action)](/v1/docs/en/core-open-view-actor) > [!NOTE] > **Actions – Abstract** > > Opens a view to which *form data*, a reference to the ID of an entity or a [Search](/v1/docs/en/core-search) or a suitable *search* *restriction* (see [Restrictions](/v1/docs/en/core-i-search-restriction)) can be transferred, and optionally waits for a data object to be returned or the view to be closed. ![images/download/attachments/169633796/image-2024-3-21_9-9-49-version-1-modificationdate-1711008589777-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-3-21_9-9-49-version-1-modificationdate-1711008589777-api-v2.png) The [Open view (Form designer)](/v1/docs/en/freaction-open-view) action opens a view to which *form data*, a reference to the ID of an entity or a [Search](/v1/docs/en/core-search) or suitable *search restriction* (see [Restrictions](/v1/docs/en/core-i-search-restriction)) can be transferred, and optionally waits for a data object to be returned or the view to be closed. - Depending on the type of *input value*, the type of view to be opened (detailed view, overview, combined view) and the parameterization, there are numerous variants for the use of [Open view (Action)](/v1/docs/en/core-open-view-actor), which are systematically explained in the "Configuration" section. - If it is necessary to wait for the open view to close and, if necessary, process a return value from the view, a behavior must be specified for the **Execute behavior after closed** parameter that initiates the subsequent processes. Views are [Input forms](/v1/docs/en/base-entity-form), overviews (incl. [Custom overviews](/v1/docs/en/administration-designer-client-preferences-overview)), [Portals](/v1/docs/en/portal-portal), [Dashboard](/v1/docs/en/dashboard-1) or other views provided by the system (e.g. in the [Administration](/v1/docs/en/manage) menu item). > [!NOTE] > **NOTE:** > > - Alternatively, views can be opened in the context of [Event handling](/v1/docs/en/administration-designer-workflow-action-event-handler-configuration) or via [Client Workflow](/v1/docs/en/frebehav-client-workflow) using the [Open view (Action)](/v1/docs/en/core-open-view-actor) event action. > - Specific configuration options for [Portals](/v1/docs/en/portal-portal) are supported by the otherwise similarly structured [Open portal](/v1/docs/en/freaction-open-portal) action or the [Open portal (Action)](/v1/docs/en/portal-open-portal-actor) event action ## Configuration The configuration of the [Open view (Action)](/v1/docs/en/core-open-view-actor) covers a wide range of application scenarios and therefore offers numerous parameters. These are presented below in tabular form and grouped according to focus areas. | Selection of the view to be opened | | --- | | The view to be opened can be addressed in two different ways: 1. If static text is specified for the **View or menu node name** parameter, the system searches for a view or menu node with the specified name. In this case, the *input value* (`$input`) can be used for the "Data assignment" (see below) to the view (see top right: "Static definition..."). 2. If no text is specified for the **View or menu node name** parameter, a view or menu node name is expected as an *input value* (`$input`). The *form data* is then used for the data assignment – taking into account the "Data field" parameter if necessary (see below right: "Dynamic definition..."). **NOTE:** If the **View or menu node name** is handled in a variable way at runtime (e.g. via [Calculate](/v1/docs/en/frebehav-calculate) behavior), only the second option is possible. The **View or menu node name** parameter itself does not interpret any calculation expressions. --- A view is only opened if: 1. The specified string corresponds exactly to an existing menu node name or view name, 2. There are sufficient authorizations for the role used 3. At least one relevant configuration for the relevant context is assigned at runtime, if applicable (see [Association criteria](/v1/docs/en/core-association-criteria), [Company authorizations](/v1/docs/en/base-company-release)). Whether the following example values work as **View or menu node names** also depends in part on which **Lobster Data Platform/Orchestration** modules are licensed: --- - `documents` - Opens an overview for [Documents](/v1/docs/en/doc-document) via *menu node name*. - `de.lobster.scm.doc::Document\|listDetailsWindow` - Opens the same overview via *view name*. --- - `order/orderDetails` - Opens an input form for [Orders](/v1/docs/en/ord-order) via *menu node name*. - `de.lobster.scm.order.bto::Order\|detailsWindow` - Opens the same overview via *view name*. --- - `Portal$SELECT_PORT` - Opens a portal with the internal name `SELECT_PORT` via *view name.* --- - `dashboard$KPI2020` - Opens a dashboard with the internal name `KPI2020` via *view name.* | *Static definition of the view to be opened* The *view name* for the input form for [Users](/v1/docs/en/base-user) is defined as static text: - `de.lobster.scm.base.security.user::User\|detailsWindow` ![images/download/attachments/169633796/image-2024-3-21_9-10-49-version-1-modificationdate-1711008649329-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-3-21_9-10-49-version-1-modificationdate-1711008649329-api-v2.png) --- *Dynamic definition of the view to be opened* The *view name* is constructed using a **Calculation expression** in a [Calculate](/v1/docs/en/frebehav-calculate) behavior so that [Open view (Action)](/v1/docs/en/core-open-view-actor) opens an input form for [Users](/v1/docs/en/base-user) or for [Guest users](/v1/docs/en/base-guest-user) depending on the value of a [Check box](/v1/docs/en/fre-check-box-vo) element (*here*: `$el(11)`). The "calculated" text section is highlighted in the following *view names*: - `de.lobster.scm.base.security.user::User\|detailsWindow` - `de.lobster.scm.base.security.guest::GuestUser\|detailsWindow` ![images/download/attachments/169633796/image-2024-3-21_9-14-13-version-1-modificationdate-1711008853223-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-3-21_9-14-13-version-1-modificationdate-1711008853223-api-v2.png) **IMPORTANT:** The *input value* is only taken into account as a **View or menu node name** if there is no static text for the parameter itself. | | If a view cannot be opened, no error (*process exception*) occurs so that subsequent actions and behaviors are executed. However, this does not apply to an optional *follow-up process* triggered by **Execute behavior after closed**. This does not apply if no view is opened, because then no view is closed. How can I determine the *view name* and the *menu node name*? The *view name* and *menu node name* of a view that is already open can be determined by clicking on the ?-symbol at the top right of the window title while holding down the key combination `STRG`+`ALT` (or. `CMD+ALT` for *Mac*). In the context of an [Orders](/v1/docs/en/ord-order) input form, this results in the following message: ![images/download/attachments/169633796/image-2024-3-14_17-24-0-version-1-modificationdate-1710433440699-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-3-14_17-24-0-version-1-modificationdate-1710433440699-api-v2.png) *(Text marking added subsequently)* The first highlighted line defines the *view name* of a detail view (`detailsWindow`), i.e. addresses a data input form for [Orders](/v1/docs/en/ord-order). **IMPORTANT:** To open a view, do not use the *shorthand notation* from the line above, in which the associated *namespace* prefix appears instead of the full class name. The context entries with the *wildcard* symbol * are also not suitable for addressing the view. The second highlighted line defines the *menu node name* (`order/orderDetails`) for the same view, which corresponds to the menu path in the main menu ("Orders/order details"). **NOTE:** The *menu node name* does not appear here if a view was not opened via the main menu bar, but e.g. via [Open view (Form designer)](/v1/docs/en/freaction-open-view) or by clicking on a function in the ribbon ("New" or "Edit") in an overview. In this case, there is also no access to help topics (see [Online help](/v1/docs/en/core-online-help)) that are linked to the *menu node name*. | | **Data assignment for the view to be opened** | | While in the context of an [Open view (Action)](/v1/docs/en/core-open-view-actor) event action, the "form data" to be assigned for the view to be opened can be provided directly via a *value configuration*, in the context of the [Open view (Form designer)](/v1/docs/en/freaction-open-view) action, one of the following alternatives for data assignment applies depending on the method for selecting the view to be opened (see above): - With a static definition of the view selection via the **View or menu node name** parameter, the data assignment is based on the *input value* (`$input`) for the action, which is evaluated taking into account the optional **Data field** parameter. If this defines a data field path that can be evaluated for the *input value* (`$input`), this is taken into account for the data assignment. If no **Data field** is specified, this affects the complete *input value* (`$input`). This schema can be regarded as a default use case. - The dynamic definition of the view selection expects the name of the view to be opened as the *input value* (`$input`) for the action. The data assignment is then exceptionally based on the **Data field** parameter, which must then specify a data field path that can be evaluated within the complete *form data* so that a data assignment can take place at all. If no **Data field** is specified, the data assignment does not take the complete *form data* into account, but no data assignment takes place. The effect of a data assignment depends on several factors: - Which *view type* should be opened? - A data input form (`detailsWindow`) maps the detailed data of an individual entity to a form that can be used exclusively for the *entity type*. - An overview (`listSearchWindow`) enables access to data of multiple entities of the same *entity type* by mapping the result of a [Tuple search](/v1/docs/en/core-tuple-search) to a [Data grid](/v1/docs/en/fre-data-grid-vo). - A combined view (`listDetailsWindow`) combines a data input form and overview (with data grid) for the same *entity type* in the same view. - [Portals](/v1/docs/en/portal-portal) and [Dashboard](/v1/docs/en/dashboard-1) are not bound to a specific *entity type*. Unbound views are typically opened via [Open portal](/v1/docs/en/freaction-open-portal) (or similar). - If the data assignment provides an entity of the *entity type* to which the view to be opened (data input form, overview, combined view) is linked, this data is processed as follows, depending on the type of view to be opened: - A data input form (`detailsWindow`) is opened if necessary (see **Only one instance**) and loads the assigned data into the form. - An overview (`listSearchWindow`) is opened if necessary (see **Only one instance**) and the input form applicable for the context also appears as an independent view with the assigned data as form data. The result is similar to the state that a user achieves by opening the data input form from the overview (e.g. via "New", "Edit" or by double-clicking). However, an existing entity to which the data assignment relates does not appear selected in the overview if it is displayed there at all due to defined restrictions, filters and *paging*. **IMPORTANT:** If volatile data for an existing entity is loaded directly into a data input form, it can only be saved successfully – taking into account any changes made in the form – if no newer change status is registered for the entity on the server side than the one from the data assignment. In the event of a conflict, an error occurs when "saving" and the outdated status with the unsaved changes from the form can only be discarded. **NOTE:** [Open view (Action)](/v1/docs/en/core-open-view-actor) parameters that control the display behavior only affect the overview in this constellation and not the data input form opened as a "secondary" view. In the default view arrangement with only one *view slot*, the data input form covers the overview. In addition, there is no provision for waiting for a data return from the indirectly opened data input form or for closing this view without returning a value. - A combined view ( `listDetailsWindow` ) is opened if necessary (see **Only one instance**) and loads the assigned data into the detail area, i.e. the embedded data input form. If the data assignment relates to an existing entity that can appear in the overview due to any defined restriction (see [Custom overviews](/v1/docs/en/administration-designer-client-preferences-overview) ), this entity is also selected if it does not appear visible due to *paging* or applicable filters. - What *data type* does the data assignment provide? - If the data assignment provides the data object of a [Search](/v1/docs/en/core-search) (`Search` object) or a "Search restriction" (`ISearchRestriction`, see [Restrictions](/v1/docs/en/core-i-search-restriction)), this is processed as follows depending on the type of view to be opened: - A data input form (`detailsWindow`) may be opened, but appears empty because no restriction can be assigned to a data input form. - An overview (`listSearchWindow`) or a combined view (`listDetailsWindow`) is opened if necessary (see **Only one instance**), whereby the assigned [Search](/v1/docs/en/core-search) or "Search restriction" is used as a restriction for the list. The view then only lists entities that fulfill the search criteria from the assignment. This "filter" assigned when opening the view cannot be removed by executing the "List/Reset" command via the ribbon. If a custom overview (see [Custom overviews](/v1/docs/en/administration-designer-client-preferences-overview) ) is opened whose definition already provides for a "Restriction", two cases must be distinguished: - A [Sub search](/v1/docs/en/core-sub-search) is created from an assigned [Search](/v1/docs/en/core-search), which acts as a restriction for the open overview. The "Restriction" defined in the *custom overview* is combined with this [Sub search](/v1/docs/en/core-sub-search) using an AND link (see [Search junction](/v1/docs/en/core-search-junction)). - An assigned "Search restriction" is combined directly with the "Restriction" of the *Custom overview* using an AND junction. > [!WARNING] > **IMPORTANT:** > > In the context of a [Search](/v1/docs/en/core-search), [Joins](/v1/docs/en/core-abstract-join) can be used to perform the search directly (as an `INNER JOIN`) or via conditions that refer to [Joins](/v1/docs/en/core-abstract-join) via [Projections](/v1/docs/en/core-i-search-projection), as these can be transferred to the generated [Sub search](/v1/docs/en/core-sub-search) restriction. If a "Search restriction" is provided instead, the use of [Joins](/v1/docs/en/core-abstract-join) is potentially tricky if they are not mapped via a [Chained projection](/v1/docs/en/core-chained-projection). If the "Search restriction" uses projections that refer to a "Join alias", the *restriction* can only function without errors at runtime if the data grid definition dynamically assigned when opening the view via [Association criteria](/v1/docs/en/core-association-criteria) always contains a "matching" join with this "Join alias". If the join does not exist, a database error message appears when the view is opened and the overview is opened without data. | | The description for the following cases is based on the assumption that the **Force load** option is unchecked (default). | ![images/download/attachments/169633796/image-2024-3-21_9-15-57-version-1-modificationdate-1711008957915-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-3-21_9-15-57-version-1-modificationdate-1711008957915-api-v2.png) | | - - If the data assignment contains *another* complex data object (neither a "matching" entity nor a search or search restriction), an attempt is made to obtain a reference to the ID of an entity of the type to which the open view is linked: - If a data field name is specified in the **Data field** parameter, its return value is processed as described in the next section. - If the **Data field** parameter is not specified, the return value for the `id` property is processed as described in the next section. - If the data assignment provides a simple value directly or, as described in the previous paragraph, such a value can be obtained from a complex data object, this is interpreted as a reference to the ID of an entity of the type: - If it is not already a `Long` value, an attempt is made to convert it. - If the view to be opened is linked to an *entity type*, the system searches for an entity with the specified or determined "ID" (`id`). The following case distinction then applies depending on the type of view: - An input form (`detailsWindow`) is opened if necessary (see **Only one instance**) and loads the data of the referenced entity into the form. - An overview (`listSearchWindow`) is opened (see **Only one instance**) and the input form applicable for the context also appears as a separate view with the data of the referenced entity as form data. The result corresponds to the state that a user reaches by opening the input form from the overview (e.g. via "New", "Edit" or by double-clicking). However, the referenced entity to which the data assignment relates does not appear selected in the overview, due to defined restrictions, filters and *paging*. **NOTE:** In this configuration, [Open view (Action)](/v1/docs/en/core-open-view-actor) parameters that control the display behavior only affect the overview and not the data input form opened as a "secondary" view. In the default view arrangement with only one *view slot*, the data input form covers the overview. In addition, waiting for a data return from the indirectly opened input form or closing this view without returning a value is not provided for. - A combined view ( `listDetailsWindow` ) is opened if necessary (see **Only one instance**) and loads the data of the referenced entity into the detail area, i.e. the embedded data input form. If the referenced entity can appear in the overview due to any defined restriction (see [Custom overviews](/v1/docs/en/administration-designer-client-preferences-overview) ), this entity is also selected if it does not appear visible due to *paging* or applicable filters. | | If the **Force load** option is checked, both complex data objects and simple values are assigned directly to the open view, provided it is not a [Search](/v1/docs/en/core-search) or "Search restriction" (see above). | ![images/download/attachments/169633796/image-2024-3-21_9-16-28-version-1-modificationdate-1711008988181-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-3-21_9-16-28-version-1-modificationdate-1711008988181-api-v2.png) | | When the **Force load** option is checked, a client object (as an example of a complex data object) can be assigned to a portal. If **Force load** is not checked, an attempt is otherwise made in this constellation to read the designated **Data field** (or the default `id` property) from the complex data object. If this access returns a return value of the `Long` type or can be converted into a `Long` value, this value is assigned to the `id` field in a specially created client object that is transferred to the view (*here*: portal). | | **Data return from the view (optional)** | | > [!WARNING] > **IMPORTANT:** > > The [Open view (Action)](/v1/docs/en/core-open-view-actor) event action can be used to pause event handling in the call context when a view is opened until the open view is closed or a maximum "waiting time" expires. The [Open view (Form designer)](/v1/docs/en/freaction-open-view) action does not support this procedure. The execution of subsequent actions within the calling behavior cannot be stopped. Instead, a behavior can be specified that is executed when the open view is closed. A maximum "waiting time" is not provided. --- The *optional* **Execute behavior after closed** parameter specifies the behavior that is to be executed when the open view is closed. No behavior is selected by default. A data return from the open view can only trigger the [Request close](/v1/docs/en/freaction-request-close) action, which can only be accessed in the context of a behavior in a form. Data can therefore only be returned from a view that is a form ( input form, portal, dashboard) or contains a form (combined view). No return value can be transferred from a *simple* overview without a detail area. Nevertheless, a behavior can be selected that is executed after the overview is closed. | ![images/download/attachments/169633796/image-2024-3-21_9-17-26-version-1-modificationdate-1711009046346-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-3-21_9-17-26-version-1-modificationdate-1711009046346-api-v2.png) By default, the dropdown for the **Execute behavior after closed** parameter only lists the behavior names that are defined for the form element with the calling behavior. To be able to select and execute a behavior for another form element within the same form, the element in question must first be linked as a **Target element** for the [Open view (Form designer)](/v1/docs/en/freaction-open-view) action. By default is is set as **No target element linked**. The target element link can be found – as usual – in the first place under the properties of the action. The editing mode for the link is activated with a mouse click. ![images/download/attachments/169633796/image-2024-3-21_9-18-9-version-1-modificationdate-1711009089655-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-3-21_9-18-9-version-1-modificationdate-1711009089655-api-v2.png) ↓![images/download/attachments/169633796/image-2024-3-21_9-18-39-version-1-modificationdate-1711009119734-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-3-21_9-18-39-version-1-modificationdate-1711009119734-api-v2.png) | | **Display behavior of the view** | | **NOTE:** The **Force load** option does not affect the "Display behavior of the view" but the "Data assignment for the view to be opened" (see above). | | If the **Modal** option is unchecked (default), the view should be opened as an *independent* *view*. The **Only one instance** option then determines whether the view is also opened if (at least) one instance of the view is already open non-modally – i.e. as an *independent* *view*. If the **Modal** option is checked, the view is displayed *within the current view* when it is opened. The **Only one instance** option is then ignored. Additional options also appear in the configuration: - The **Full size** option determines whether a modally opened view should fill the current view as a "full screen" ("full coverage") or appear as a dialog box centered within the current view. - IIf this option is unchecked (default), additional parameters are displayed that affect the dimensions of the dialog window (**Width**, **Height**, **Min. width** and **Min. height**). These can optionally be assigned integer values (unit: pixels). - The selection field for **Resizable** also only applies to the display as a dialog box (i.e. **Full screen** unchecked). The selected option controls whether the height and/or width of the dialog can be changed interactively at runtime or not. - The **Closable** option is checked by default. It can be unchecked to prevent the title bar of the modal window from displaying the X symbol to close a modally displayed view. This is recommended if a data return from the view (see above) is expected. Otherwise, clicking on the X symbol would close the modal view without executing the behavior with the [Request close](/v1/docs/en/freaction-request-close) action, which is the only way to provide a return object. - The **Show "back button"** option is only relevant and visible as long as the **Closable** option is checked (default). It can then be checked differently from the default so that a **Back** ribbon button appears in the open view (by default on the far left in the main **Common** category). Clicking on **Back** closes the modally opened view, just like clicking on the X symbol at the top right of the view title. In both cases, "No value" (`$null`) is the return value. | ![images/download/attachments/169633796/image-2024-3-21_9-19-35-version-1-modificationdate-1711009175387-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-3-21_9-19-35-version-1-modificationdate-1711009175387-api-v2.png)*Initially, only three options are visible*. --- ![images/download/attachments/169633796/image-2024-3-21_9-20-25-version-1-modificationdate-1711009225370-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-3-21_9-20-25-version-1-modificationdate-1711009225370-api-v2.png)*When "Modal" is checked, further parameters appear.* --- ![images/download/attachments/169633796/image-2024-3-21_9-21-6-version-1-modificationdate-1711009266395-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-3-21_9-21-6-version-1-modificationdate-1711009266395-api-v2.png)*With "Full size", some parameters are removed again.* --- ![images/download/attachments/169633796/image-2024-3-21_9-21-47-version-1-modificationdate-1711009307228-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-3-21_9-21-47-version-1-modificationdate-1711009307228-api-v2.png)*Without "Closable" the "Back button" is omitted.* | ## Examples ### Simple use case: Open the input form for the "Owner" company account In a data input form for any entity (*here*: "Order"), a data input form with the detailed data of the relevant company account should be opened when clicking on the read-only [Combobox](/v1/docs/en/fre-combo-box-vo) element for "Owner" (`ownerId`). The company account form should be opened as a full screen modal with a "Back" button within the calling view. Configuration: | The screenshot on the right shows the "Editor" view of a data input form for [Orders](/v1/docs/en/ord-order) in which the [Combobox](/v1/docs/en/fre-combo-box-vo) element for the "Owner" (`ownerId`) field is selected. In the "Properties" bar (right), the "Behavior" tab is selected, which shows a behavior with the **Behavior** **name** "click": - [Click](/v1/docs/en/fretrigger-clicked) is selected as the **Triggering event**. - [Calculate](/v1/docs/en/frebehav-calculate) is selected as the **Behavior**: - The **Calculation expression** is used here to determine the internal ID of the company account selected as the "Owner". This value is read by the expression `$el(44)`as the return value of the [Combobox](/v1/docs/en/fre-combo-box-vo) element. - **Actions on "true"** are only executed if the **Check expression** returns "true" (`$true`). The condition `$cmp($input,>,0,i)`ensures that the company account form is only opened if the `ownerId` field contains a positive value. This is the case if a company account is assigned as the "Owner". However, the condition does not check whether the account referenced via the `ownerId` even exists. - The [Open view (Form designer)](/v1/docs/en/freaction-open-view) action configured under **Actions on "true"** addresses the default input form for company accounts via their view name in the **View or menu node name** parameter:`de.lobster.scm.base.company::CompanyAccount\|detailsWindow` - As the **Calculation expression** provides an integer value, no specification is required for the **Data** **field** parameter. - The **Modal**, **Full size**, **Closable** and **Show "back button"** options are checked so that the input form for the "Company account" appears as a child window within the calling view (*here*: "Order details"): ![images/download/attachments/169633796/image-2024-4-3_17-51-40-version-1-modificationdate-1712159500711-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-4-3_17-51-40-version-1-modificationdate-1712159500711-api-v2.png) | ![images/download/attachments/169633796/image-2024-4-3_17-48-29-version-1-modificationdate-1712159309254-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-4-3_17-48-29-version-1-modificationdate-1712159309254-api-v2.png) | | --- | --- | **NOTE:** By default, company accounts are maintained via a "Combined view", in which the default data input form is used in conjunction with a data grid. A separate menu item for opening a data input form for company accounts therefore does not appear. A pure input form can still be opened directly via the view name `de.lobster.scm.base.company::CompanyAccount|detailsWindow`. ### More complex use case: Open overview with first level children In a data input form for [Companies/Clients](/v1/docs/en/base-company-account), a [Button](/v1/docs/en/fre-button-vo) is provided that can be used to display "First level children" as a list in a modally opened overview. Configuration: | The following behavior is configured for the "First level children" [Button](/v1/docs/en/fre-button-vo) with the **Behavior name** "childCompanies": - The **Triggering event** [Click](/v1/docs/en/fretrigger-clicked) reacts when the [Button](/v1/docs/en/fre-button-vo) is pressed. - The **Behavior** triggered here is a [Client Workflow](/v1/docs/en/frebehav-client-workflow) whose task is to provide a suitable "Search restriction" as an *input value* (`$input`) for the [Open view (Form designer)](/v1/docs/en/freaction-open-view) action in the **Result** **expression** – {`restriction`} refers to a [Variable](/v1/docs/en/core-storage-value): - The "First level children" can be identified via a [Simple property restriction](/v1/docs/en/core-simple-property-search), which requires a match between the "ID" (`id`) property of the company displayed in the input form and the "Parent companies" (`parentCompanies`) list field of the company to be checked. - The [Open view (Form designer)](/v1/docs/en/freaction-open-view) configured under **Actions on "true"** refers to the **View name** for a company overview without a detail area: `de.lobster.scm.base.company::CompanyAccount\|llistSearchWindow` - The **Modal**, **Full size**, **Closable** and **Show "back button"** options are checked so that the "Company overview" appears as a child window within the calling combined view (*here*: "Company overview"): ![images/download/attachments/169633796/image-2024-4-3_17-55-12-version-1-modificationdate-1712159712622-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-4-3_17-55-12-version-1-modificationdate-1712159712622-api-v2.png) | ![images/download/attachments/169633796/image-2024-4-3_17-53-33-version-1-modificationdate-1712159613194-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-4-3_17-53-33-version-1-modificationdate-1712159613194-api-v2.png) | | --- | --- | | The screenshot on the right shows the configuration for the [Client Workflow](/v1/docs/en/frebehav-client-workflow): - The **Validating rule** uses a [Check type](/v1/docs/en/core-check-type-rule) to define the context of the entity type "Company account" for further configuration. Within the AND conjunction, an [Entity property rule](/v1/docs/en/core-entity-property-rule) with the [Compare with (Form designer)](/v1/docs/en/frebehav-compare-with) compare type checks whether the "ID" (`id`) property contains a value > 0. - As an **Action on passed rule**, a [Set value](/v1/docs/en/core-set-value-actor) event action is executed, which creates a [Simple property restriction](/v1/docs/en/core-simple-property-search) via the [Create instance with values](/v1/docs/en/core-create-instance-with-values-resolver) and assigns it to the `restriction` variable with the following values: - The name of the `parentCompanies` property evaluated is assigned to the "Projection" (`projection`) property as static text. - The string "`==`" (match) is assigned as the "Compare type" (`compareType`). - The value from the "ID" (`id`) object property is assigned to the "Long value" (`longValue`) property. **NOTE:** This [Simple property restriction](/v1/docs/en/core-simple-property-search) is considered fulfilled if the ID of the entity in the parent view is contained in the list of IDs in the `parentCompanies` property. In this respect, the open view only lists the "First level children". | ![images/download/attachments/169633796/image-2024-4-3_18-5-12-version-1-modificationdate-1712160312490-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-4-3_18-5-12-version-1-modificationdate-1712160312490-api-v2.png) |