Grouping fields issue
Archived from the Xataface Users forum.
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….
Jason
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.
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
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"
shannah — Mon Feb 22, 2010 3:10 pm
This is the same issue as: viewtopic.php?f=4&t=5168