We are using a computed attribute that combines other attribute values. Using the client, this attribute is displayed correctly, however when using the API to read the attribute value with item.Attribute(SID).ValueAsString we get an empty string as result.
Is this an error or are we doing something wrong?
最佳答案
S
SystemWeaver Support
说
将近6年 以前
Hi Stacey,
It is not possible to read computed attribute values using the API. Computed attribute calculation is only done in the client as it requires the help of the attribute editor to be able to read it.
Thank you,
Systemite Support
1 Comment
SystemWeaver Support
说
将近6年 以前
回答
Hi Stacey,
It is not possible to read computed attribute values using the API. Computed attribute calculation is only done in the client as it requires the help of the attribute editor to be able to read it.
Stacey Hwasser
We are using a computed attribute that combines other attribute values. Using the client, this attribute is displayed correctly, however when using the API to read the attribute value with item.Attribute(SID).ValueAsString we get an empty string as result.
Is this an error or are we doing something wrong?
Hi Stacey,
It is not possible to read computed attribute values using the API. Computed attribute calculation is only done in the client as it requires the help of the attribute editor to be able to read it.
Thank you,
Systemite Support
SystemWeaver Support
Hi Stacey,
It is not possible to read computed attribute values using the API. Computed attribute calculation is only done in the client as it requires the help of the attribute editor to be able to read it.
Thank you,
Systemite Support
-
Support for Autotest of API applications
-
Major version exception in API
-
Part multiplicity exception in API
-
Get enum attribute value description
-
Detecting connection status?
-
Item type name from SID
-
Adding an existing item as part to an item using C# API
-
Last Changed date isn't updating
-
Script filer och API
-
How do I return a DataTable instead of IswItems?
查看所有19话题