Skip to Content Skip to Menu

How to access programmatically to the Query génerated by a list ?

  • Pachat
  • Pachat
  • OFFLINE
  • Posts: 52
  • Thanks: 3
  • Karma: -1
9 years 3 months ago #267863 by Pachat
Hi,

This is a tentative to solve the "Is it possible to export a list results to CSV"

On one hand, I have written a time ago some code that will export any SQL statement to Excel: simple, I just have now to give it the SQL statement (some extensions does it also).

On the other hand, the advanced users will create lists in backend.
CB Lists offers a nice way to build a query.

These same users not only want to see the list in the frontend, but would like to be able to export it to CSV simply by clicking a button/link on top of the list.

Hence my question : is there an event in the process of showing the list's results in the frontend which will give access to the very query builded and used by CB?

CBJuice is not an option here : my users want to export the list's results they are looking at.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48435
  • Thanks: 8275
  • Karma: 1443
9 years 3 months ago #267870 by krileon
A trigger to get the final resulting query string? Nope. Joomlas debugging has access to the raw result query, but I've no idea if that's accessible through API or if it's just stored in a query log array variable.


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.

  • beat
  • beat
  • OFFLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
9 years 3 months ago #267884 by beat
However, if you would like to propose one or two new events to add to Community Builder's API to allow you to cleanly interface your CB plugin for such kind of exports, that idea or patch/diff proposal is sure welcome for discussion.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

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

Moderators: beatnantkrileon
Powered by Kunena Forum