--- title: "Open portal" slug: "freaction-open-portal" updated: 2026-05-06T08:17:19Z published: 2026-05-06T08:17:19Z canonical: "docs.lobstersoftware.com/freaction-open-portal" --- > ## 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 portal > [!NOTE] > **Actions – Abstract** > > The [Open portal](/v1/docs/en/freaction-open-portal) action opens the specified portal. ![images/download/attachments/189434918/image-2024-10-17_11-57-25-version-1-modificationdate-1729159045036-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-10-17_11-57-25-version-1-modificationdate-1729159045036-api-v2.png) The action [Open portal](/v1/docs/en/freaction-open-portal) opens a specific portal taking into account extensive configuration options, which are explained in detail in the following sections: | Section | Subject | | --- | --- | | Selection of the portal to be opened | **Target element** and/or dropdown selection (under **Action Type**) | | Data assignment to the opened portal | Behavior data (`$input`) or option **With empty data** | | Parameters for opening the portal | - **Only one instance, Modal, Full size/Size changeable, Closable** | | Processes when closing the portal | - **Execute behavior after closed** (possibly with the return data from a [Request close](/v1/docs/en/freaction-request-close) action) | ## Configuration ### Selection of the portal to be opened > [!WARNING] > **IMPORTANT:** On one hand, the portal to be opened must exist and have been published at least once. On the other hand, it must also be assigned in context at the time of calling with the effective permissions of the current session (see [Association criteria](/v1/docs/en/core-association-criteria), [Company authorizations](/v1/docs/en/base-company-release)). Otherwise, the action is cancelled with an error ("Portal not registered"), which can only be tracked in the developer console of the browser. However, the following actions may still be executed. > [!CAUTION] > **CAUTION****:** If a portal is assigned a new **Portal name**, the references are not automatically updated. There are two methods for defining the portal to be opened, which if necessary can also be used in combination: - If a target element that returns a text value at runtime is linked for the action, this value is used as the name of the portal to be opened. - The name must be case-sensitive and correspond exactly to a portal name. - If there is no access to a portal with the specified name at runtime, the action is canceled (see ►IMPORTANT◄ above). - If no target element is linked or if the linked **Target element** does not return a value (`$null`) at runtime, the optional static definition of a portal in the configuration of the action is evaluated: - The unlabeled combobox below **Action type** offers a selection of all portals that have read access for *configuration* in the context of the session. - Whether [Association criteria](/v1/docs/en/core-association-criteria) are assigned to these portals and whether these criteria are currently in effect does not influence the dropdown selection. - However, at runtime, the specified portal must be "accessible" if it is to be opened, otherwise the action is canceled (see ►IMPORTANT◄ above). **NOTE:** In contrast to other configuration elements, each "portal name" must be unique in the system. [Association criteria](/v1/docs/en/core-association-criteria) (and their visibility in the context of a session) therefore controls access to a portal that is uniquely targeted. A choice between the alternatives, such as when addressing a view via the specified context (see [Open view (Form designer)](/v1/docs/en/freaction-open-view)), is not important. ### Data assignment to the opened portal The opened portal is assigned the following behavior data (`$input`) by default. Unless more specific mechanisms are required, the [Validate element](/v1/docs/en/frebehav-validate) behavior type allows the preparation of an "assignment" of (valid) element data from the current form to the opened portal. - The option **With empty data** should be set urgently if a portal is to be opened reliably without data assignment. For example, if a behavior for a [Button](/v1/docs/en/fre-button-vo) combines the [Click](/v1/docs/en/fretrigger-clicked) triggering event with a [Static](/v1/docs/en/frebehav-static) behavior type to execute the action [Open portal](/v1/docs/en/freaction-open-portal), the default value `true` (as `$input` from [Button](/v1/docs/en/fre-button-vo)) would be assigned to the open portal as form data without this option, which can cause undesired effects. ### Parameters for opening the portal | Parameter | Effect | | --- | --- | | **Only one instance** | Setting the **Only one instance** option causes the action to check at runtime whether an instance of the targeted portal is already open in the current session. - If this is the case, no additional instance of the same portal is opened. - Instead, the already open instance is assigned either "empty data" (option set) or the current behavior data (option not set), depending on the **With empty data** option. - If the action uses the parameter **Execute behavior after closed** (see below), a corresponding "flag" is registered for the existing instance. When closing, all registered behavior calls are processed, even if the same behavior is executed several times, for instance because a [Button](/v1/docs/en/fre-button-vo) for opening the portal was pressed multiple times. - If no instance of the portal exists yet, a new one is opened. If the **Only one instance** option is not set, a new separate instance of the portal is always opened. | | **Modal** | Setting the **Modal** option activates a number of dependent parameters (identified in this table by the preceding symbol "└" in the column header) and otherwise has the following effect: - The targeted portal is always reopened as a new instance without considering the option **Only one instance**, but does not occupy a separate view slot, but is "overlaid" in the context of the current one. - The instance is treated as a "modal window" within the view slot, which means that no activity outside the portal is allowed until the instance is closed. However, the view slot can be closed together. - In the ribbon menu of a "modally" opened portal, the ribbon button **Back** (with the symbol "<") is displayed, which can be used to close the portal to return to the calling form. **NOTE:** A behavior specified via the parameter **Execute behavior after closed** is executed. However, this behavior is not assigned any data from the portal. Without the **Modal** option, each open instance of a portal occupies a separate view slot. | | **└ Full size** | The **Full size** option has the effect that a "modally" opened portal uses the entire area of the current view slot when opened and hides the calling form.If this option is deselected, additional settings for the size are displayed (width, height, minimum width and minimum height). The specifications are to be given in pixel measure. | | **└ Closable** | The **Closable** option determines whether or not the "X" symbol for closing the portal appears in the window title of the "modally" opened portal. - The "Close" by clicking on this symbol is interpreted as a click on the **Back** ribbon button (with the symbol "<"). **NOTE:** Here, a behavior specified via the **Execute behavior after closed** parameter is executed. However, this is not assigned any data from the portal. | | **└ Size changeable** | The selection for **Size changeable** determines whether and, if so, in what respect (height/width) the user may change the window size of a "modally" opened portal. - If the **Full size** option is set, any selection for **Size changeable** is ignored. | ### Processes when closing the portal The optional parameter **Execute behavior after closed**, allows you to select a behavior configured for the calling form element. - This behavior is executed when the window with the targeted portal is closed. - The details described apply depending on the options **Only one instance**, **Modal** and **Closable**. **IMPORTANT:** Data from the open portal is only transferred on to the "Behavior after closed" if the action [Request close](/v1/docs/en/freaction-request-close) is executed there with the corresponding input data. ## Example ### Objective In a "Schedule meeting" portal, participants in the scheduled meeting are to be defined by adding the data of existing **Lobster Data Platform/Orchestration** [Users](/v1/docs/en/base-user) to a [Data grid](/v1/docs/en/fre-data-grid-vo) ("Attendee list") as new rows: - To select the attendees, click on the "Search" [Button](/v1/docs/en/fre-button-vo) to open a specific *search portal* modally (see red arrow). - Via the "Search profile" [Combobox](/v1/docs/en/fre-combo-box-vo) the calling portal offers two alternative methods ("Username" or "Username OR name 1-3") for selection. Each selection corresponds to a *search portal* whose portal name is stored as a static key value. - The selected search portal offers "matching" [Users](/v1/docs/en/base-user) to click on in a [Data grid](/v1/docs/en/fre-data-grid-vo) taking into account a search text from the calling portal ("... contains ...") (see green arrow). - When you click on one of the users found in the *search portal*, it is closed and the corresponding entry is added to the "List of attendees" in the calling portal (see orange arrow). - It should also be possible to end the search without making a selection by clicking the "X" symbol at the top right of the modal window. ![images/download/attachments/189434918/image2020-5-18_15-57-52-version-1-modificationdate-1729157243847-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2020-5-18_15-57-52-version-1-modificationdate-1729157243847-api-v2.png) ### Configuration *In the following, only the configuration for components directly related to the* [Open portal](/v1/docs/en/freaction-open-portal) *action is described in detail.* Behavior when calling the search portal: ![images/download/attachments/189434918/image2020-5-18_15-38-11-version-1-modificationdate-1729157243875-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2020-5-18_15-38-11-version-1-modificationdate-1729157243875-api-v2.png) - For the "Search" [Button](/v1/docs/en/fre-button-vo), a "userSearch" behavior is set up that reacts to the **Triggering event** [Click](/v1/docs/en/fretrigger-clicked) (red arrow). - The **Behavior type** [Validate element](/v1/docs/en/frebehav-validate) is applied with the [Column layout](/v1/docs/en/fre-row-element-container-vo-column-layout) element (#9), which contains the [Text field](/v1/docs/en/custom-custom-text-field) for the search criterion with the label "... contains ..." (green box, green arrow). This makes the relevant element data available in the portal opened by the action below. Here the [Text field](/v1/docs/en/custom-custom-text-field) was assigned the data field `criterion`, which is also used in the search portal (see below). - The action [Open portal](/v1/docs/en/freaction-open-portal) specifies the [Combobox](/v1/docs/en/fre-combo-box-vo) "Search profile" as target element. This returns the name of one of the alternatively usable search portals (USER_SEARCH_SIMPLE or USER_SEARCH_ADVANCED) as a text value based on the following service configuration: ![images/download/attachments/189434918/image2020-5-18_15-41-21-version-1-modificationdate-1729157243872-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2020-5-18_15-41-21-version-1-modificationdate-1729157243872-api-v2.png) In addition, if no selection is made, the dropdown in the configuration refers to the USER_SEARCH_SIMPLE portal as the default. - The option **With empty data** is not set so that the behavior data (with the search criterion) is assigned to the search portal. Further details are described in the configuration of the search portals (below). - The portal should be able to be opened as **Modal** and **Closable** and be adjustable in width and height (see **Size changeable**). - The parameter **Execute behavior after closed** refers to another behavior "addToList" which must be defined for the same [Button](/v1/docs/en/fre-button-vo) ("Search") and defines the processing of the return value from the search portal (orange arrows). Configuration in the search portal: *Only the search portal USER_SEARCH_SIMPLE is displayed here. The alternative search portal USER_SEARCH_ADVANCED has a similar structure, but uses a different condition for the* [Tuple search (Form designer)](/v1/docs/en/frebehav-tuple-search)*.* ![images/download/attachments/189434918/image2020-5-18_15-47-1-version-1-modificationdate-1729157243870-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2020-5-18_15-47-1-version-1-modificationdate-1729157243870-api-v2.png) - The [Text field](/v1/docs/en/custom-custom-text-field) "Username contains" refers to the data field `criterion` (matching the [Text field](/v1/docs/en/custom-custom-text-field) "... contains..." in the calling portal) and is therefore filled with the same text when the portal is opened. - For this [Text field](/v1/docs/en/custom-custom-text-field), the behavior shown on the right is defined, which reacts to the **Triggering event** [Changed](/v1/docs/en/fretrigger-changed) with all **Change types**. Only "Form data loaded" is relevant here as a change category, since value changes within the form are not intended. - The **Behavior type** [Tuple search (Form designer)](/v1/docs/en/frebehav-tuple-search) uses a link to the [Column layout](/v1/docs/en/fre-row-element-container-vo-column-layout) marked green in the screen. The string transferred in the [Text field](/v1/docs/en/custom-custom-text-field) "User name contains ..." is now available within the search configuration as the value of a variable named `criterion` (data field name of the text field). The [Tuple search (Form designer)](/v1/docs/en/frebehav-tuple-search) should only return data from users whose username (`username`) contains this value. This is achieved, for example, by the following [Field restriction](/v1/docs/en/core-property-search) in the condition of the tuple search [Tuple search (Form designer)](/v1/docs/en/frebehav-tuple-search): ![images/download/attachments/189434918/image2020-5-18_15-48-12-version-1-modificationdate-1729157243867-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2020-5-18_15-48-12-version-1-modificationdate-1729157243867-api-v2.png) The search result of the [Tuple search (Form designer)](/v1/docs/en/frebehav-tuple-search), projections for the fields ID (`id`), username (`username`), Name 1 (`address.name1`), Name 2 (`address.name2`) and Name 3 (`address.name3`), is assigned to the [Data grid](/v1/docs/en/fre-data-grid-vo) "User" via the [Grid: Fill](/v1/docs/en/freaction-fill-grid) action. Its column configuration uses the data field identifiers `id`, `username`, `address_name1`, `address_name2`, `address_name3` for the corresponding columns. It is important to use an underscore instead of a dot in the three name fields, since an alias is automatically created in the [Tuple search](/v1/docs/en/core-tuple-search). | ![images/download/attachments/189434918/image-2024-10-17_11-59-54-version-1-modificationdate-1729159194358-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-10-17_11-59-54-version-1-modificationdate-1729159194358-api-v2.png) | For the [Data grid](/v1/docs/en/fre-data-grid-vo) "Users", the behavior shown on the left is configured: - The **Triggering event** [Item click](/v1/docs/en/fretrigger-item-click) returns the clicked entry in the grid as behavior data. --- - Therefore, the behavior type [Static](/v1/docs/en/frebehav-static) (with the default value "true") is used here, which transfers this data to the **Actions on "true"**. --- - There, a [Request close](/v1/docs/en/freaction-request-close) action is executed, which returns the row selected in the [Data grid](/v1/docs/en/fre-data-grid-vo) to the calling portal. | | --- | --- | Behavior after closing the search portal: | ![images/download/attachments/189434918/image-2024-10-17_12-2-1-version-1-modificationdate-1729159321016-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-10-17_12-2-1-version-1-modificationdate-1729159321016-api-v2.png) | To close the search portal, either click on a line, which triggers the [Request close](/v1/docs/en/freaction-request-close) action with the data of the row, or click on the "X" symbol in the window title to end the modal search portal with a selection. Then the return value is `$null`. In both cases, the behavior specified in the parameter **Execute behavior after closed** is executed (here: "addToList"), for which a case distinction is recommended. - Here, the behavior type [Calculate](/v1/docs/en/frebehav-calculate) by **Check expression** examines, whether the return value from the portal is "empty" (`$null`) or not. The expression used`$not($isEmpty($input))`passes the result from the **Calculation expression** `$input)`to the **Actions on "true"**, only if it does not return $null, i.e. "empty" (see Functions [not (Logical negation)](/v1/docs/en/calc-function-not) and [ifEmpty](/v1/docs/en/calc-function-if-empty)). --- - Under the **Actions on "true"**, the [Grid: Add row(s)](/v1/docs/en/freaction-add-to-grid) action then transfers the existing row data to the [Data grid](/v1/docs/en/fre-data-grid-vo) linked as the **Target element** "List of attendees". --- - The **Actions on "false"**, on the other hand, only provide a [Show alert](/v1/docs/en/freaction-show-alert) action, which confirms to the user that the search has been canceled. | | --- | --- |