Can I order attributes by multiple criteria?

Question

Can I order attributes by multiple criteria? 

For Example, a FieldBased ordering strategy for Address as seen below, is it possible to change the ordering strategy to be based on 2 attributes, such as status and Address Line 1?

"attributeOrdering": {
"fieldURI": "configuration/relationTypes/HasAddress/attributes/AddressStatus",
"orderType": "ASC",
"orderingStrategy": "FieldBased"
},

Answer

A sorting strategy for an attribute is used to visually sort multiple instances of a nested or reference attribute.

Attribute Ordering is a sorting strategy for an attribute and is used to visually sort multiple instances of a nested or reference attribute. Attribute ordering strategy is defined in the Attributes Configuration. 

The field-based attribute ordering strategy is used only for complex attributes like nested or reference.

There is no option to set the fieldURI to 2 attributes URIs.

Attribute Ordering Strategy is of two types  - 

1) LUD [Last Update Date strategy ] -  The most recently updated attribute values will have the highest sort priority. By default, all attribute values are ordered by this strategy. The value with the maximum update date comes first.

{
"uri":"configuration/entityTypes/Individual/attributes/FirstName",
"name":"FirstName",
"label":"First Name",
"attributeOrdering": {
"orderingStrategy": "LUD"
},
"type":"String"
}

2) FieldBased strategy - Used Only for complex attributes like nested or reference. This ordering strategy defines that complex attribute values should be sorted in accordance with some attribute value inside these attributes. For example, for the nested attribute Education, we can use order based on the YearOfGraduation value.

{
​"uri":"configuration/entityTypes/Individual/attributes/Education",
​"name":"Education",
​"label":"Education",
​"type":"Nested",
​"attributeOrdering": {
​"orderingStrategy": "FieldBased",
​"fieldURI": "configuration/entityTypes/Individual/attributes/Education/attributes/YearOfGraduation"
​}
}

References

https://docs.reltio.com/configapi/attributeorderingstrategy.html?hl=orderingstrategy

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.