简体   繁体   English

如何在 1C 中通过 OData 获得额外的道具?

[英]How to get additional props by OData in 1C?

I published Odata service and tried to get additional props by OData in 1C.我发布了 Odata 服务,并试图在 1C 中通过 OData 获得额外的道具。 For example, I create user-defined property to entities "Warehouses".例如,我为实体“仓库”创建用户定义的属性。 Let's call this the space where users can move the warehouse area in square meters.我们把这个空间称为用户可以移动仓库面积的空间,以平方米为单位。 But when I get Entity by REST client, the array of additional props is empty - [].但是当我通过 REST 客户端获取实体时,附加道具数组为空 - []。 How can I do this, and what could be the reason for the missing value?我该怎么做,缺失值的原因是什么?

When you publish the OData interface, you use a special data processor to specify what data will be available through the REST API.当您发布 OData 接口时,您使用一个特殊的数据处理器来指定哪些数据将通过 REST API 可用。 Since additional attributes of objects in typical 1C programs are usually stored in the "AdditionalAttributesAndInfoSets" catalog, try to open access via the REST API for this catalog as well.由于典型的 1C 程序中对象的附加属性通常存储在“AdditionalAttributesAndInfoSets”目录中,因此请尝试通过 REST API 为该目录打开访问。 You can see an article on working with OData: https://1c-dn.com/blog/synchronization-between-a-mobile-app-and-a-database-server-on-the-1c-platform/您可以查看有关使用 OData 的文章: https://1c-dn.com/blog/synchronization-between-a-mobile-app-and-a-database-server-on-the-1c-platform/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM