Skip to content

General

Change the HTTP Handler and URL Paramters for various configuration possibilities: Theme, Bootstrapping, Conten-Security-Policy etc. Check it out here.

Event

client->_event( t_arg = value # ( ( ... ?

Check the documentation here. There are different ways for adressing the event handler ($event, $source, $params) and you can select your value for example with /mProperties/property.
image
You can also call functions directly in the view as explained here.
image

URL Parameters

Use the following snippet:

abap
DATA(lv_search) = client->get( )-s_config-search.
DATA(lv_param) = z2ui5_cl_xml_view=>factory( client )->hlp_get_url_param( `myparam` ).

Format numbers, times & dates

Take a look at the following example:
https://github.com/abap2UI5/demo-demos/blob/main/src/z2ui5_cl_app_demo_47.clas.abapimage

Format Currencies

Take a look at the following example:
https://github.com/abap2UI5/demo-demos/blob/main/src/z2ui5_cl_app_demo_67.clas.abapimage

Open new tab

Use the following snippet:

abap
client->timer_set(
      interval_ms    = 0
      event_finished = client->_event_client( action = client->cs_event-open_new_tab t_arg = value #( ( `https://www.github.com/abap2UI5` )  )
) ).

Logon Language

Set the url parameter sap-language for this and check all other options here.

Released under the MIT License