Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount! Get 20% off now with code SPOOKY-2024!

Multiselect fieldlabels

  • sirweb
  • sirweb
  • ONLINE
  • Posts: 226
  • Thanks: 25
  • Karma: 2
8 years 1 week ago - 8 years 6 days ago #286987 by sirweb
Multiselect fieldlabels was created by sirweb
I use a 3pd tool to generate reports in Excel format.
I want to include some multiselect fields in the report, where I use both 'fieldtitle' and 'fieldlabel'.
In my report these fields displays like 'AR|*|SE' (fieldtitles) and I want to replace them to fieldlabels.
I guess the answer is somewhere in the CB code how to convert fieldtitle to fieldlabel on output, but I cannot find where.
Could you please give a hint?

Thanks.
Last edit: 8 years 6 days ago by sirweb.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
8 years 1 week ago #287007 by krileon
Replied by krileon on topic Multiselect fieldlabels
We use PHP to explode the field value by |*| which gives an array of values selected. They're then matched with value for their label in the _comprofiler_field_values table. I've no idea what code usage you've access to in your reporting extension.


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.
The following user(s) said Thank You: sirweb

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

  • sirweb
  • sirweb
  • ONLINE
  • Posts: 226
  • Thanks: 25
  • Karma: 2
8 years 1 week ago #287012 by sirweb
Replied by sirweb on topic Multiselect fieldlabels

krileon wrote: We use PHP to explode the field value by |*| which gives an array of values selected. They're then matched with value for their label in the _comprofiler_field_values table. I've no idea what code usage you've access to in your reporting extension.


Thanks. Yes, I expected that PHP was used. :)
I use Alter Reports which can handle PHP on field level.
I think your method is possible to use, but my programming skills is not enough to create this function from scratch.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
8 years 1 week ago #287016 by krileon
Replied by krileon on topic Multiselect fieldlabels
See getField of CBfield_select_multi_radio in components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php as that's where the field values are turned into labels for display purposes.


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.
The following user(s) said Thank You: sirweb

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

Moderators: beatnantkrileon
Powered by Kunena Forum