Feature Request -- Dynamic Get -- Group #404
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#404
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Steps to reproduce the issue
I have a field in a table that doesn't have a separate joined table. In my instance, county. I want to create a list of items from only a single county.
I can create a dynamic get, but the list view will create a row for every instance of counties. For example, if there were 10 rows with county=County1, 5 rows with county=County2, the list view would show 15 rows, because that it what it correctly found.
If we had the addition of "Group By" in the Tweak tab, with only the table key, then I could enter a.county.
On compile, if group by has values, then a row similar to the following would be added along with where and order queries:
$query->group('a.county');
Currently I can add that code via custom code, but having a built in option would be cleaner.
Expected result
Have the ability to group rows.
Actual result
No option
System information (as much as possible)
Additional comments
Why did you close this again?
I was debating whether it would be a worthwhile suggestion, or just something that would be rarely used.
I just reopened it. None of what I was trying was working, then today I finally got it working. So, I do think that this may be a good option. I'm not sure how many people would use it, but grouping items might be a good feature to have available.
Okay so the feature has been added, please test it from the staging branch, and let me know.
It looks like it did good:
$query->order('a.county ASC'); $query->group('a.county');