Skip to Content Skip to Menu

[SOLVED] Order a list with a Query result

  • kalimero2
  • kalimero2
  • OFFLINE
  • Posts: 20
  • Thanks: 2
  • Karma: 0
12 years 2 weeks ago - 12 years 1 week ago #212102 by kalimero2
Hello,

I have a "query field" (webcam status), that gives the result:
- 0 (if webcam is off)
- 1 (if webcam is on)

Now I would like to make a userlist, that shows first, the users with "webcam on".

But I can not do it because the "query field", cant be used in lists.
Is it a possible solution for this?
Last edit: 12 years 1 week ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48449
  • Thanks: 8280
  • Karma: 1443
12 years 2 weeks ago #212134 by krileon
Replied by krileon on topic Re: Order a list with a Query result
You can't, it's a calculated field and no value actually exists in database for it to add to 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.

  • kalimero2
  • kalimero2
  • OFFLINE
  • Posts: 20
  • Thanks: 2
  • Karma: 0
12 years 2 weeks ago #212142 by kalimero2
Replied by kalimero2 on topic Re: Order a list with a Query result
:S

It is a big problem to me, because my community shows webcams.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48449
  • Thanks: 8280
  • Karma: 1443
12 years 2 weeks ago #212153 by krileon
Replied by krileon on topic Re: Order a list with a Query result
You'll need to either have 2 userlists, 1 for cams on and 1 for cams off as you could add your query as a filter or you'll need to develop a plugin to alter the userlist query and add whatever sorting/filtering you need/want.


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.

  • kalimero2
  • kalimero2
  • OFFLINE
  • Posts: 20
  • Thanks: 2
  • Karma: 0
12 years 2 weeks ago #212174 by kalimero2
Replied by kalimero2 on topic Re: Order a list with a Query result

as you could add your query as a filter


How can I add a query as filter?

The field "cb_oncam" is not in the filter list...
I have try to make an advance filter:

`cb_oncam` IS NOT NULL

but it doesnt work.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48449
  • Thanks: 8280
  • Karma: 1443
12 years 2 weeks ago #212180 by krileon
Replied by krileon on topic Re: Order a list with a Query result
You'll need to do an Advanced filter and adjust the query from there. Please search as several examples can be found on the forums as well as in your documentation; I don't know your database tables or anything of the sort so I can't help you in that regard.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum