Filed name with spaces

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

Filed name with spaces

Postby etsoft » Mon Aug 15, 2011 5:26 am

Hi,

i have a field with some spaces : Vestrock contact person

In the fields.ini file i have :

[Vestrock contact person]
[Vestrock contact person]
widget:type=select
vocabulary=Vestrock contact person

In the valuelists.ini i have :

[Vestrock contact person]
Erwin=Erwin
Margo=Margo
Jan=Jan
Kees=Kees

The selection is possible but the value is not saved.
Is this not correct ?/

Regards
Erwin
etsoft
 
Posts: 2
Joined: Mon Aug 15, 2011 4:58 am

Re: Filed name with spaces

Postby cyberws » Mon Aug 15, 2011 8:43 am

Try putting quotes around the values saved:

"Erwin"=Erwin
"Margo"=Margo
"Jan"=Jan
"Kees"=Kees
cyberws
 
Posts: 19
Joined: Wed Jul 01, 2009 10:32 am

Re: Filed name with spaces

Postby shannah » Mon Aug 15, 2011 11:54 am

Field names cannot have spaces.
You can specify a label for a field using the widget:label directive.
e.g.
Code: Select all
[Vestrock_contact_person]
widget:type=select
vocabulary=Vestrock contact person
widget:label = "Vestrock contact person"


Although Xataface will generate labels by replacing underscores with spaces anyways so in this particular case you could omit the widget:label directive and it would give the same result.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 27 guests

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