View Single Post
Old 02-13-2022, 01:51 PM   #830
dewd
Connoisseur
dewd reads XML... blindfoldeddewd reads XML... blindfoldeddewd reads XML... blindfoldeddewd reads XML... blindfoldeddewd reads XML... blindfoldeddewd reads XML... blindfoldeddewd reads XML... blindfoldeddewd reads XML... blindfoldeddewd reads XML... blindfoldeddewd reads XML... blindfoldeddewd reads XML... blindfolded
 
Posts: 52
Karma: 52704
Join Date: Nov 2017
Device: none
Quote:
Originally Posted by capink View Post
I don't totally get what you want to do. but if you want to get the number of books resulting from search, you can utilize the from_search function in a template as follows:
Sorry, I probably wasn't clear enough. I should have used the word "selection" rather than "search". My aim is to count the number of read books by the selected author, then put that number into a custom column for all of that author's books (both read and unread).

What I've got is:
- clear marked books
- mark books by the same author as the highlighted book
- use selection modifier to show only marked books with a read-date
- count the number of books shown as a result of the previous step
- copy the result to the clipboard
- show all the books by the same author again
- single field edit to modify the custom column (which is where I'm using ask-at-runtime and pasting in the number from the clipboard)

I'm not familiar with the language of templates (I mostly just steal stuff from this forum), but if it was possible to use something like "from_clipboard" in a template for single-field-edit, I think it would work. I'm open to other ways of getting this done though.
dewd is offline   Reply With Quote