CB - How can I create multiple entries to a tab?

11 years 4 months ago #151876 by xbumble
Hi there,

I wonder if someone could please assist me.

I am creating a system for a client and they want to be able to store information against a registered user in Communnity Builder 1.3.

This is fine and I have created a number of new tabs, each with the relevant input fields for the information they want to collate inside the relevant tab.

However, one other thing they want to do is to store the date, amount, benefactor and notes for a user each time that user donates money to charity.

Now I could create a 'donation' tab and add a date field, donation amount field, benefactor field and a notes field but that would only let the client enter one set of information when they want to be able to continuosly add more information for the same field sets each time the user donates more money to chairty.

In a normal database I would have a second table linked to the first via an ID and then I could keep adding new data which is linked but can also be dealt with seperately and critically, have multiple records.

Is there a way I can build this relationship inside CB 1.3, and if so could someone please let me know how I can go about this. Also, if this is possible can I create a MySQL statement that would add up all the donations to display the grand total at the bottom.

Many thanks for any help given.

Please Log in to join the conversation.

11 years 4 months ago #151945 by krileon
You'll need to develop a new plugin to accomplish what you're wanting. I recommend using ProfileBook and ProfileGallery as examples to base your development off of as well as other available plugins.

If your donations were coming from CBSubs you then could of course use professional subscriber CB Query Field incubator project to display total donations (the plugin allows displaying result of a query as a field on users profile).


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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.173 seconds

Facebook Twitter LinkedIn