Order of Groups in detail and edit form

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

Order of Groups in detail and edit form

Postby goxatago » Fri Nov 05, 2010 1:52 pm

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.
goxatago
 
Posts: 14
Joined: Fri Jul 09, 2010 2:08 am

Re: Order of Groups in detail and edit form

Postby shannah » Fri Nov 05, 2010 3:02 pm

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

Re: Order of Groups in detail and edit form

Postby goxatago » Fri Nov 05, 2010 11:49 pm

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.
goxatago
 
Posts: 14
Joined: Fri Jul 09, 2010 2:08 am

Re: Order of Groups in detail and edit form

Postby ururk » Wed Dec 08, 2010 5:49 pm

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.
ururk
 
Posts: 18
Joined: Mon Nov 01, 2010 12:31 pm

Re: Order of Groups in detail and edit form

Postby jerryevo » Sun Jan 06, 2013 1:39 pm

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?
jerryevo
 
Posts: 16
Joined: Sun Jan 06, 2013 1:30 pm

Re: Order of Groups in detail and edit form

Postby jerryevo » Sun Jan 06, 2013 2:05 pm

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.
jerryevo
 
Posts: 16
Joined: Sun Jan 06, 2013 1:30 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 2 guests

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