storing multi-select values
Archived from the Xataface Users forum.
clawes — Mon May 07, 2012 12:14 pm
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
shannah — Mon May 07, 2012 1:08 pm
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
clawes — Mon May 07, 2012 1:14 pm
Sweeeet!
That was too easy.
Thanx!