Need help with an action chain in the same way:
- Collect a list of dta for a specific column
- Duplicate the selected book as many times as element in the previous list
- For all elements in the initial list, set the column with the proper value in the duplicated book
- Refresh the screen
For [1] I've found the proper resource
For [2] I can do a module which:
- Collect metadata from the selected book
- Create as many duplicates as necessary
- Set the proper column value
I have the following doubts:
- 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
- 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.