Hi all,
I am building a solution model on top of a domain model we already have in place for a project.
The domain model contains all the instances we have in the project, but this consumer is only interested in a subset and would like some filters in place to ensure that they are only getting the subset of interest. One of the requirements is that a certain property is according to their project standards and has a minimum length for a property. I see that there is a Range filter to check if a numeric property’s value is within a specified range, but is there any way I can add functionality to get the values length for this property?
Answer
Data model filter on length of attribute value
Best answer by Anders Albert
I have checked now, and unfortunately we do not have such as filter. The closes we have is a prefix-filter, but that does not sound like what you need.
I guess a workaround is to introduce a new integer variable tagLength, store the length of the tag in it, and use a range filter. However, that puts requirements on you when you ingest data to ensure consistency.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Check the
documentation
Ask the
Community
Take a look
at
Academy
Cognite
Status
Page
Contact
Cognite Support