Page 1 of 1

storing multi-select values

PostPosted: Mon May 07, 2012 12:14 pm
by clawes
As I understand it, Xataface stores items of a multi-selection list on a seperate line in the given field. I was wondering if there's any way to override this behaviour.
I need to separate each item with a comma (,) instead of a carriage return (\n).
So instead of:
MATH
ENGLISH
DRAMA

I want:
MATH,ENGLISH,DRAMA


How can I proceed with this override?


TIA
clawes
:?:

Re: storing multi-select values

PostPosted: Mon May 07, 2012 1:08 pm
by shannah
You should be able to set the separator directive in the fields.ini file for the field.
Code: Select all
[myfield]
separator=","


Disclaimer: I've never used this directive in any of my apps, but it *should* work.

-Steve

Re: storing multi-select values

PostPosted: Mon May 07, 2012 1:14 pm
by clawes
Sweeeet!
That was too easy.

Thanx!