I use fetchxml to query an entity.
*This post is locked for comments
I use fetchxml to query an entity.
*This post is locked for comments
Hi Dmytro Rutkovskyi,
If using Javascript, I need more js code to show html to client. I want to use less code do more work.
At least you can put the values from the fetchxml into Javascript Array, revert it, and use it to render the results.
Hi Dmytro Rutkovskyi
I can't order in query, Because filter has lot's calculate to query result.
So, Do you have another suggest for me, Thank you.
Hello,
reverse works on arrays in liquid, in this case, it's more enumerable list which you can go only in one direction.
I suggest you add the condition to your {%fetchxml campaigns_Query %} like:
{% fetchxml campaigns_Query %} ....... {% if request.params['t'] %} <order attribute="someattr" descending="false" /> {% else %} <order attribute="someattr" descending="true" /> {% endif %} ...... {% endfetchxml %}
André Arnaud de Cal...
292,516
Super User 2025 Season 1
Martin Dráb
231,432
Most Valuable Professional
nmaenpaa
101,156