|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Oct 2014
Location: Schweiz [Switzerland]
Device: Pocketbook Verse Pro
|
Displaying Row Color Based on the Maximum Number of Values in a Column
Dear Community,
Please excuse me if this question has already been answered. I searched but couldn't find anything. In any case, thank you for your help. Is it possible to change the row color of books when the following conditions are met: In the column with fixed values and the name "#m_status", there should be at most X entries with the value "!Lesen" ("!Read"). If the number is greater than value X, these books should be colored xyz (e.g., red). Would it perhaps even be possible, in the case mentioned, to only display books of the category "!Lesen" ("!Read") in the catalog? (Translated from German using Google Translate) |
|
|
|
|
|
#2 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,056
Karma: 1084520
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
Try adding this rule in Preferences/Look & Feel column coloring. Here's an image of the result.
|
|
|
|
|
|
#3 |
|
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Oct 2014
Location: Schweiz [Switzerland]
Device: Pocketbook Verse Pro
|
Thanks for the help.
I didn't explain myself very well. I'll try again to be clearer: 1. Query the column "#m_status" 2. Count the values in this column with the entry "!Lesen". (The entry "!Lesen" is the second in a list of 17 predefined values. The first value is an empty entry.) 3. If this count is greater than 5, then display all of these books (entire rows) of these X books (x rows) in the font color "Purple". I hope it's clearer now. |
|
|
|
|
|
#4 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,852
Karma: 80512826
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
I don't believe calibre has the ability to perform actions across multiple rows; ie counting how many rows have a given value.
It's possible that one of DaltonST's plugins might help but I'll caution you, DaltonST has been inactive for several years now. |
|
|
|
|
|
#5 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,056
Karma: 1084520
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
Reader4106 Does this work for you?
|
|
|
|
|
|
#6 |
|
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Oct 2014
Location: Schweiz [Switzerland]
Device: Pocketbook Verse Pro
|
Thanks for the tip and the help again.
As you can see from my questions, I have many ideas, but no knowledge or aptitude for anything even remotely related to programming. Please excuse that and bear with me. @dunhill: It might be helpful. But I don't know what to do with the StatusCounter.zip file. I downloaded it, extracted it, and tried to load it as a plugin, but I couldn't. If I understand the screenshot correctly, your program shows me how many entries there are. That's good. So it has the same functionality as in the attached screenshot? My original idea was to have all the books highlighted and/or marked when the number of values is greater than 5, so I could change the status until the limit is reached again. Now it seems this isn't as simple as I thought. So thanks for your help so far. |
|
|
|
|
|
#7 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,056
Karma: 1084520
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
Quote:
Do not unzip it; it's a plugin. Do this: Installation: 1. Download the latest version's zip file. 2. Preferences -> Plugins -> Load plugin from archive. 3. Select the zip file, install it, and restart Calibre. This version is much better, you owe me an Altbier. https://www.mobileread.com/forums/sh...d.php?t=372509 Last edited by dunhill; Today at 03:27 PM. |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| toggle values in a column | Fynjisx | Calibre | 1 | 08-27-2022 05:44 AM |
| What ebooks include Android, microSD slot and is it possible to root them? | Tlnvsn | Android Devices | 8 | 12-26-2017 11:33 AM |
| displaying multiple values in the same column beneath each other | Firedancer885 | Calibre | 2 | 11-27-2010 03:13 PM |