英文:
Is Odata Filter functions supported in SAP Cloud SDK -Java
问题
我想在我们的筛选表达式中使用OData函数SubstringOf。截至目前,我没有看到与GeneratedEntityName.PROPERTYNAME相关的API。
如果API不可用,是否有绕过方法来使用substringOf?
使用Java SAP Cloud SDK版本3.7.0。
英文:
I want to use the OData function SubstringOf in our filter expression. As of now I do not see any relevant api against GeneratedEntityName.PROPERTYNAME.
Is there a workaround to use substringOf incase the API is unavailable.
Using Java SAP Cloud SDK version 3.7.0
答案1
得分: 1
很抱歉,您所请求的功能目前尚未实现。由于依赖限制,SAP Cloud SDK 将无法提供本地解决方案来使用自定义筛选表达式。
new DefaultGeneratedService()
.getAllEntities()
.select(Entity.PROPERTY_NAME)
.withQueryParameter("$filter", "substringof('SAP', CompanyName)")
您将无法使用VDM(视图数据模型)来使用其他 filter
表达式。因此,您需要自己构建查询字符串。
我们计划在今年的某个时候启用自定义和基于类型的筛选器。
英文:
Unfortunately the feature you are requesting is currently not implemented. Due to dependency restrictions the SAP Cloud SDK will not be able to provide a native solution to use custom filter expressions.
new DefaultGeneratedService()
.getAllEntities()
.select(Entity.PROPERTY_NAME)
.withQueryParameter("$filter", "substringof('SAP', CompanyName)")
You will not be able to use other filter
expressions by the VDM. So you have to construct the query string yourself.
We are planning to enable custom and type based filters sometime this year.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论