Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/cookbook/event_navigation/life_cycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ description: The abap2UI5 app life cycle - every request enters main( ), and che

Every request enters the `main` method. One `IF` / `ELSEIF` chain dispatches between initialization, navigation returns, and user events using `` client->check_on_init( ) ``, `` client->check_on_event( `EVENT_NAME` ) ``, and `` client->check_on_navigated( ) ``. Each branch either does the work inline (tiny apps) or calls a named handler method (typical apps) — the **structure is always the same**.

![One roundtrip in five steps: the app draft is loaded, the user's changes are applied, main( ) runs, the response is built and the app draft is saved under a new id](/get_started/roundtrip.svg)

The picture shows one roundtrip. Your code is step 3: `main` runs once per click, on an instance the framework has just restored.

```abap
CLASS zcl_sample_life_cycle DEFINITION PUBLIC.

Expand Down
3 changes: 3 additions & 0 deletions docs/cookbook/model/binding.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ framework has already synced the user's changes back to your ABAP attribute:

![The attribute is bound, appears as a path in the view and the model, the Input shows it, and what the user types travels back into the attribute before main( ) runs](/cookbook/model/bound-value.svg)

The picture uses an attribute `quantity` as its example. The class below binds
`name` the same way.

```abap
CLASS zcl_app_hello_world DEFINITION PUBLIC.

Expand Down
Loading