ebs.openBusinessUnitModal

(FintechOS Studio 24.4.3 and later)

Opens a business unit selection modal that allows users assigned to multiple units to change their business unit context. The modal displays the currently active business unit and a drop-down list of the business units available to the user.

Syntax

Copy
ebs.openBusinessUnitModal(handler?: () => void): IBusinessUnitModal;
 
Parameter Data Type Description
handler (optional) Function

Optional callback function executed once the user confirms the business unit selection:

  • If no handler is provided, the page reloads automatically.
  • If a handler function is provided, the custom logic defined in the function is executed instead of reloading the page.

Response

Returns an object matching the IBusinessUnitModal interface, which allows you to interact with the modal.

Interfaces

IBusinessUnitModal

Represents a business unit selection modal. Provides references to the modal UI elements and a method used to remove the modal from the DOM.

Copy
interface IBusinessUnitModal {
    overlay: HTMLDivElement;
    dialog: HTMLDivElement;
    select: DevExpress.ui.dxSelectBox;
    button: HTMLButtonElement;
    destroy: () => void;
}
 
Property Type Description
overlay HTMLDivElement Reference to the background overlay element displayed behind the modal.
dialog HTMLDivElement Reference to the modal dialog container.
select DevExpress.ui.dxSelectBox Reference to the DevExpress drop-down component used to select the business unit.
button HTMLButtonElement Reference to the modal confirmation button.
destroy () => void Method used to remove the modal from the Document Object Model.

Examples