View Single Post
Old 04-11-2021, 07:44 AM   #508
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,203
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
You have two options depending on the action:
  1. If the action supports scopes, you can do it by setting a scope in a manner similar to the post right above yours. You use template scopes, and start from the currently selected books and restrict down using whatever criteria you want.

    Code:
    program:
        book_ids = '';
        for id in from_selection('id'):
            if $#my_custom_column then
                list_union(book_ids, id, ',')
            fi
        rof;
        book_ids
  2. If the action does not support scopes, you can use the above template in the "Search Using Template" action. Just be sure to check the option "Template output is a comma separated list of book ids". And of-course you have to make sure the option "select all book resulting from template" is also checked

Last edited by capink; 04-15-2021 at 03:11 PM.
capink is offline   Reply With Quote