Problem with fields.ini works only for __global__

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

Problem with fields.ini works only for __global__

Postby jscottgordon » Tue May 15, 2012 10:19 am

Hi,

I'm new to xataface and am testing it out for an existing database. I’ve been having an issue with the fields.ini file. Essentially the symptom is this: it will work for [__global__] but not for any of my data columns. Here’s what I mean:

If my fields.ini file contains __global__ it works as indicated here:

[__global__]
display="block"

All the fields are displayed in block format with the name above the edit box.

--
But if my fields.ini file contains the following code, it acts like I never specified anything at all:

[AttributeId]
display="block"

All the fields ate displayed in the default format with the name to the left of the edit box, including AttributeId.

--
Note that I’ve tried this for more than just display=“block” and had the same result. I’ve checked the spelling and case. I even copied and pasted it from the edit details page just to be sure. I’ve tried it for different tables and different fields in each table and the same thing happens. Does anyone know what might be causing a symptom like this?

----
Attachments
Screen shot 2012-05-15 at 9.36.26 AM.png
[AttributeId]
display="block"
Screen shot 2012-05-15 at 9.36.26 AM.png (25.86 KiB) Viewed 4812 times
Screen shot 2012-05-15 at 9.34.18 AM.png
[__global__]
display="block"
Screen shot 2012-05-15 at 9.34.18 AM.png (28.22 KiB) Viewed 4812 times
jscottgordon
 
Posts: 3
Joined: Tue May 15, 2012 9:58 am

Re: Problem with fields.ini works only for __global__

Postby shannah » Tue May 15, 2012 10:44 am

Strange. What version of Xataface/PHP/MySQL are you using? Can you post the whole fields.ini file?
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Problem with fields.ini works only for __global__

Postby jscottgordon » Tue May 15, 2012 11:15 am

php v 5.3.13, mySQL v 5.0.95, xataface 1.3.2. That was the whole fields.ini:

[AttributeId]
display="block"
jscottgordon
 
Posts: 3
Joined: Tue May 15, 2012 9:58 am

Re: Problem with fields.ini works only for __global__

Postby jscottgordon » Tue May 15, 2012 12:51 pm

I just figured it out - in my database the column was named attributeId (lowercase 'a'), but xataface automatically capitalizes the first letter in the edit details screen. I had tried all lowercase before, but that didn't work because I needed the capital I. I hadn't thought to change only the first letter after copying and pasting it.

Thanks though.
jscottgordon
 
Posts: 3
Joined: Tue May 15, 2012 9:58 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 4 guests

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