zl程序教程

您现在的位置是:首页 >  其他

当前栏目

SAP CRM Fiori My Appointment应用里点了Edit按钮后三个Roundtrip分析

SAP应用 分析 my 按钮 CRM 三个 Fiori
2023-09-14 09:03:54 时间

Thursday, July 23, 2015 2:15 PM

这三个roundtrip是串行的。如下图所示:

在这里插入图片描述

  1. authorization check request:
    GET /sap/fiori/cuscrmmycalendar/sap/opu/odata/sap/CRM_APPOINTMENT_SRV/EditAuthorizationCheck?ObjectGuid=guid’3440B5B1-6F66-1ED5-8BEB-A758FAFA33B7’ HTTP/1.1
    response:
    {“d”:{“EditAuthorizationCheck”:{"__metadata":{“type”:“CRM_APPOINTMENT_SRV.ActionResult”},“ActionSuccessful”:“X”,“Message”:""}}

2.a 拿ETAG request: sap/fiori/cuscrmmycalendar/sap/opu/odata/sap/CRM_APPOINTMENT_SRV/AppointmentSet(guid’3440B5B1-6F66-1ED5-8BEB-BE9CE64BF3E8’)

response:
在这里插入图片描述

2.b 拿appointment的attendee和attachment信息:

sap/fiori/cuscrmmycalendar/sap/opu/odata/sap/CRM_APPOINTMENT_SRV/AppointmentSet(guid’3440B5B1-6F66-1ED5-8BEB-BE9CE64BF3E8’)?$expand=Attendee,AppointmentToAttachment

3.a 在appointment的attendee和attachment信息读取回来之后,在successHandler里再继续读note信息。3.a和2.b是串行的,即2.b执行完之后,才轮到3.a执行:

在这里插入图片描述

3.b 还是在appointment和attendee的信息读取回来之后,在successHandler里调用attachment view的bindElement方法:

在这里插入图片描述

这个方法会call到框架的createBindingContext,最终导致再trigger一个odata request:

要获取更多Jerry的原创文章,请关注公众号"汪子熙":