|
|
#1 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 71
Karma: 674766
Join Date: Sep 2010
Device: Kindle
|
default value for defined y/n column
Hi
I have defined my own column (Read) with Y/N values. By default, when a new book is added this column's value is blank. How can I set a default value of N(o) to this column? |
|
|
|
|
|
#2 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Change the tweak
Code:
bool_custom_columns_are_tristate = 'yes' Code:
bool_custom_columns_are_tristate = 'no' |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 695
Karma: 822675
Join Date: May 2010
Device: Kobo Aura, Nokia Lumia 920 (Freda)
|
I've been using it for the past couple of releases and it works fine for me.
|
|
|
|
|
|
#4 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
|
|
|
|
|
#5 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 71
Karma: 674766
Join Date: Sep 2010
Device: Kindle
|
thanks for your reply!
the tweak works, no wasted work there ![]() although what I was thinking was more of a tri-state with default value. I would use the No as a default value for new books, the null as a not-finished-reading value, and the yes as a read value |
|
|
|
| Advert | |
|
|
|
|
#6 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,269
Karma: 61916422
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() Name the column to Finished Yes = Done No = I started Blank = not started Now the default works
|
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 2 column PDF book to 1 column possible? | SeaBookGuy | Calibre | 19 | 07-01-2013 03:30 AM |
| Q: multi-column PDF to single column mobi format converstion | auburn1975 | Calibre | 7 | 01-28-2012 07:11 PM |
| Setting a default value for a custom column? | rangepig | Calibre | 2 | 10-11-2010 02:28 PM |
| User Defined Columns | jjansen | Calibre | 3 | 03-17-2010 06:33 PM |
| pdf to lrf with 2 column and 1 column pages in same file | danielwille | Sony Reader | 3 | 11-12-2008 11:57 AM |