View Single Post
Old 03-18-2023, 11:27 AM   #16
Wiggo
Leftutti
Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.
 
Wiggo's Avatar
 
Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
Quote:
Originally Posted by chaley View Post
Enhancement: the template could verify that the id actually exists, which can happen because of an input error or deleting a book. If the id doesn't exist then a message is displayed. Something like this:
Code:
program:
	j = '';
	for id in $#mytextmult:
		if j then j = j & ', ' fi;
		id_exists = book_count('id:' & id, 0);
		if id_exists != 1 then
			j = j & 'No such id ' & id
		else
			j = j & '<a href="' & 'calibre://show-book/_hex_-' &
				to_hex(current_library_name()) & '/' & id & '">' & id & '</a>'
		fi
	rof
which produces this:
Attachment 196676
Hi chaley

I get this error

Code:
VORLAGENFEHLER The book_count() function cannot be used in a composite column
Click image for larger version

Name:	Screenshot 2023-03-18 162013.jpg
Views:	91
Size:	62.4 KB
ID:	200427

Any idea?

Thank you!
Wiggo is offline   Reply With Quote