Page 1 of 1

Order of Groups in detail and edit form

PostPosted: Fri Nov 05, 2010 1:52 pm
by goxatago
Hello,

I have read the posts on grouping fields, but I am still unable to get the desired results.
I am using xataface 1.2.6 on php 5.1.6 and have a great time discovering its power.

My fields.ini contents are similar to this:
Code: Select all
[lastname]
group=demographics
order=1

[firstname]
group=demographics
order=2

[bank]
group=financial
order=3

[accountno]
group=financial
order=4

[notes]
group=misc
order=5

etc..

Although the fields are grouped and ordered properly within the groups, the group order is not consistant every time I view or edit a record.
Removing the dataface created view tables in the database or disabling caching does not make a difference.

At times I get the group misc on the top of the form, at other times I get the financial group. The fields are populated at all times.

Anyone else has similar issues ?

Thank you,

S.

Re: Order of Groups in detail and edit form

PostPosted: Fri Nov 05, 2010 3:02 pm
by shannah
You need to set up the field groups metadata. Add sections to the beginning of your fields.ini file:
Code: Select all
[fieldgroup:demographics]
   order=2

[fieldgroup:financial]
   order=1


etc...

Re: Order of Groups in detail and edit form

PostPosted: Fri Nov 05, 2010 11:49 pm
by goxatago
Thank you very much for the prompt reply Steve.

Unfortunately adding the metadata info did not make any difference.

The groups are still displayed unordered, although the fields within the groups are ordered properly and in the right group.
There are no errors in the httpd log.
The order of the groups varies sometimes when I move to the next or previous record.
In addition, the order of the groups in view mode is different than the order of the groups in edit mode.

Does the physical order of the fields in the database, or in the fields.ini file matter ?

Thank you again,

S.

Re: Order of Groups in detail and edit form

PostPosted: Wed Dec 08, 2010 5:49 pm
by ururk
I'm having this same problem. I tried reordering the columns in the table, and it didn't change the ordering in the detail view. However, the edit view does honor the settings.

Re: Order of Groups in detail and edit form

PostPosted: Sun Jan 06, 2013 1:39 pm
by jerryevo
I have similar problem:
Independently of order values for fields and groups it works in edit view but in details view groups are in different and constant order.
Any ideas?

Re: Order of Groups in detail and edit form

PostPosted: Sun Jan 06, 2013 2:05 pm
by jerryevo
OK, finally problem solved:

order works for fields and groups in edit and list
section:order works for groups in details view

There is lack of documentation update at all.