For example, if I have forms:
and I want to make a TableView with the following:
I tried the following, but it seems it doesn't seem to work:
id.queryAndRender(F1:@self;name1:[entry.id];info;table).uniqueBy(info)
Is it possible to distinct filter a queryAndRender tableview?
a possible solution I thought of would be using an expression instead of a field on the fields list:
queryAndRender(<formName:pageId>;<FILTER>;<FIELDS_OR_EXPRESSIONS>;<VIEW_TYPE>)
but for some reason it doesn't recognize expressions when I put them there.
Am I missing something regarding the usage of that function?
Whenever I try to put an expression there, no matter how simple the expression is, it just render the whole table, ignoring the fields.
What expressions "it doesn't recognize "?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
for example, I tried to put info.asCount() just to test it out also ([_count]), ([entry.)_count]) (_count).
queryCount doesn't fit there at all since there is a semicolon in it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What should be unique? The value in the “info” field?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, not with the queryAndRender
I think you will need to have something like a ListView with a nested and dynamically filtered TableView/CardView (where you can use distinct parameter)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.