In Service Studio you can use Web Blocks that are exposed by another eSpace, called, in this context, a Producer eSpace. Simply add these web blocks as eSpace references of your eSpace, called, in this context, a Consumer eSpace.
How to add a web block reference:
A web block reference also adds a screen flow reference. See how in Add an eSpace Reference.
Also, web block arguments may cause reference dependencies.
Once a web block is added as an eSpace reference, you can use it like any other web block in your web screens.
How to use a web block reference:
How Web Block References are Executed
A Web Block reference's preparation and screen actions are executed in the context of the Consumer eSpace, that is, within the same database transaction. However, the data content managed by these actions is relative to the Producer eSpace, namely Site properties, Timers, Session Variables, Roles, and Entities. There are exceptions, though: TenantId and TenantName site properties, which are always relative to the Consumer eSpace.
Links within the Producer eSpace are executed within its context, that is, their URLs are "expanded" in the Consumer eSpace so that they contain the complete path to the Producer screen.
In the following examples, eSpace1 is the Producer and eSpace2 the Consumer.
In eSpace2, you add a reference to the Header web block from eSpace1 that uses the UsersLoggedInSoFar site property. The value used by this web block is the value that the UsersLoggedInSoFar site property has in eSpace1, whether or not UsersLoggedInSoFar exists in eSpace2.
In eSpace2, you add a reference to the Header web block from eSpace1 that receives an input parameter UserId and invokes the Role action CheckAdministratorRole(UserId) in order to display extra menu tabs. This action is going to check whether the user of eSpace2 "sent" in the parameter UserId, has been granted access to the Administrator role of eSpace1, whether or not the Administrator role exists in eSpace2.
In eSpace2, you add a reference to the DepartmentHeader web block from eSpace1 that uses the TenantName site property. What you want is the corporate background image from eSpace1 personalized per department in a particular corner of the block where TenantName is used (each department is a different tenant). When it executes, the look and the links will be those of eSpace1 but the TenantName site property will be that of eSpace2, that is, the Financial department, as desired.
In eSpace2, you add a reference to the PortalMenu web block from eSpace1.This web block is a menu with several links to eSpace1, namely a Home link. eSpace2 also has a screen named Home, however, when AN end-user executes the web block PortalMenu in eSpace2, the flow goes to the Home screen of eSpace1.
Add/Remove eSpace References | Expose a Web Block | About Site Properties | Overview of Timers | Use an Entity Reference | About Platform Server Session