Page 1 of 1

Problem with fields.ini works only for __global__

PostPosted: Tue May 15, 2012 10:19 am
by jscottgordon
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?

----

Re: Problem with fields.ini works only for __global__

PostPosted: Tue May 15, 2012 10:44 am
by shannah
Strange. What version of Xataface/PHP/MySQL are you using? Can you post the whole fields.ini file?

Re: Problem with fields.ini works only for __global__

PostPosted: Tue May 15, 2012 11:15 am
by jscottgordon
php v 5.3.13, mySQL v 5.0.95, xataface 1.3.2. That was the whole fields.ini:

[AttributeId]
display="block"

Re: Problem with fields.ini works only for __global__

PostPosted: Tue May 15, 2012 12:51 pm
by jscottgordon
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.