MSAMM
Back to course

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

The event that fires when state changes

Lesson 40 of 176 · 3 min

Reacting to a value changing, and THE LOOP YOU CREATE WHEN TWO OF THEM REACT TO EACH OTHER. A variable can have an action chain attached that runs whenever it changes — which is powerful, useful, and the easiest way in this product to build something that will not stop. WHAT IT IS FOR IS THE GENUINE CASCADE. A country is chosen, so the list of regions must reload. A date range moves, so a chart must re-fetch. Writing that as "when this changes, do that" is exactly right, and the alternative — remembering to fire the reload from every place the country can be set — is the incomplete-fix pattern of Lesson 6. THE LOOP IS WHAT HAPPENS WHEN THE REACTION WRITES SOMETHING THAT IS ALSO WATCHED. A changes, its handler sets B, B's handler sets A. Neither line is wrong on its own and neither developer wrote a

The full lesson is part of the course

The video, the complete written lesson and the module quiz are included in Oracle Visual Builder: Applications That Outlive Their First Release, with a certificate on completion and a fourteen-day refund window.

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 event that fires when state changes — Oracle Visual Builder: Applications That Outlive Their First Release — MSAMM