Skip to content

Latest commit

 

History

History
130 lines (99 loc) · 10.1 KB

File metadata and controls

130 lines (99 loc) · 10.1 KB

The sample catalogue

Every app in this repository — 32 of them — with what it shows and a link to its source. This is the overview app as a page you can read here, before installing anything.

What makes these different from abap2UI5/samples: each one needs something from your stack — an OData service, a RAP behavior definition, an APC channel, the Fiori Launchpad. The package README says what, and a sample that needs nothing but abap2UI5 belongs in the other repository.

To run one: install abap2UI5, pull this repository with abapGit, do the setup its package README asks for, then open <your endpoint>?app_start=<the class in the right-hand column>. Or run Z2UI5_CL_SMPS_APP_000 and click through the list — that is the same catalogue, in the app.

To read one: click the class. Every sample is a single class, so the link is the whole sample.

The small type under a title is the sample's search terms — what somebody would type who does not know it exists. Ctrl+F on this page uses them.


abap2UI5 - samples-stack — src

Sample Class
Overview — All Samples in This Repository
every sample in this repository, grouped by what it needs from the system
overview launchpad index start nav_app_call popover all samples
Z2UI5_CL_SMPS_APP_000

OData — src/01

Sample Class
Two Models in One View
one table bound to each, column headers from the metadata
odata model service entityset switch_default_model_path external binding
Z2UI5_CL_SMPS_APP_315

Smart Controls — src/02

Sample Class
Smart Table and Variants
with variant management - UI_PRODUCTLIST
smarttable smartfilterbar variant management annotations controlconfiguration odata
Z2UI5_CL_SMPS_APP_313
Switch Default Model
device, HTTP and OData model side by side - GWSAMPLE_BASIC
switch_default_model_path odata model default binding smart controls
Z2UI5_CL_SMPS_APP_314
Smart Multi Input
UI conditions mapped 1:1 onto an ABAP range table
smartmultiinput multi input tokens smart controls odata
Z2UI5_CL_SMPS_APP_319
SmartField in a SmartForm
needs the GWSAMPLE_BASIC OData service
smartform smartfield group groupelement columnlayout annotations
Z2UI5_CL_SMPS_APP_475
SmartForm, editable toggle
needs the GWSAMPLE_BASIC OData service
smartform smartfield editable toggle edit mode
Z2UI5_CL_SMPS_APP_476
SmartFilterBar and SmartTable
needs the GWSAMPLE_BASIC OData service
smartfilterbar smarttable filter search annotations controlconfiguration
Z2UI5_CL_SMPS_APP_477
Page Variant Management
needs the GWSAMPLE_BASIC OData service
smartvariantmanagement page variant save smarttable smartfilterbar filter
Z2UI5_CL_SMPS_APP_478
SmartChart with NavPopover
an analytical service - you supply the path
smartchart navpopover semanticobjectcontroller chart semantic object navigation
Z2UI5_CL_SMPS_APP_479
classic FilterBar variants
no service needed - the data is ABAP
filterbar filtergroupitem smartvariantmanagement classic filter variant
Z2UI5_CL_SMPS_APP_493

RAP — src/03

Sample Class
Read a Travel
reads one instance by its key - a missing key comes back in FAILED, not as an exception
eml rap read travel select entity behavior
Z2UI5_CL_SMPS_APP_001
Create a Travel
MODIFY ... CREATE, key from MAPPED
eml rap create travel insert commit datepicker
Z2UI5_CL_SMPS_APP_002
Update a Travel
changes single fields of one instance - UPDATE FIELDS names what may be touched
eml rap update travel modify commit table
Z2UI5_CL_SMPS_APP_003
Delete a Travel
deletes one instance - MODIFY ... DELETE FROM
eml rap delete travel remove commit table
Z2UI5_CL_SMPS_APP_004
Manage Travels, the Complete App
01-04 plus EXECUTE and COMMIT ENTITIES RESPONSE OF
eml rap crud travel manage popup objectstatus
Z2UI5_CL_SMPS_APP_005

RAP with Draft — src/04

Sample Class
Which Travels Have One
READ ... %is_draft = mk-on
eml rap draft list objectstatus which travels
Z2UI5_CL_SMPS_APP_006
Enter Draft Mode
Edit copies the active instance into a new draft, Resume picks up an existing one
eml rap draft edit enter lock mode
Z2UI5_CL_SMPS_APP_007
Change and Save a Draft
UPDATE ... %is_draft = mk-on
eml rap draft change save modify
Z2UI5_CL_SMPS_APP_008
Leave Draft Mode
EXECUTE Activate / Discard
eml rap draft discard resume leave mode
Z2UI5_CL_SMPS_APP_009
Complete Draft Handling
a whole app, not a snippet - the complete draft lifecycle in one screen
eml rap draft handling crud popup complete
Z2UI5_CL_SMPS_APP_010

Business Events — src/05

Sample Class
Ticket App
every create and update raises an entity event
rap business events ticket raise publish
Z2UI5_CL_SMPS_APP_011
Event Log App
what the handler wrote, newest first
rap business events log consumer subscribe
Z2UI5_CL_SMPS_APP_012

Stateful Sessions / Locks — src/06

Sample Class
Stateful Sessions — Locks
ENQUEUE_E_TABLE and ENQUEUE_READ, end and restart the session
stateful session lock enqueue dequeue set_session_stateful
Z2UI5_CL_SMPS_APP_485
Stateful Sessions — Basics
counts up while the session is stateful, starts over once it is not
stateful session basics state roundtrip set_session_stateful
Z2UI5_CL_SMPS_APP_486
Stateful Sessions — Navigation and Locks
every Next Lock View takes the next VARKEY, going back releases it
stateful session lock navigation nav_app_call check_on_navigated
Z2UI5_CL_SMPS_APP_490

AMC/APC — src/07

Sample Class
Websocket — News Feed
connect, publish, list the active connections - no JavaScript
websocket apc amc push channel feedlistitem news popover
Z2UI5_CL_SMPS_APP_489

MIME Play Audio — src/08

Sample Class
MIME — Audio and Play Sound
a success and an error tone, addressed by their ICF path
mime audio sound play_audio wav follow_up_action
Z2UI5_CL_SMPS_APP_487

Launchpad — src/09

Sample Class
Read Startup Parameters
what the tile passed in - client->get( )-t_comp_params
launchpad fiori flp startup parameters intent
Z2UI5_CL_SMPS_APP_481
Set Shell Title
follow_up_action( cs_event-set_title_launchpad )
launchpad fiori flp shell title follow_up_action
Z2UI5_CL_SMPS_APP_482
Cross-App Navigation Sender
hands two values over to another tile
launchpad fiori flp cross app navigation sender intent
Z2UI5_CL_SMPS_APP_483
Cross-App Navigation Receiver
reads them back out of its startup parameters
launchpad fiori flp cross app navigation receiver intent
Z2UI5_CL_SMPS_APP_484

Not samples

8 classes here are not apps and carry no tile: behavior pools, demo data, an event consumer and the generated APC protocol class. They are reached by a sample rather than looked up, which is why they are exempt from the keyword rule — but a catalogue that claims to account for the tree has to be able to say they exist.

Class What it is
Z2UI5_CL_SMPS_CONTEXT abap2UI5 EML sample - shared context
Z2UI5_CL_SMPS_BP_TRV abap2UI5 EML sample - behavior pool
Z2UI5_CL_SMPS_DATA_TRV abap2UI5 EML sample - demo data
Z2UI5_CL_SMPS_BP_TRD abap2UI5 EML sample - behavior pool (draft)
Z2UI5_CL_SMPS_DATA_TRD abap2UI5 EML sample - demo data (draft)
Z2UI5_CL_SMPS_BP_TCK RAP Events Demo - Ticket Behavior Pool
Z2UI5_CL_SMPS_EVT_TCK RAP Events Demo - Local Event Consumer (writes log)
Z2UI5_CL_SMPS_APP_489_WS Generated APC WebSocket protocol impementation class