Детали задачи
-
История
-
Решение: Нет решения
-
Medium
-
Не заполнено
-
Не заполнено
-
Не заполнено
-
Требуется
Описание
Если в атрибуте (напимер `avg(amount)?num|fmt(0.00)`), который мы пытаемся передать в параметр RecordAPI sortBy - выдает 500 ошибку.
Нужно научить RecordAPI обрабатывать такие параметры.
{"query":{"sourceId":"emodel/ecos-contract","language":"predicate","consistency":"EVENTUAL","query":{"t":"eq","att":"_type","val":"emodel/type@ecos-contract"},"page":{"skipCount":0,"page":1},"sortBy":[{"attribute":"avg(amount)?num|fmt(0.00)","ascending":true}],"groupBy":["legalEntity&counterparty"]},"attributes":{"0":"_created?disp","1":"_disp?disp","2":"_status{value:?str,disp:?disp}","3":"legalEntity{disp:?disp,value:?assoc}","4":"counterparty{disp:?disp,value:?assoc}","5":"subject{disp:?disp,value:?assoc}","6":"amount?num","7":"currency?disp","8":"date?disp","9":"summary?num","10":"name?disp","11":"number?num","12":"signatory{disp:?disp,value:?assoc}","13":"performer{disp:?disp,value:?assoc}","14":"duration?disp","15":".has(n:\"cm:content\")","16":".att(n:\"permissions\"){has(n:\"Write\")}","17":"amount","18":"legalEntity&counterparty?str"},"version":1}