list not displaying dbjoin elements in 'Merge rows' mode

kornacki

Member
Hi,

I have a list called 'Workout' to which is joined a table called 'parameters' and a table called 'exercise'.

When the display mode is set to 'Each row separately', everything displays properly.

However, when set to 'Merge rows', the Exercise element is not displayed. The Exercise element is a dbjoin in the Parameters table.

The attached images are from my main site. Here is a link to a test setup with less data.

http://kornacki.cloudaccess.net/workouts.html

John
 

Attachments

  • each row seperately.png
    each row seperately.png
    27.5 KB · Views: 376
  • merge rows.png
    merge rows.png
    18.1 KB · Views: 366
Hi Not sure they are the same issue to be honest. JFQ is reporting an SQL error and here we seem to have some missing data.

Anyway I can't replicate this, can you provide screenshots of the database join element's settings please?
 
Almost there.

After today's update, rather than not showing exercises in 'Merge rows' mode, every exercise after the first one is duplicated in each workout.

'Each row separately' is still good.


John
 

Attachments

  • Each Row separately.png
    Each Row separately.png
    24.9 KB · Views: 367
  • Merge rows.png
    Merge rows.png
    26.1 KB · Views: 349
Looking good now.

Just one flaw in the display. When a line wraps, the following items don't space correctly.

John
 

Attachments

  • line wrap.png
    line wrap.png
    6.7 KB · Views: 338
I've added some tweaks to the css for this into the bootstrap list template:

Code:
ul.fabrikRepeatData {
    list-style-position:inside;
    margin: 0 0 0 6px;
}
.fabrikRepeatData > li {
    white-space: nowrap;
    max-width:350px;
    overflow:hidden;
    text-overflow: ellipsis;
}

basically this will keep each li on a single line, with a max width of 350px, if the text length is more than that it gets truncated (overflow:hidden) and "..." added at the end (text-overflow:elipsis)
You may need to tweek the max-width depending on your list data, if so put that in a custom_css.php file inside the bootstrap list template folder.
 
That's great.

Thank you.

There is a minor issue with the navigation display. When any number other than 'All' is selected, the 'Display #' box displays the number selected.

With 'All' selected, the box shows '5'.

John
 

Attachments

  • Display#.png
    Display#.png
    28.1 KB · Views: 314
There is a minor issue with the navigation display. When any number other than 'All' is selected, the 'Display #' box displays the number selected.

With 'All' selected, the box shows '5'.
Ah yes, that should be fixed now

-Rob
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top