Hello.
How do I disable the operation in a specific field?
For our api, all number type data except for a specific column (year) must be operable.
We have defined the operations available for number type in the response value of /fields.
However, in the case of 'year', it is integer, but it must come only to row, column, so it must be impossible to calculate.
For certain columns, I'd like to disable the operation
Hello, Jhshin!
Thank you for your question.
Kindly note that you can specify available aggregations for a specific field in the /fields
response. Check out the following guide for more details: https://www.flexmonster.com/api/field-info-object/#aggregations.
Hope you will find our answer helpful.
Kind regards,
Solomiia
we set the aggregations field of specific column('year') to '[]', but it didn't work .
Aggregation of 'year' still followed the aggregation of number type we defined earlier.
Hello, Jhshin!
Thank you for your quick response.
Please note that it is not possible to completely disable aggregations for a field. When the component receives an empty array, it uses the default aggregations set for this datatype. We recommend sending aggregations: ["none"]
for the fields where no aggregations should be specified.
Hope it helps.
Kind regards,
Solomiia
Hello, Jhshin!
Hope everything is well.
Our team is wondering if setting the aggregations: ["none"]
was helpful to restrict the aggregations for a specific string field.
Please let us know if there are any further questions.
Kind regards,
Solomiia