MSAMM
Back to course

Oracle Visual Builder: Applications That Outlive Their First Release · Module 4 · Variables, types and where state lives

The scopes, and what each one means

Lesson 34 of 176 · 3 min · Free preview

PAGE, FLOW and APPLICATION. How long each LIVES, who can SEE it, and what happens to it when the user NAVIGATES OR REFRESHES. Three scopes, and the difference between them is the single most consequential choice in this module. PAGE SCOPE LIVES AS LONG AS THE PAGE IS OPEN AND NOBODY ELSE CAN SEE IT. Navigate away and it is gone; come back and it starts fresh. That is the right default for almost everything — what is in this field, what this page loaded, which row is selected here. FLOW SCOPE LIVES AS LONG AS THE USER IS INSIDE THE FLOW AND EVERY PAGE IN THAT FLOW CAN SEE IT. Move between pages of the same flow and it survives; leave the flow and it is gone. Which is exactly the shape of "the thing the user is currently working on" — the customer they selected, the order they

This lesson is free

Watch the full lesson, with its written notes, without an account. It is one of the free lessons this course opens with.

Watch the full lesson

Get the free lessons by email

We will email you a link to every free lesson in this course. No account needed, and one message only.

In this module: Module 4 · Variables, types and where state lives

  1. 1What a variable is here
  2. 2The scopes, and what each one meansFree preview
  3. 3Choosing a scope, deliberately
  4. 4Types, and why you should declare them
  5. 5Types that mirror a service
  6. 6Computed values and expressions
  7. 7Variables that persist
  8. 8The event that fires when state changes
  9. 9State that four pages need
  10. 10Naming state so it is findable
  11. 11What breaks: four state failures
  12. 12Lab briefing · Move state and watch it break
The scopes, and what each one means — Oracle Visual Builder: Applications That Outlive Their First Release — MSAMM