After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 354073 - Initial layout of "Related" item is confusing
Initial layout of "Related" item is confusing
Status: RESOLVED FIXED
Product: glom
Classification: Other
Component: design
git master
Other Linux
: Normal normal
: ---
Assigned To: Murray Cumming
Murray Cumming
Depends on:
Blocks:
 
 
Reported: 2006-09-03 04:04 UTC by Peter Williams
Modified: 2009-02-22 20:11 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Peter Williams 2006-09-03 04:04:07 UTC
I was fooling around with the Layout editor and added a "Related" item to my Details layout. All I got was a table of folder icons. I eventually figured out that if I right-clicked on the layout, I could choose what fields in the related item were displayed, but it would be good to default it to show at least some field. Also, it would be good if the "Formatting" button in the layout editor dialog took you to the Related Records Layout dialog.

While I'm at it, it's not clear to me what the "Related" layout item even does, but that's probably just a matter of me not knowing much about Glom and RDBMSs.
Comment 1 Murray Cumming 2006-09-09 14:12:50 UTC
Yes, I'd like to add a "right-click to choose fields" label, or a button there. I guess we could do that in a custom treemodel when there are no fields for the related records item.

The "Related" item shows related records. I guess that name was truncated to save space in a window. Maybe that's not a good idea.
Comment 2 Peter Williams 2006-09-14 05:39:52 UTC
(In reply to comment #1)
> The "Related" item shows related records. I guess that name was truncated to
> save space in a window. Maybe that's not a good idea.

For clarity, I'm talking about the "Add Related" button in the Layout editor. On second thought it's not super unclear; I'm not very familiar with relational databases, so maybe real database developers wouldn't be confused.

Comment 3 Murray Cumming 2006-09-19 07:19:00 UTC
So, we should have tooltips on those buttons. It should also get better when we have an actual palette for the layout items, with drag and drop layout.

And we still need that special "Right-click to choose fields" row in empty related-records treeviews when in developer mode.
Comment 4 Murray Cumming 2006-09-23 19:29:38 UTC
In HEAD (glom 1.1.x, to be 1.2.0), the list view and related records portals show a single line saying "Right-click to layout, to specify the related fields.", when there are no fields chosen in the layout.

I have also added explanatory tooltips to the buttons in the layout editor.

That's a bit awkward, but it seems better than nothing. Suggestions for improvements are welcome.
Comment 5 Peter Williams 2006-09-28 06:14:27 UTC
I gave HEAD a spin and the change seemed to work well. I did see two rows, each with the "Right-click ..." text. Might be because I had two "Related fields" items in the layout.

The whole process still seems a little circuitous, but I'm not sure what can be done about that. But right now to show fields from a related record, you have to go Layout -> Add Related -> Select relationship -> right-click, Layout -> Add -> Select Field. It would be nice to improve that flow, which I'm sure you can do in all your copious spare time :-)

Thanks for responding to this so quickly, Murray.
Comment 6 Murray Cumming 2006-09-28 06:46:42 UTC
Yes, there should be only one warning row, so I'll keep this bug open until I fix that.

Regarding the layout, it's just that the layout dialog is generally awkward. It's a bit of a hack just to make layout possible at all. What we need is drag-and-drop layout with a palette: See bug #358092.
Comment 7 Murray Cumming 2006-10-10 15:10:49 UTC
Will the dialog be reshown after showing the help? I assume that is what is meant to happen.
Comment 8 Murray Cumming 2006-10-10 15:11:42 UTC
Sorry, wrong bug.
Comment 9 Murray Cumming 2009-02-22 20:11:05 UTC
I don't see two warnings rows now, so I'm closing this bug.