能否使用 SAP oData Navigation 属性 将第一个实体的密钥获取到相关实体的数据提供程序 class 中?

Can a SAP oData Navigation Property be used to get the Keys of the first entity into the Data Provider class of the related entity?

例如,有两个实体,Parent和Child。任何 Parent 个实体都有 1..n Child 个实体。有没有办法在 SEGW 中设置服务,以便在从 Parent 到 Child 调用导航 属性 时,Child 的数据提供者 Class 是使用 table 个 Parent 键调用,因此随后可以选择每个 parent 的所有 child 个实体?这是为了将列表嵌套到 SAP 移动开发工具包的详细信息屏幕中。

与此同时,我们围绕 get_expanded_entity 方法构建了此功能。然而,还有另一个问题,我将打开另一个问题。

一般都要用到oData的$expand运算符。 oData 实体应该有一个 ddic 结构,可用于填充内部 table,然后将其传递给 get_expanded_entityset 方法内的函数 copy_data_to_ref。这将 return 一个嵌套的 odata 结果