mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-30 11:06:23 +08:00
update (#534)
* bugfix serialization * update * add new error message for binding errors * binding and url fix
This commit is contained in:
parent
eb97edf946
commit
7f5e3ec0d4
|
@ -179,9 +179,9 @@ CLASS z2ui5_cl_fw_db IMPLEMENTATION.
|
||||||
IF sy-subrc <> 0.
|
IF sy-subrc <> 0.
|
||||||
CONTINUE.
|
CONTINUE.
|
||||||
ENDIF.
|
ENDIF.
|
||||||
IF <deref_attri> IS NOT INITIAL.
|
* IF <deref_attri> IS NOT INITIAL.
|
||||||
lr_attri->data_rtti = z2ui5_cl_fw_utility=>rtti_xml_get_by_data( <deref_attri> ).
|
lr_attri->data_rtti = z2ui5_cl_fw_utility=>rtti_xml_get_by_data( <deref_attri> ).
|
||||||
ENDIF.
|
* ENDIF.
|
||||||
CLEAR <deref_attri>.
|
CLEAR <deref_attri>.
|
||||||
CLEAR <attri>.
|
CLEAR <attri>.
|
||||||
ENDLOOP.
|
ENDLOOP.
|
||||||
|
|
|
@ -107,8 +107,6 @@ CLASS z2ui5_cl_fw_model IMPLEMENTATION.
|
||||||
DATA(lr_view_model) = z2ui5_cl_fw_utility_json=>factory( ).
|
DATA(lr_view_model) = z2ui5_cl_fw_utility_json=>factory( ).
|
||||||
DATA(lo_update) = lr_view_model->add_attribute_object( z2ui5_cl_fw_binding=>cv_model_edit_name ).
|
DATA(lo_update) = lr_view_model->add_attribute_object( z2ui5_cl_fw_binding=>cv_model_edit_name ).
|
||||||
|
|
||||||
* DATA(lt_binds) = VALUE z2ui5_if_client=>ty_t_name_value( ).
|
|
||||||
|
|
||||||
LOOP AT mt_attri REFERENCE INTO DATA(lr_attri) WHERE bind_type <> ``.
|
LOOP AT mt_attri REFERENCE INTO DATA(lr_attri) WHERE bind_type <> ``.
|
||||||
|
|
||||||
IF lr_attri->bind_type = z2ui5_cl_fw_binding=>cs_bind_type-one_time.
|
IF lr_attri->bind_type = z2ui5_cl_fw_binding=>cs_bind_type-one_time.
|
||||||
|
@ -127,7 +125,7 @@ CLASS z2ui5_cl_fw_model IMPLEMENTATION.
|
||||||
IF sy-subrc <> 0.
|
IF sy-subrc <> 0.
|
||||||
RAISE EXCEPTION TYPE z2ui5_cx_fw_error
|
RAISE EXCEPTION TYPE z2ui5_cx_fw_error
|
||||||
EXPORTING
|
EXPORTING
|
||||||
val = `BINDING_ERROR - No attribute found with name: ` && lr_attri->name.
|
val = `Error while creating the response, seems that some app data is not available anymore. <p>BINDING_ERROR - No attribute found with name: ` && lr_attri->name && `</p>`.
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
CASE lr_attri->type_kind.
|
CASE lr_attri->type_kind.
|
||||||
|
|
|
@ -166,8 +166,9 @@ CLASS z2ui5_cl_fw_http_handler IMPLEMENTATION.
|
||||||
` let method = sap.z2ui5.oResponse.PARAMS.S_TIMER.EVENT_FINISHED.split( '(' )[ 0 ];` && |\n| &&
|
` let method = sap.z2ui5.oResponse.PARAMS.S_TIMER.EVENT_FINISHED.split( '(' )[ 0 ];` && |\n| &&
|
||||||
` let oArgs = [];` && |\n| &&
|
` let oArgs = [];` && |\n| &&
|
||||||
` oArgs.push( JSON.parse( (sap.z2ui5.oResponse.PARAMS.S_TIMER.EVENT_FINISHED.split( '(' )[ 1 ].split( ')' )[ 0 ].split( '}' )[ 0 ] + '}').replaceAll( "'" , '"' ) ) );` && |\n| &&
|
` oArgs.push( JSON.parse( (sap.z2ui5.oResponse.PARAMS.S_TIMER.EVENT_FINISHED.split( '(' )[ 1 ].split( ')' )[ 0 ].split( '}' )[ 0 ] + '}').replaceAll( "'" , '"' ) ) );` && |\n| &&
|
||||||
` let oArgsPara = sap.z2ui5.oResponse.PARAMS.S_TIMER.EVENT_FINISHED.split( '(' )[ 1 ].split( ')' )[ 0 ].split( '}' )[ 1 ].split( ',' ).slice(1);` && |\n| &&
|
` // let oArgsPara = sap.z2ui5.oResponse.PARAMS.S_TIMER.EVENT_FINISHED.split( '(' )[ 1 ].split( ')' )[ 0 ].split( '}' )[ 1 ].split( ',' ).slice(1);` && |\n| &&
|
||||||
` oArgsPara.forEach( ( item, index, arr ) => { arr[index] = item.replace( '"' , '' ); } );;` && |\n| &&
|
` let oArgsPara = sap.z2ui5.oResponse.PARAMS.S_TIMER.EVENT_FINISHED.split( '(' )[ 1 ].split( ')' )[ 0 ].split( '}' )[ 1 ].split( '"' ).slice(1);` && |\n| &&
|
||||||
|
` // oArgsPara.forEach( ( item, index, arr ) => { arr[index] = item.replace( '"' , '' ); } );;` && |\n| &&
|
||||||
` oArgs = oArgs.concat( oArgsPara );` && |\n| &&
|
` oArgs = oArgs.concat( oArgsPara );` && |\n| &&
|
||||||
` if (method == 'onEvent'){ sap.z2ui5.oController.onEvent(...oArgs); }else{ sap.z2ui5.oController.onEventFrontend(...oArgs); }` && |\n| &&
|
` if (method == 'onEvent'){ sap.z2ui5.oController.onEvent(...oArgs); }else{ sap.z2ui5.oController.onEventFrontend(...oArgs); }` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
|
|
Loading…
Reference in New Issue
Block a user