Commit Graph

26 Commits

Author SHA1 Message Date
oblomov-dev
b44bbbf2f4
update hanlder for rfc call (#1512)
Some checks are pending
build_downport / build_downport (push) Waiting to run
build_frontend_classic / build_frontend_classic (push) Waiting to run
build_frontend_cloud / build_frontend_cloud (push) Waiting to run
2024-10-21 15:24:55 +02:00
oblomov-dev
eb45fcd2a4
adjust http handler to call from outside (#1511) 2024-10-21 09:02:28 +02:00
oblomov-dev
f6c111b907
handler_cleanup (#1509)
* handler_cleanup

* Update src/02/z2ui5_cl_http_handler.clas.abap

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>

---------

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
2024-10-17 19:51:18 +02:00
oblomov-dev
6a9eeafa43
fixes (#1503) 2024-10-14 10:03:09 +02:00
oblomov-dev
ae831d52a9
fix-db-cleanup-w-launchpad (#1473) 2024-10-03 12:07:20 +02:00
oblomov-dev
03d1f83723
new generated UI (#1472)
* update

* update

* update

* update

* update
2024-10-02 15:06:22 +02:00
oblomov-dev
e0cb6990f2
cleanup session comments (#1470) 2024-10-01 19:25:20 +02:00
oblomov-dev
533b863553
New frontend (#1468)
* new-frontend

* Update DebugTool.js

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update config
2024-10-01 18:34:44 +02:00
oblomov-dev
30f8cec526
New frontend test (#1466)
* update

* update ui52abap auto taransformation

* update

* commit changes

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* Update abaplint.jsonc

* update

* update

* update

* update

* update

* update

* update

* update

* Update abaplint.jsonc

* update

* update

* update

* update

* update
2024-10-01 00:25:48 +02:00
oblomov-dev
5280439bac
new-ui5-frontend (#1463)
* new app

* update structure

* update folder structure

* update

* update

* update

* Delete src/01/03/z2ui5_cl_ui5_cc_js.clas.abap

* update

* Update src/02/z2ui5_if_types.intf.abap

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>

* update

* update

---------

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
2024-09-29 23:36:48 +02:00
oblomov-dev
e9007c05da
New handler (#1446)
* new handler

* update

* update

* update

* update

* update

* fix statefulness

* update

* update

* update
2024-09-24 10:19:25 +02:00
oblomov-dev
ef4494bdb9
New UI5 frontend (#1443)
* Refactoring due to added Component support, slightly fixed session handl (#1439)

* Refactoring due to added Component support, slightly fixed session handl

* Update src/01/02/z2ui5_cl_core_http_get.clas.abap

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>

---------

Co-authored-by: oblomov-dev <102328295+oblomov-dev@users.noreply.github.com>
Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>

* session fix + tokens

* update stateful error

* pagehide for ios devices, beforeunload for desktop and others (#1440)

* fixes

* fixes excpetions

* update

* lint fixes

* replaced root view with app for launchpad  compati

* fix missed latest changes in init - added again

* update index html

* update

* update app

* update

* Update src/01/02/z2ui5_cl_core_http_get.clas.locals_imp.abap

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>

* Update src/01/02/z2ui5_cl_core_http_get.clas.locals_imp.abap

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>

* fixes

* lint fixes

* update

* Update src/01/02/z2ui5_cl_core_app.clas.abap

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>

* Update changelog.txt

* update

* Update src/01/02/z2ui5_cl_core_app.clas.abap

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>

---------

Co-authored-by: Michael Zinnöcker <29286643+mzinnoecker@users.noreply.github.com>
Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
2024-09-22 13:53:11 +02:00
oblomov-dev
4940a26a46
refactoring - filter functions - sticky functions (#1437)
* refactoring - filter fucntions - sticky functions

* update

* udpate

* update
2024-09-17 19:38:43 +02:00
oblomov-dev
1fba55457c
session-stickyness (#1435)
* Added Component and Session Stateful (#1433)

- Added Component support (TODO refactoring sap.z2ui5 and view handling -> instead of .placeAt use mainView of component manifest)
- Added Session Stateful support

*add the following lines to your REST handler in order to support stateful session handling*
'''abap
    if attributes-stateful-switched = abap_true.
      server->set_session_stateful( stateful = attributes-stateful-active ).
    endif.
'''

And here is an ABAP example class for testing session handling
'''abap
"! <p class="shorttext synchronized" lang="en">Session Demo</p>
class z2ui5_cl_demo_app_session definition
  public
  create public.

  public section.
    interfaces z2ui5_if_app.
    data instance_counter type i read-only.
    data check_initialized type abap_bool read-only.
    data session_is_stateful type abap_bool read-only.
    data session_text type string read-only.
  protected section.
  private section.
    methods initialize_view
      importing
        client type ref to z2ui5_if_client.
    methods on_event
      importing
        client type ref to z2ui5_if_client.

    methods set_session_stateful
      importing
        client   type ref to z2ui5_if_client
        stateful type abap_bool.
endclass.

class z2ui5_cl_demo_app_session implementation.
  method z2ui5_if_app~main.
    if check_initialized = abap_false.
      check_initialized = abap_true.
      initialize_view( client ).
    endif.

    on_event( client ).
  endmethod.

  method initialize_view.
    set_session_stateful( client = client stateful = abap_true ).

    data(view) = z2ui5_cl_xml_view=>factory( ).

    data(page) = view->shell( )->page(
      title          = `abap2UI5 - Sample: Sticky Session`
      navbuttonpress = client->_event( 'BACK' )
      shownavbutton  = xsdbool( client->get( )-s_draft-id_prev_app_stack is not initial ) ).

    data(vbox) = page->vbox( ).
    vbox->info_label( text = client->_bind( session_text ) ).

    data(hbox) = vbox->hbox( alignitems = 'Center' ).
    hbox->label( text = 'press button to increment counter in backend session' class = 'sapUiTinyMarginEnd' ).
    hbox->button(
      text  = client->_bind( instance_counter )
      press = client->_event( 'INCREMENT' )
      type = 'Emphasized' ).

    hbox = vbox->hbox( ).
    hbox->button(
      text  = 'End session'
      press = client->_event( 'END_SESSION' ) ).

    hbox->button(
      text  = 'Start session again'
      press = client->_event( 'START_SESSION' ) ).

    client->view_display( view->stringify( ) ).
  endmethod.

  method on_event.
    case client->get( )-event.
      when 'BACK'.
        client->nav_app_leave( ).
      when 'INCREMENT'.
        instance_counter = lcl_static_container=>increment( ).
        client->view_model_update( ).
      when 'END_SESSION'.
        set_session_stateful( client = client stateful = abap_false ).
      when 'START_SESSION'.
        set_session_stateful( client = client stateful = abap_true ).
    endcase.
  endmethod.

  method set_session_stateful.
    client->set_session_stateful( stateful ).
    session_is_stateful = stateful.
    if stateful = abap_true.
      session_text = 'Session ON (stateful)'.
    else.
      session_text = 'Session OFF (stateless)'.
    endif.
    client->view_model_update( ).
  endmethod.
endclass.
'''

* Update z2ui5_cl_core_http_get.clas.abap (#1434)

updated to reflect latest changes (sorry some local changes were los)

* lint fix

* lint fix

* xml fix

---------

Co-authored-by: Michael Zinnöcker <29286643+mzinnoecker@users.noreply.github.com>
2024-09-16 16:45:41 +02:00
oblomov-dev
f01f1ef57e
update hello world (#1392)
* update hello world

* Update README.md
2024-09-08 19:18:19 +02:00
oblomov-dev
58f9a80553
Cleanup (#1362)
Some checks are pending
build_downport / build_downport (push) Waiting to run
* cleanup

* update

* update

* update links
2024-09-04 10:20:58 +02:00
oblomov-dev
ebca4a691a
Cleanup (#1355)
Some checks failed
build_downport / build_downport (push) Has been cancelled
* update package structure

* update name
2024-08-31 12:52:43 +02:00
oblomov
0e7ba63842
Refactoring (#1329)
Some checks are pending
build_downport / build_downport (push) Waiting to run
* refactoring

* update

* update

* refactoring folder

* update

* update

* update

* package description

* update

* refactoring
2024-08-25 18:24:52 +02:00
oblomov
aeaaa3406f
simplify http handler call (#1233)
Some checks failed
build_downport / build_downport (push) Has been cancelled
* simplify http handler call

* Update src/02/z2ui5_cl_http_handler.clas.abap

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>

* Update src/02/z2ui5_cl_http_handler.clas.abap

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>

---------

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
2024-06-27 01:24:45 +02:00
oblomov
43d9524e6a
Simplify method call http handler (#1232)
* simplify method call http handler

* Update README.md

* Update src/02/z2ui5_cl_http_handler.clas.abap

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>

* Update src/02/z2ui5_cl_http_handler.clas.abap

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>

---------

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
2024-06-27 01:09:16 +02:00
oblomov
945318bb6d
fix_binding (#905) 2024-02-19 15:47:54 +01:00
oblomov
bc918ca908
Update abaplint-downport.jsonc (#902)
* Update abaplint-downport.jsonc

* Update z2ui5_cl_http_handler.clas.abap

* Update abaplint-downport.jsonc
2024-02-18 15:53:00 +01:00
oblomov
12c68094cc
refactoring (#872)
* refactoring

* update

* cell binding fix

* formatting
2024-02-07 19:02:41 +01:00
oblomov
064ddaa543
Refactoring (#871)
* refactoring

* update

* update

* update

* refactoring

* lint fixes

* update

* refactoring

* update

* update

* update tests

* update

* refactoring

* update
2024-02-06 20:53:31 +01:00
oblomov
3bea3d8ee8
chart.js fix (#865)
* refactoring

* update

* chart.js fix

* update

* update
2024-02-04 21:02:08 +01:00
oblomov
563a0e4306
Refactoring performance (#862)
* refactoring-performance

* Update and rename abaplint-basic.jsonc to abaplint-standard_abap_readiness.jsonc

* Update abaplint-app.json

* Update abaplint-app.json

* refactoring

* update lint fixes

* refactoring

* Update README.md
2024-02-04 14:08:04 +01:00