02-19-2014, 06:16 AM | #1 |
Enthusiast
Posts: 40
Karma: 10
Join Date: Jul 2011
Location: France
Device: iPad, Kindle 3, Kobo Glo, Kobo Aura
|
Apply Functions on a column on a set of select row
Hi,
I'm seeking a solution for this problem I have a custom Column type number with coma and for any reason i would add a value for theese cell after selected some row in the library exemple : in column Indice a have Sel Indice | Book > 1 | a book > 6 | book 2 3 | book 3 > 9 | book 4 after applying add 2 for column indice on selected 1,2 and 4 book i would obtain : > 3 | a book > 8 | book 2 3 | book 3 > 11 | book 4 and the same thing on a colum type like serie with index Is there an existing solution in calibre or this must done by a plug-in ? thank in advance regards Khan-Dam |
02-19-2014, 07:34 AM | #2 |
Grand Sorcerer
Posts: 11,740
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
If I understand correctly what you want to do (not sure), then you can do it with global search & replace. The attached screen capture shows how. It adds two to the #myint field for every book selected.
|
Advert | |
|
02-19-2014, 09:02 AM | #3 |
Enthusiast
Posts: 40
Karma: 10
Join Date: Jul 2011
Location: France
Device: iPad, Kindle 3, Kobo Glo, Kobo Aura
|
Yes it's exactily what i need
thank you very much for that i seek for a long time to do but i don't understand exactly that i can make without find and replace field in regular expression it make's me gain a lot of time when i maintain library is it possible to make same thing with adding something from the value in the column of the previous row #myint = #myint ( from previous row) + 1 regards Last edited by Khan-Dam; 02-19-2014 at 09:10 AM. |
02-19-2014, 10:14 AM | #4 | |
Grand Sorcerer
Posts: 11,740
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
You can do that sort of thing in a plugin, because it has access to the complete database and the complete selection list. |
|
02-19-2014, 01:43 PM | #5 |
Enthusiast
Posts: 40
Karma: 10
Join Date: Jul 2011
Location: France
Device: iPad, Kindle 3, Kobo Glo, Kobo Aura
|
Thanks a Lot
Regard from France |
Advert | |
|
Tags |
function, library managment, python |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
A way to have column w Fixed set o values but not alphabeticaly sorted ? | Riva3000 | Library Management | 9 | 09-21-2013 06:03 PM |
Set value of another column from composite? | dirgeon | Library Management | 1 | 02-03-2013 11:40 AM |
Using OnDevice to set the value of a custom column | WendyR14 | Library Management | 3 | 10-23-2011 08:03 PM |
Feature request - have tags set background colour of row | KPHarg | Calibre | 5 | 01-01-2010 12:44 AM |