• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

Pre-Filtering a List or Grouping a list by single multiple choice checkbox element

sseguin613

New Member
Hello, I would like to view a list, tht contains an element that is a multiple choice checkbox. IS there a way to group single checkbox items together? Currently if you group that element, it will combine the multiple choice checkboxes into a single entry, rather than separate each one separately.

In other words, if someone selected 1 , 2, 3. and another person selected 1, it would group 1 and then 1,2,3 .

I want to display 1 separately, 2 separately 3 separately each grouped together.
 
Sorry, not clear, at least not to me.

A selected 1.
B selected 1 and 3.
C selected 2.
D selected 2 and 3.
E selected 3.

How do you want to group them?
 
Hi here is some screencaptures of what I am working with.

Screen Shot 2020-02-02 at 10.16.05 AM.png
Here is my checkbox element. Multiple items can be selected.

On the List page, they will appear like this (sorted by default by date and time)

Screen Shot 2020-02-02 at 10.16.33 AM.png

However if you go at the top and use the Group By option and select Train(s)... this is what you get.

train1.png

If for an entry, multiple train checkboxes were selected, it will show them together. I want to show each train separately, regardless of whether the entry had two selected or not.

The trains operate in pairs, so thats why it is setup for people to submit both together, however the pairs change regularily, so the numbers need to be selected separately each time an entry is made.

I want each train grouped separately.

1102
----
1124
-----

and not
11021124
 

Attachments

  • Screen Shot 2020-02-02 at 10.17.36 AM.png
    Screen Shot 2020-02-02 at 10.17.36 AM.png
    120.1 KB · Views: 65
  • Screen Shot 2020-02-02 at 10.16.55 AM.png
    Screen Shot 2020-02-02 at 10.16.55 AM.png
    96.2 KB · Views: 60
If it's a checkbox element (or a databasejoin displayed as checkbox) you have one single record, you can't split.
You can add a repeat group with a databasejoin (dropdown or radio) to a list of trains.
Then you'll get joined records (one for each train) which you can group by train.
 
Hello,

I have been trying to make the above suggestion work for the past couple days but really can't figure it out.
Could someone give me a bit more guidance on how this is to be done?

Trying now with a multiple selection Dropdown element.

Thank you.
 
Last edited:
I have tried another approach to accomplish something similar (still with no success).

I am using the Fabrik Content plugin to display the information I need in a Joomla Article.

Here is the code I am using at the moment.

{fabrik view=list id=1 o_train_train_tracker___date_submitted[condition]=Today repeatcounter=1 view=element list=1 element=o_train_train_tracker___train_number}

I am trying to get it to display only Train Numbers that were entered Today, and only show the numbers once (not for each instance it was entered in the day). They can be combined or separate, it doesn't matter in this case. I just want to list them in a "these were entered / spotted today).

All I get from the above code is one result and it is always the same one, never changes. Always seems to only show the most recent entry made.

I have repeatcounter=1 as I only want it to display once each train number that was entered today.

Here are the details from my Fabrik list and elements.
Here is the element I am trying to display (and it's ID is 11)
o_train_train_tracker___train_number

I am using the date gathered by element ID 19 o_train_train_tracker___date_submitted

I have also tried with o_train_train_tracker___train_number[value]=1 in my code, to see if it can select the first train number only to display but it still shows the most recent entry only.

Any ideas?
 
Last edited:
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top