storing multi-select values

A place for users and developers of the Xataface to discuss and receive support.

storing multi-select values

Postby 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
:?:
clawes
 
Posts: 22
Joined: Mon May 07, 2012 12:02 pm

Re: storing multi-select values

Postby 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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: storing multi-select values

Postby clawes » Mon May 07, 2012 1:14 pm

Sweeeet!
That was too easy.

Thanx!
clawes
 
Posts: 22
Joined: Mon May 07, 2012 12:02 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 2 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved