Skip to Content Skip to Menu

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

Field Management, working with other than CB tables

9 years 3 months ago #267000 by DougMarshall
Thank you for your consideration, I searched but did not find anything.
I have some tables in my database such as zip code, job titles and office directory which I would like to include as select fields in my profiles.
You have a field labeled "param" which enables selecting "user parameters".
How can I (if possible) create that field using my "zip code" or "directory" tables?
I attempted a query SELECT fld_zipcode FROM w5x27_zipcode but it did not populate the dropdown.
Does this mean those fields have to be created in cb first? Is it possible to create a table in CB?
Thanks again for your time and consideration!!
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
9 years 3 months ago #267008 by krileon
The params field is for rendering Joomla userparams. It sounds like you want to have a dropdown select field with options pulled from a separate database table. For that you need to use CB Query Field. Please see the below tutorial videos regarding CB Query Field.

www.youtube.com/playlist?list=PLp0puRITgC7MM9iP9FooKB1qk8f5MLWVp

We also have the below tutorial.

www.joomlapolis.com/support/tutorials/107-use-cases/18377-configuring-a-country-field-with-cb-query-field-plugin


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.

9 years 3 months ago #267022 by DougMarshall
Replied by DougMarshall on topic Field Management, working with other than CB tables
Thank you again,
Actually I want to create a "CB Tab" with all the fields from that table whereby the information can be updated. There is about 35 fields in the table of which 18 require updating twice a year. The names entered into the fields are selected from "CB User Management" which needs to be filtered based on "Office".
By the way, I managed to get the SELECT syntax corrected, removed the quote marks.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
9 years 3 months ago #267025 by krileon
You want to display information from a different database table on a profile tab? That's also doable by CB Query Field. Beyond that I don't understand what you're trying to do. If they're just standard fields that you need then create them in CB > Field Management and place them on whatever tab you like (you can create new tabs in CB > Tab Management).


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.

9 years 3 months ago - 9 years 3 months ago #267031 by DougMarshall
Replied by DougMarshall on topic Field Management, working with other than CB tables
Thank you, I will use the query field option, I was hoping to pull all those fields at one time as with your "param" field.
Thanks again.
Last edit: 9 years 3 months ago by DougMarshall.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
9 years 3 months ago #267080 by krileon
The query field supports custom multi-column output so you could pull all the information you're wanting at once then format it however you need using HTML and substituting in the columns. The params field doesn't query anything and is just values from the Joomla user object.

Another option is to create standard fields in CB > Field Management then use CB Auto Actions and a query action to synchronize the two tables using an update query. As long as something links them together like their user id then it should work fine to synchronize the data on every login or however you'd like to do it. This would eliminate having any additional queries at all except for the synchronize 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.

Moderators: beatnantkrileon
Powered by Kunena Forum