Question 1
Topic: Reactive Apps in OutSystems
Skill tested: Evaluates management of client variables across screen navigation and lifecycle events.
A service team is building a reactive app that lets an agent review several customer records in sequence. The selected customer ID is stored in a screen local variable. When the agent navigates away and later returns using the browser's Back button, the screen is reconstructed and the selection is lost. The team needs the selection to remain available while the user stays in the same app session, but it must not be shared with other users or persisted as customer data. Which change best meets these requirements?
A client-side session variable can retain a value across screens during the user's app session without persisting it as business data or sharing it with other users. A screen local variable belongs to that screen instance, so returning to a reconstructed screen does not automatically restore its value. OnReady does not recover values that were discarded. A database entity adds unnecessary persistence and cleanup concerns. Passing an input parameter works for a particular navigation transition, but it does not by itself retain the value across later navigation when no parameter is supplied.