You are here. See how this question connects to other ideas.
Select a node to open its page · Expand to read within the map
One question
Can the view change while the object stays the same?
Separating context from projection lets multiple views refer to the same operational objects.
- One task objectrefer to shared state→
- Projection A / Bchoose presentation→
- List / presentation card
One task can appear in a compact list or a presentation card. If both views reference the same task, changing the layout need not create a second business object.
Follow two steps to distinguish the related meanings of projection:
- Choose the available working scope. Which tasks can the report organizer access? Can they read them or change their status? This constructs the participant’s resource view.
- Choose a presentation. Show those available tasks as a list, cards or another interface. This constructs the visual view a person sees.
Both select what is needed from richer context, but they answer different questions. Switching a list to cards should not by itself expand access.
Scroll position and an open menu may belong to one view. Task completion may belong to the shared business object. The application must explicitly decide which state is shared.
Check your understanding
Must two views share their scroll position?
No. Sharing an object does not require sharing every detail of presentation state.
Continue along a learning path
- Read an interface from both sidesStep 3 of 5
- What should endure?Step 4 of 6