How to access Function variables in Result(Set)


#1

Simple question:
[Android cbl 2.o]
Suppose an orderBy is:

.orderBy(Ordering.expression(Function.count(Expression.string("*"))).descending
How do I get the count variable from the Result?
Thanks,
nat


#2

You’d have to select it as well. You cannot pick things out of orderBy clauses. Also, instead of Expression.String(*) you should use Expression.All().


#3

Kinda makes sense!
Thanks,
nat