Grouping fields issue

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

Grouping fields issue

Postby kokoro » Fri Mar 13, 2009 8:48 pm

Hello again,

I am grouping fields in the details view but am having trouble getting the "details" group name changed and also can't group the field that is by default set as details to a different group.

When I try to assign the field that is currently categorized as details to a different group all of the fields for the record disappear.

I'm grouping using the following syntax:

[firstnameeng]
widget:label="First Name"
group=English Name

[lastnameeng]
widget:label="Last Name"
group=English Name

This puts the first name and last name in the "English Name" group. Student ID is the first field (also the key) in this table and it gets set to 'details' by Xataface. If I try to change that to a different group by using

[studentid]
widget:label="Student ID"
group=Student Information

Then all of the fields disappear...

Did I just explain the problem twice.... :oops:

Jason
kokoro
 
Posts: 39
Joined: Fri Feb 06, 2009 6:17 am

Postby shannah » Sat Mar 14, 2009 8:27 am

Grroup names should not contain spaces. If you want to use a label for a fieldgroup that does contain a space, use the [fieldgroup:name] section in your fields.ini file.

e.g.
Code: Select all
[fieldgroup:address]
    label="Address Information"

[street]
    group=address

[city]
    group=address


As for the default group, you can change the label o this group by adding a
[fieldgroup:__main__]
section to your fields.ini file and specifying a label for it.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby kokoro » Sat Mar 14, 2009 4:46 pm

Steve,

Thanks. I'm still having an issue though.

I tried the [fieldgroup:__main__] with a label as follows

[fieldgroup:__main__]
label="Student ID"

but this also makes all of the fields in the record disappear.

Also, the spaces in the group names did not seem to be creating problems. The space was appearing but maybe this can cause problems down the road?

Jason
kokoro
 
Posts: 39
Joined: Fri Feb 06, 2009 6:17 am

Re: Grouping fields issue

Postby Bart » Sun Feb 21, 2010 6:03 am

I have the same problem with version 1.2.3b2 1700.

As soon as I add [fieldgroup:__main__] to my fields.ini, all of the fields disappear in the view section. In the edit section they still exist but the group is still named 'Details'.

This is what my fields.ini looks like for testing:
Code: Select all
[fieldgroup:__main__]
label="test"
Bart
 
Posts: 3
Joined: Sun Jan 31, 2010 3:04 pm

Re: Grouping fields issue

Postby shannah » Mon Feb 22, 2010 3:10 pm

This is the same issue as: viewtopic.php?f=4&t=5168
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 9 guests

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