Skip to Content Skip to Menu

[SOLVED] filtering with a custom query field

  • kdave321
  • kdave321
  • ONLINE
  • Posts: 191
  • Thanks: 24
  • Karma: 1
2 years 7 months ago - 2 years 7 months ago #329203 by kdave321
Client asked for an easy way to show which users had not joined a groupjive group.
I created a custom query field that simply returned a count of how many groups they were in from #__groupjive_users. It works as intended displaying the count on the profile.
But to be useful, how would I access this in User Mgmt Search Tools? The field is not available as a select?
I also tried creating a list in List Mgmt but again, it seems I cannot access this field in the filters. I'm guessing it won't work because it's not a column in a table?
Last edit: 2 years 7 months ago by krileon. Reason: Added [SOLVED] tag to subject

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
2 years 7 months ago #329209 by krileon
Replied by krileon on topic filtering with a custom query field
Query Fields cannot be searched. They're just displaying the results of your custom query. Backend user management cannot be extended with more fields in the table without making a custom CB plugin to do so at this time (we'll eventually have support for selecting additional fields to display as columns).

What you can do though is use a frontend userlist then under Filter selected Advanced. Now you can add to the userlist query to filter the users down to those without a GJ group. Advanced Filter directly adds to the WHERE statement of the userlist query.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • kdave321
  • kdave321
  • ONLINE
  • Posts: 191
  • Thanks: 24
  • Karma: 1
2 years 7 months ago #329213 by kdave321
Replied by kdave321 on topic filtering with a custom query field
That's what I was trying to do, unsuccessfully, with the Advanced Filter. The tooltip implies it's just the #__comprofiler_fields table...

so I realized I could refer to the other table like this:
ue.user_Id not in (select unique user_id from #__groupjive_users)
, and it works.

Thanks.
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum