View Single Post
Old 03-18-2025, 05:20 AM   #1442
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,638
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Need help with an action chain in the same way:
  1. Collect a list of dta for a specific column
  2. Duplicate the selected book as many times as element in the previous list
  3. For all elements in the initial list, set the column with the proper value in the duplicated book
  4. Refresh the screen

For [1] I've found the proper resource
For [2] I can do a module which:
  1. Collect metadata from the selected book
  2. Create as many duplicates as necessary
  3. Set the proper column value

I have the following doubts:
  1. How do I pass the list to the module? I've found how to define vars local/global to the chain but I don't know how the module would be able to read them
  2. How do you check that one and only one is selected? So you raise an error if no book is selected or more than one book is selected.

Sorry for the long post, but I've done very basic things at Action Chains till now.
Terisa de morgan is offline   Reply With Quote