![]() |
#1 |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,600
Karma: 7511185
Join Date: Sep 2020
Device: none
|
Custom Column question - Date field was last modified
Hi all,
I have a Yes/No custom column named #fav, that I use in conjunction with Action Chains plugin (Single Field Edit) to set a star emblem in Cover Grid by pressing F, dedicated to store my favourite titles. Today I wanted to see the date some title was added to Favourites, as if it were possible to sort those "bookmarks" the same way web browsers like Waterfox Classic do... then I noticed I couldn't. lol So I think I need to create a new custom column of the type "built from other columns", that will look for the value stored in #fav and set the date that value was changed, is that correct? I looked into the template language section of the Calibre docs, but couldn't figure out how to create that custom column. In fact, the only custom column I have of the "built from other columns" type is one that uses the {:'approximate_formats()'} function, which was easy to do as all it needed was a simple copy/paste from the manual. BTW I learned the other day that the custom columns feature was contributed to Calibre by @chaley, thank you so much Mr. Haley. Last edited by Comfy.n; 09-19-2022 at 06:53 PM. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,185
Karma: 1988646
Join Date: Aug 2015
Device: Kindle
|
I am not sure I understand what you want to do? From what I gather you want to store the date at which the #fav column is changed for sorting purposes?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,600
Karma: 7511185
Join Date: Sep 2020
Device: none
|
Quote:
Then I reverted that setting (leaving it to Calibre decide whether the title is modified when changing the custom value for #fav) and I noticed it actually does that. So, if I sort the titles by the last modified column after changing the #fav value, I'm able to know what title was last added to "my favourites"... unless there is any other type of modification. But I think I wanted to have something extra besides sorting. For instance: to be able to search/filter "what titles were added to my favourites during the pandemics lockdown". something like that ![]() |
|
![]() |
![]() |
![]() |
#4 | |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,600
Karma: 7511185
Join Date: Sep 2020
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#5 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,185
Karma: 1988646
Join Date: Aug 2015
Device: Kindle
|
Quote:
Quote:
Code:
#my_custom_date_column:>2020 AND #my_custom_date_column:<2022 |
||
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,600
Karma: 7511185
Join Date: Sep 2020
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,600
Karma: 7511185
Join Date: Sep 2020
Device: none
|
Wheeeeee, that was much simpler than I thought
![]() As i'm quite new to Actions Chain PI, I hadn't noticed the "Set to current time" option. Also, I think that, as I was used to bring up the Edit Metadata dialogue to set #fav value to 'yes', and only recently have started using just the shortcut key assigned to that Action, I didn't even consider including another action to the chain. I thought this would only be feasible by adding some mysterious template language code to a custom column built from other columns. ![]() |
![]() |
![]() |
![]() |
#8 | |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,600
Karma: 7511185
Join Date: Sep 2020
Device: none
|
Quote:
Only now I understood how the Last Modified PI could accomplish that, as well. I think this is probably the best solution, as long as I don't need any other actions in that chain. Last edited by Comfy.n; 09-19-2022 at 10:44 PM. |
|
![]() |
![]() |
![]() |
#9 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,696
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
While this seems to be resolved, the Audit Log plugin might also be of interest.
![]() |
![]() |
![]() |
![]() |
#10 | |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,600
Karma: 7511185
Join Date: Sep 2020
Device: none
|
Quote:
![]() now I saw that it keeps change records just for the built-in columns should be useful for other inquiries ![]() edit: sorry, I've just noticed that I had it activated only for standard columns! Last edited by Comfy.n; 09-20-2022 at 09:28 PM. |
|
![]() |
![]() |
![]() |
#11 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,635
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
![]() |
![]() |
![]() |
#12 | |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,600
Karma: 7511185
Join Date: Sep 2020
Device: none
|
Quote:
edit: sorry, I've just noticed that I had it activated only for standard columns! Last edited by Comfy.n; 09-20-2022 at 09:31 PM. |
|
![]() |
![]() |
![]() |
#13 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,635
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Modified date column | annoporci | Calibre | 5 | 06-04-2020 09:51 PM |
How Date Modified column works | LadyKate | Library Management | 13 | 11-25-2016 02:13 PM |
Modified Column... all yesterday's date | copyrite | Calibre | 4 | 11-10-2015 07:10 PM |
Custom Column Date Question | tarisea | Library Management | 4 | 01-13-2014 05:01 PM |
Date Modified column | kakkalla | Calibre | 17 | 02-08-2011 11:23 AM |