why there are two duplicate metadata requests

90 阅读1分钟

Created by Jerry Wang, last modified on Mar 03, 2015

  • ODataModel

    Actually they are not duplicated:
  1. the first one has accept type as xml, while the second one pure text.
  2. the prefix of the two are different: /sap and /1sap.
    First request:
    Trigger point: main view constructor is called:

    sap.ca.scfld.md.Startup.init is called in our application code:

    ConnectionManager.getNewInstance is called with configuration data maintained in file Configuration.js:

OData model instance is created based on this relative url: first request is sent out with relative url: second request: The application code is triggering the second request sent: The configuration comes from component metadata:

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