![]() |
#1 |
eBook Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
|
Custom Column - Split Multi Values
Hi:
I need a little help trying to create a custom column based off of a previous custom column which has multi-values. I would like to create the second custom column which would output only the first value of the first custom column. Can someone help me set this up? |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,336
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
This should do it after you replace #mytextmult with the name of your multi-valued column
Code:
program: sublist(field('#mytextmult'), 0, 1, ',') |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
What if I want only the second or third value?
Last edited by Tanjamuse; 10-27-2014 at 03:30 AM. |
![]() |
![]() |
![]() |
#4 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,336
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Change the "0, 1" to select the value(s) you want. Quoting the documentation for sublist:
Quote:
|
|
![]() |
![]() |
![]() |
#5 |
eBook Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
|
Thank you for your quick response and for you answer, once again you have made my database a little bit easier to use.
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Default Value for Custom Column (fixed set of permitted values) | Andy P | Calibre | 1 | 06-21-2013 03:25 AM |
Filling a Custom Column with Auto-Incremented Values | Laurelton | Library Management | 4 | 12-13-2012 02:25 AM |
Custom Column with list of permitted values | Eugenie | Library Management | 1 | 01-10-2012 03:57 AM |
Boolean custom column values | sengian | Library Management | 4 | 01-05-2012 05:39 PM |
Multiple comma separated values in custom column? | silentguy | Library Management | 8 | 04-19-2011 05:10 AM |